Closed duskohu closed 1 year ago
The PSR2 ruleset only applies the rules as they are defined in PSR2 and makes use of a variety of sniffs to do so. So the PSR2 standard uses sniffs from the Generic and Squiz standards, it doesn't use those standards as such, so you are validating only against PSR2.
@jrfnlthx, and how?
@duskohu Sorry, but I don't know what you are asking. If you want to check your code against PSR2, you will get sniffs from Generic and Squiz as otherwise, you are only checking code against a subset of rules from PSR2.
Describe the bug How can validate code only PSR2 standard, without Generic and Squiz? I have config file, only for use tabs and remove Too Long Line Length. Now I have in report
Squiz
andGeneric
Code sample
Custom ruleset
Versions (please complete the following information): PHP_CodeSniffer version 3.7.1 (stable)