diff --git a/Makefile b/Makefile index 6575905..f1936a7 100644 --- a/Makefile +++ b/Makefile @@ -24,5 +24,5 @@ lint-php: ## Check the validness of php @echo 'linting php...' @mkdir -p cache @docker run --rm -it -v $$(pwd):/srv:cached graze/php-alpine:test vendor/bin/phpcs \ - -p --warning-severity=0 --cache=cache/phpcs --parallel=10 \ + -p --warning-severity=0 --cache=cache/phpcs --parallel=10 -s \ PHP/ examples/ diff --git a/PHP/CodeSniffer/Graze/Sniffs/ControlStructures/IfVariableAssignmentSniff.php b/PHP/CodeSniffer/Graze/Sniffs/ControlStructures/IfVariableAssignmentSniff.php index 7f3b996..6750df4 100644 --- a/PHP/CodeSniffer/Graze/Sniffs/ControlStructures/IfVariableAssignmentSniff.php +++ b/PHP/CodeSniffer/Graze/Sniffs/ControlStructures/IfVariableAssignmentSniff.php @@ -7,7 +7,7 @@ class IfVariableAssignmentSniff implements Sniff { - const ERROR_CODE = 'graze.controlStructures.ifVariableAssignment'; + const ERROR_CODE = 'Graze.ControlStructures.IfVariableAssignment'; /** * Registers the tokens that this sniff wants to listen for. * diff --git a/PHP/CodeSniffer/Graze/Sniffs/ControlStructures/NegationNoSpacesSniff.php b/PHP/CodeSniffer/Graze/Sniffs/ControlStructures/NegationNoSpacesSniff.php index 874e059..65c974a 100644 --- a/PHP/CodeSniffer/Graze/Sniffs/ControlStructures/NegationNoSpacesSniff.php +++ b/PHP/CodeSniffer/Graze/Sniffs/ControlStructures/NegationNoSpacesSniff.php @@ -12,7 +12,7 @@ */ class NegationNoSpacesSniff implements Sniff { - const ERROR_CODE = 'graze.controlStructures.NegationNoSpaces'; + const ERROR_CODE = 'Graze.ControlStructures.NegationNoSpaces'; /** * @return int[] diff --git a/PHP/CodeSniffer/Graze/Sniffs/ControlStructures/NestedTernarySniff.php b/PHP/CodeSniffer/Graze/Sniffs/ControlStructures/NestedTernarySniff.php index 22fadcd..81c57ad 100644 --- a/PHP/CodeSniffer/Graze/Sniffs/ControlStructures/NestedTernarySniff.php +++ b/PHP/CodeSniffer/Graze/Sniffs/ControlStructures/NestedTernarySniff.php @@ -7,7 +7,7 @@ class NestedTernarySniff implements Sniff { - const ERROR_CODE = 'graze.controlStructures.nestedTernary'; + const ERROR_CODE = 'Graze.ControlStructures.NestedTernary'; /** * Registers the tokens that this sniff wants to listen for. diff --git a/PHP/CodeSniffer/Graze/Sniffs/Files/DoubleBlankLineSniff.php b/PHP/CodeSniffer/Graze/Sniffs/Files/DoubleBlankLineSniff.php index 12efd56..2461919 100644 --- a/PHP/CodeSniffer/Graze/Sniffs/Files/DoubleBlankLineSniff.php +++ b/PHP/CodeSniffer/Graze/Sniffs/Files/DoubleBlankLineSniff.php @@ -7,7 +7,7 @@ class DoubleBlankLineSniff implements Sniff { - const ERROR_CODE = 'graze.files.doubleBlankLine'; + const ERROR_CODE = 'Graze.Files.DoubleBlankLine'; /** * Registers the tokens that this sniff wants to listen for. diff --git a/PHP/CodeSniffer/Graze/Sniffs/Naming/AbstractClassNamingSniff.php b/PHP/CodeSniffer/Graze/Sniffs/Naming/AbstractClassNamingSniff.php index fcf4bd0..2a58aba 100644 --- a/PHP/CodeSniffer/Graze/Sniffs/Naming/AbstractClassNamingSniff.php +++ b/PHP/CodeSniffer/Graze/Sniffs/Naming/AbstractClassNamingSniff.php @@ -7,7 +7,7 @@ class AbstractClassNamingSniff implements Sniff { - const ERROR_CODE = 'graze.naming.abstractClass'; + const ERROR_CODE = 'Graze.Naming.AbstractClassNaming'; /** * Registers the tokens that this sniff wants to listen for. diff --git a/PHP/CodeSniffer/Graze/Sniffs/Naming/InterfaceNamingSniff.php b/PHP/CodeSniffer/Graze/Sniffs/Naming/InterfaceNamingSniff.php index d41be41..0944c11 100644 --- a/PHP/CodeSniffer/Graze/Sniffs/Naming/InterfaceNamingSniff.php +++ b/PHP/CodeSniffer/Graze/Sniffs/Naming/InterfaceNamingSniff.php @@ -7,7 +7,7 @@ class InterfaceNamingSniff implements Sniff { - const ERROR_CODE = 'graze.naming.interface'; + const ERROR_CODE = 'Graze.Naming.InterfaceNaming'; /** * Registers the tokens that this sniff wants to listen for.