1
0
mirror of synced 2025-02-09 08:49:26 +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
php_code_sniffer:
enabled: false
php_cpd:
enabled: true
excluded_dirs: ["bin", "docs", "tests", "tools", "vendor"]
php_cs_fixer:
enabled: false
php_loc:
enabled: true
excluded_dirs: ["bin", "docs", "tests", "tools", "vendor"]
php_mess_detector:
enabled: true
filter: filter:
paths: ["lib/*"] excluded_paths:
php_pdepend: - docs
enabled: true - tools
excluded_dirs: ["docs", "examples", "tests", "vendor"]
php_analyzer: build_failure_conditions:
enabled: true - 'elements.rating(<= C).new.exists' # No new classes/methods with a rating of C or worse allowed
filter: - 'issues.label("coding-style").new.exists' # No new coding style issues allowed
paths: ["lib/*", "tests/*"] - 'issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity
sensiolabs_security_checker: true - 'project.metric_change("scrutinizer.test_coverage", < 0)' # Code Coverage decreased from previous inspection
- 'patches.label("Doc Comments").new.exists' # No new doc comments patches allowed
- 'patches.label("Unused Use Statements").new.exists' # No new unused imports patches allowed