.perlcriticrc 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # Troglodyne perlcritic policy
  2. severity = 1
  3. only = 1
  4. force = 0
  5. verbose = 1
  6. #theme =
  7. #include =
  8. #exclude =
  9. criticism-fatal = 1
  10. color = 1
  11. allow-unsafe = 1
  12. # Usability
  13. [Modules::RequirePerlVersion]
  14. [Documentation::RequirePod]
  15. # Security
  16. [ValuesAndExpressions::PreventSQLInjection]
  17. [CodeLayout::RequireASCII]
  18. [RegularExpressions::RequireDefault]
  19. strict = 1
  20. # PEBCAK catches
  21. [BuiltinFunctions::ProhibitDeleteOnArrays]
  22. [Subroutines::ProhibitAmbiguousFunctionCalls]
  23. [ValuesAndExpressions::ProhibitSingleArgArraySlice]
  24. [Bangs::ProhibitUselessRegexModifiers]
  25. [Bangs::ProhibitCommentedOutCode]
  26. [Tics::ProhibitUseBase]
  27. [Plicease::ProhibitLeadingZeros]
  28. [RegularExpressions::ProhibitEmptyAlternatives]
  29. [ValuesAndExpressions::UnexpandedSpecialLiteral]
  30. [CodeLayout::ProhibitIfIfSameLine]
  31. [ValuesAndExpressions::ConstantBeforeLt]
  32. [ValuesAndExpressions::ProhibitDuplicateHashKeys]
  33. # any access checks are necessarily a TOCTOU waiting to happen
  34. [ValuesAndExpressions::ProhibitFiletest_f]
  35. [ValuesAndExpressions::ProhibitFiletest_rwxRWX]
  36. # Bikeshed
  37. [CognitiveComplexity::ProhibitExcessCognitiveComplexity]
  38. warn_level = 40
  39. info_level = 30
  40. [Variables::ProhibitUselessInitialization]
  41. [PreferredModules]
  42. config = .preferred_modules.ini
  43. [logicLAB::RequireSheBang]
  44. formats = #!/usr/bin/env perl
  45. # Performance
  46. [logicLAB::ProhibitShellDispatch]
  47. [ProhibitPipeOpen]
  48. [Performance::ProhibitRegexForSimpleSubstring]
  49. [RegularExpressions::ProhibitRegexToChomp]
  50. # Extensions to perl -c
  51. [CompileTime]
  52. # Good idea, but module doesn't install due to bad testsuite...we'll have to fork
  53. #[Dynamic::ValidateAgainstSymbolTable]
  54. #at_inc_suffix=lib
  55. #inspect_required_modules=1
  56. #inspect_autoloaders=1
  57. #max_recursion=2