1
0
mirror of synced 2025-02-03 05:49:25 +03:00

Merge pull request #6511 from lcobucci/make-scrutinizer-more-strict

Define build failure conditions on scrutinizer
This commit is contained in:
Marco Pivetta 2017-06-20 17:34:46 +02:00 committed by GitHub
commit 7523513be5

View File

@ -9,27 +9,16 @@ before_commands:
tools: tools:
external_code_coverage: external_code_coverage:
timeout: 3600 timeout: 3600
php_code_coverage:
enabled: true filter:
php_code_sniffer: excluded_paths:
enabled: false - docs
php_cpd: - tools
enabled: true
excluded_dirs: ["bin", "docs", "tests", "tools", "vendor"] build_failure_conditions:
php_cs_fixer: - 'elements.rating(<= C).new.exists' # No new classes/methods with a rating of C or worse allowed
enabled: false - 'issues.label("coding-style").new.exists' # No new coding style issues allowed
php_loc: - 'issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity
enabled: true - 'project.metric_change("scrutinizer.test_coverage", < 0)' # Code Coverage decreased from previous inspection
excluded_dirs: ["bin", "docs", "tests", "tools", "vendor"] - 'patches.label("Doc Comments").new.exists' # No new doc comments patches allowed
php_mess_detector: - 'patches.label("Unused Use Statements").new.exists' # No new unused imports patches allowed
enabled: true
filter:
paths: ["lib/*"]
php_pdepend:
enabled: true
excluded_dirs: ["docs", "examples", "tests", "vendor"]
php_analyzer:
enabled: true
filter:
paths: ["lib/*", "tests/*"]
sensiolabs_security_checker: true