Skip to content

Instantly share code, notes, and snippets.

@croensch
Last active August 29, 2015 14:02
Show Gist options
  • Save croensch/465cec4ec715d5bb0483 to your computer and use it in GitHub Desktop.
Save croensch/465cec4ec715d5bb0483 to your computer and use it in GitHub Desktop.
sonar-php-2.0 rules

legend

old-tool:old-rule

new-name

wishlist

php_codesniffer:ValidDefaultValueNotAtEnd

?

php_codesniffer:OpeningFunctionBraceBsdAllmanBraceOnSameLine

?

php_codesniffer:InlineControlStructureNotAllowed

?

php_codesniffer:NonExecutableCodeUnreachable

?

The method contains an exit expression.
//EXIT_EXPR
@lindamartin
Copy link

php_codesniffer:ValidDefaultValueNotAtEnd
new-name: "Method arguments with default value should be last" (rule key: S1788).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment