Leafo\ScssPhp\Parser::selectorSingle
Parse the parts that make up a selector
{@internal div[yes=no]#something.hello.world:nth-child(-2n+1)%placeholder }}
Signature
protected function selectorSingle(array&
$out )
Parameters
$out
— array
Returns
- boolean
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
2053 - 2181 | CyclomaticComplexity | The method selectorSingle() has a Cyclomatic Complexity of 28. The configured cyclomatic complexity threshold is 10. |
2053 - 2181 | NPathComplexity | The method selectorSingle() has an NPath complexity of 516100. The configured NPath complexity threshold is 200. |
2053 - 2181 | ExcessiveMethodLength | The method selectorSingle() has 129 lines of code. Current threshold is set to 100. Avoid really long methods. |
2071 | ShortVariable | Avoid variables with short names like $s. Configured minimum length is 3. |
2129 | ShortVariable | Avoid variables with short names like $ss. Configured minimum length is 3. |