Projet

Général

Profil

Révision 758c3ecd

ID758c3ecdd7c6a709af449e2fc78571e28c7fe508
Parent 809639ab
Enfant 3143c2c5

Ajouté par Lars Kruse il y a plus de 5 ans

Tests: add ruby style and code checks via rubocop

At the moment all plugins fail the test out of various reasons.
Thus they are exempted from causing test failures.

But future (new) plugins will fail the test and thus indicate the
relevant steps to fix issues before a plugin is included.

Voir les différences:

t/test.t
192 192
        );
193 193
    }
194 194
    elsif ( $interpreter =~ m{j?ruby} ) {
195
        run_check(
196
            {   command     => [ 'ruby', '-cw', $file ],
197
                description => 'ruby syntax check',
198
                filename    => $filename
199
            }
200
        );
195
        subtest $filename => sub {
196
            plan tests => 2;
197
            run_check(
198
                {   command     => [ 'ruby', '-cw', $file ],
199
                    description => 'ruby syntax check',
200
                    filename    => $filename
201
                }
202
            );
203
            run_check(
204
                {   command     => [ 'rubocop', $file ],
205
                    description => 'ruby style and syntax check',
206
                    filename    => $filename
207
                }
208
            );
209
        }
201 210
    }
202 211
    elsif ( $interpreter =~ m{gawk} ) {
203 212
        run_check(

Formats disponibles : Unified diff