.perlcriticrc 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. [Performance::ProhibitRegexForSimpleSubstring]
  48. # Extensions to perl -c
  49. [CompileTime]
  50. # Good idea, but module doesn't install due to bad testsuite...we'll have to fork
  51. #[Dynamic::ValidateAgainstSymbolTable]
  52. #at_inc_suffix=lib
  53. #inspect_required_modules=1
  54. #inspect_autoloaders=1
  55. #max_recursion=2