|
| 1 | +exclude = [ |
| 2 | + ".build/**/*", |
| 3 | + "FileLibMagic-*/**/*", |
| 4 | + "blib/**/*", |
| 5 | + "t/00-*", |
| 6 | + "t/author-*", |
| 7 | + "t/release-*", |
| 8 | + "t/zzz-*", |
| 9 | + "xt/**/*", |
| 10 | +] |
| 11 | + |
| 12 | +[commands.omegasort-gitignore] |
| 13 | +type = "both" |
| 14 | +include = "**/.gitignore" |
| 15 | +cmd = [ "omegasort", "--sort=path" ] |
| 16 | +lint_flags = "--check" |
| 17 | +tidy_flags = "--in-place" |
| 18 | +ok_exit_codes = 0 |
| 19 | +lint_failure_exit_codes = 1 |
| 20 | +expect_stderr = true |
| 21 | + |
| 22 | +[commands.omegasort-stopwords] |
| 23 | +type = "both" |
| 24 | +include = ".stopwords" |
| 25 | +cmd = [ "omegasort", "--sort=text", "--case-insensitive" ] |
| 26 | +lint_flags = "--check" |
| 27 | +tidy_flags = "--in-place" |
| 28 | +ok_exit_codes = 0 |
| 29 | +lint_failure_exit_codes = 1 |
| 30 | +expect_stderr = true |
| 31 | + |
| 32 | +[commands.perlcritic] |
| 33 | +type = "lint" |
| 34 | +include = [ "**/*.{pl,pm,t,psgi}" ] |
| 35 | +cmd = [ "perlcritic", "--profile=$PRECIOUS_ROOT/perlcriticrc" ] |
| 36 | +ok_exit_codes = 0 |
| 37 | +lint_failure_exit_codes = 2 |
| 38 | + |
| 39 | +[commands.perltidy] |
| 40 | +type = "both" |
| 41 | +include = [ "**/*.{pl,pm,t,psgi}" ] |
| 42 | +cmd = [ "perltidy", "--profile=$PRECIOUS_ROOT/perltidyrc" ] |
| 43 | +lint_flags = [ "--assert-tidy", "--no-standard-output", "--outfile=/dev/null" ] |
| 44 | +tidy_flags = [ "--backup-and-modify-in-place", "--backup-file-extension=/" ] |
| 45 | +ok_exit_codes = 0 |
| 46 | +lint_failure_exit_codes = 2 |
| 47 | +expect_stderr = true |
| 48 | + |
| 49 | +[commands.podchecker] |
| 50 | +type = "lint" |
| 51 | +include = [ "**/*.{pl,pm,pod}" ] |
| 52 | +cmd = [ "podchecker", "--warnings", "--warnings" ] |
| 53 | +ok_exit_codes = [ 0, 2 ] |
| 54 | +lint_failure_exit_codes = 1 |
| 55 | +expect_stderr = true |
| 56 | + |
| 57 | +[commands.podtidy] |
| 58 | +type = "tidy" |
| 59 | +include = [ "**/*.{pl,pm,pod}" ] |
| 60 | +cmd = [ "podtidy", "--columns", "80", "--inplace", "--nobackup" ] |
| 61 | +ok_exit_codes = 0 |
| 62 | +lint_failure_exit_codes = 1 |
0 commit comments