Skip to content

Instantly share code, notes, and snippets.

@Beee4life
Last active February 24, 2020 10:54
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 Beee4life/9e917c1d70f784556bc236d32db35efa to your computer and use it in GitHub Desktop.
Save Beee4life/9e917c1d70f784556bc236d32db35efa to your computer and use it in GitHub Desktop.
# grumphp.yml
parameters:
tasks:
git_blacklist:
keywords:
- "die("
- "var_dump("
- "monster"
whitelist_patterns: ["wp_die("]
triggered_by: ['php']
regexp_type: G
phpcs:
standard: WordPress
severity: ~
error_severity: ~
warning_severity: 9
tab_width: 4
whitelist_patterns: []
encoding: ~
ignore_patterns: ["*/vendor/*"]
sniffs: []
triggered_by: [php]
exclude: [
"Generic.Arrays.DisallowShortArraySyntax",
"Generic.CodeAnalysis.EmptyStatement",
"Generic.Functions.FunctionCallArgumentSpacing",
"Generic.WhiteSpace.DisallowSpaceIndent",
"Generic.WhiteSpace.ScopeIndent",
"PEAR.Functions.FunctionCallSignature",
"PSR2.Classes.PropertyDeclaration",
"Squiz.Commenting.FileComment",
"Squiz.Commenting.FunctionComment",
"Squiz.Commenting.InlineComment",
"Squiz.Commenting.VariableComment",
"Squiz.ControlStructures.ControlSignature",
"Squiz.PHP.EmbeddedPhp",
"Squiz.WhiteSpace.SuperfluousWhitespace",
"WordPress.Arrays.ArrayIndentation",
"WordPress.Arrays.ArrayKeySpacingRestrictions",
"WordPress.DB.PreparedSQL",
"WordPress.Files.FileName",
"WordPress.NamingConventions.ValidVariableName",
"WordPress.Security.EscapeOutput",
"WordPress.Security.NonceVerification",
"WordPress.Security.ValidatedSanitizedInput",
"WordPress.WhiteSpace.ControlStructureSpacing",
"WordPress.WP.EnqueuedResourceParameters",
"WordPress.WP.I18n"]
-=-=-=-
ADD
WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
Generic.Functions.FunctionCallArgumentSpacing
WordPress.Arrays.ArrayIndentation
Generic.CodeAnalysis.EmptyStatement
REMOVE
WordPress.WhiteSpace.OperatorSpacing.NoSpaceBefore
CHECK
WordPress.DB.PreparedSQL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment