Last active
February 24, 2020 10:54
-
-
Save Beee4life/9e917c1d70f784556bc236d32db35efa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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