Skip to content

Commit

Permalink
Add sniff codes to README
Browse files Browse the repository at this point in the history
  • Loading branch information
sirbrillig committed Jul 25, 2019
1 parent b681109 commit b805304
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

Plugin for PHP_CodeSniffer static analysis tool that adds analysis of problematic variable use.

* Warns if variables are used without being defined.
* Warns if variables are set or declared but never used.
* Warns if $this, self::$static_member, static::$static_member is used outside class scope.
- Warns if variables are used without being defined. (Sniff code: `VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable`)
- Warns if variables are set or declared but never used. (Sniff code: `VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable`)
- Warns if `$this`, `self::$static_member`, `static::$static_member` is used outside class scope. (Sniff codes: `VariableAnalysis.CodeAnalysis.VariableAnalysis.SelfOutsideClass` or `VariableAnalysis.CodeAnalysis.VariableAnalysis.StaticOutsideClass`)

## Installation

Expand Down

0 comments on commit b805304

Please sign in to comment.