Skip to content

PHP_CodeSniffer coding style error #11

Closed
@peter279k

Description

@peter279k

When I execute PHP_CodeSniffer via php vendor/bin/phpcs src/ --standard=./vendor/php-parallel-lint/php-code-style/ruleset.xml, the coding style is as follows:

phpcs:
     [exec] 
     [exec] FILE: ...d/open-source-contributions/PHP-Console-Highlighter/src/Highlighter.php
     [exec] --------------------------------------------------------------------------------
     [exec] FOUND 1 ERROR(S) AFFECTING 1 LINE(S)
     [exec] --------------------------------------------------------------------------------
     [exec]  111 | ERROR | Function's cyclomatic complexity (28) exceeds allowed maximum of
     [exec]      |       | 20
     [exec] --------------------------------------------------------------------------------
     [exec] UPGRADE TO PHP_CODESNIFFER 2.0 TO FIX ERRORS AUTOMATICALLY
     [exec] --------------------------------------------------------------------------------
     [exec] 
     [exec] Result: 1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions