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