|
| 1 | +excludes = [ |
| 2 | + ".build/**", |
| 3 | + "blib/**", |
| 4 | + "root/assets/**", |
| 5 | +] |
| 6 | + |
| 7 | +[commands.perlimports] |
| 8 | +type = "both" |
| 9 | +include = [ "**/*.{pl,pm,t,psgi}" ] |
| 10 | +cmd = [ "perlimports" ] |
| 11 | +lint-flags = ["--lint" ] |
| 12 | +tidy-flags = ["-i" ] |
| 13 | +ok-exit-codes = 0 |
| 14 | +expect-stderr = true |
| 15 | + |
| 16 | +[commands.perlcritic] |
| 17 | +type = "lint" |
| 18 | +include = [ "**/*.{pl,pm,t,psgi}" ] |
| 19 | +cmd = [ "perlcritic", "--profile=$PRECIOUS_ROOT/.perlcriticrc" ] |
| 20 | +ok-exit-codes = 0 |
| 21 | +lint-failure-exit-codes = 2 |
| 22 | + |
| 23 | +[commands.perltidy] |
| 24 | +type = "both" |
| 25 | +include = [ "**/*.{pl,pm,t,psgi}" ] |
| 26 | +cmd = [ "perltidy", "--profile=$PRECIOUS_ROOT/.perltidyrc" ] |
| 27 | +lint-flags = [ "--assert-tidy", "--no-standard-output", "--outfile=/dev/null" ] |
| 28 | +tidy-flags = [ "--backup-and-modify-in-place", "--backup-file-extension=/" ] |
| 29 | +ok-exit-codes = 0 |
| 30 | +lint-failure-exit-codes = 2 |
| 31 | +ignore-stderr = "Begin Error Output Stream" |
| 32 | + |
| 33 | +[commands.omegasort-gitignore] |
| 34 | +type = "both" |
| 35 | +include = "**/.gitignore" |
| 36 | +cmd = [ "omegasort", "--sort", "path", "--unique" ] |
| 37 | +lint-flags = "--check" |
| 38 | +tidy-flags = "--in-place" |
| 39 | +ok-exit-codes = 0 |
| 40 | +lint-failure-exit-codes = 1 |
| 41 | +ignore-stderr = [ |
| 42 | + "The .+ file is not sorted", |
| 43 | + "The .+ file is not unique", |
| 44 | +] |
0 commit comments