Skip to content

Instantly share code, notes, and snippets.

@b10n1k
Created January 31, 2024 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save b10n1k/5825121257899cb3f85cfd0463266dae to your computer and use it in GitHub Desktop.
Save b10n1k/5825121257899cb3f85cfd0463266dae to your computer and use it in GitHub Desktop.
1c1
< theme = community + openqa
---
> theme = freenode
3d2
< include = strict ValuesAndExpressions::ProhibitInterpolationOfLiterals
5,35c4,5
< verbose = ::warning file=%f,line=%l,col=%c,title=%m - severity %s::[%p] %e\n
<
< # == Perlcritic Policies
< # -- Test::Most brings in strict & warnings
< [TestingAndDebugging::RequireUseStrict]
< equivalent_modules = Test::Most
<
< [TestingAndDebugging::RequireUseWarnings]
< equivalent_modules = Test::Most
<
< # -- Avoid double quotes unless there's interpolation or a single quote.
< [ValuesAndExpressions::ProhibitInterpolationOfLiterals]
< allow_if_string_contains_single_quote = 1
< severity = 3
<
< # -- Prohibit deep nesting
< [ControlStructures::ProhibitDeepNests]
< severity = 4
< add_themes = community
< max_nests = 4
<
< # == Community Policies
< # -- Test::Most brings in strict & warnings
< [Freenode::StrictWarnings]
< extra_importers = Test::Most
<
< # -- Test::Most brings in strict & warnings
< [Community::StrictWarnings]
< extra_importers = Test::Most
<
< [Community::DiscouragedModules]
---
> # TODO: Remove once Perl::Critic::Freenode 0.028 is widely available
> [Freenode::DiscouragedModules]
39c9
< [Community::PackageMatchesFilename]
---
> [Freenode::PackageMatchesFilename]
42,44c12
< # == Custom Policies
< # -- Useless quotes on hashes
< [HashKeyQuotes]
---
> [Perl::Critic::Policy::HashKeyQuotes]
46,49d13
<
< # -- Superfluous use strict/warning.
< [RedundantStrictWarning]
< equivalent_modules = Test::Most
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment