2017-10-08 12:42:51 +00:00
|
|
|
checks:
|
|
|
|
php: true
|
2017-12-03 08:17:00 +00:00
|
|
|
|
2017-10-08 12:42:51 +00:00
|
|
|
coding_style:
|
|
|
|
php:
|
|
|
|
spaces:
|
|
|
|
before_parentheses:
|
|
|
|
closure_definition: true
|
|
|
|
around_operators:
|
|
|
|
concatenation: true
|
|
|
|
|
2017-12-03 08:17:00 +00:00
|
|
|
build:
|
|
|
|
nodes:
|
|
|
|
analysis:
|
|
|
|
tests:
|
|
|
|
override:
|
|
|
|
- php-scrutinizer-run
|
|
|
|
|
2017-10-08 12:42:51 +00:00
|
|
|
tools:
|
|
|
|
external_code_coverage:
|
|
|
|
timeout: 3600
|
2017-12-03 08:17:00 +00:00
|
|
|
|
|
|
|
build_failure_conditions:
|
|
|
|
- 'elements.rating(<= C).new.exists' # No new classes/methods with a rating of C or worse allowed
|
|
|
|
- 'issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity
|
2017-12-23 11:59:18 +00:00
|
|
|
- 'project.metric_change("scrutinizer.test_coverage", < 0)' # Code Coverage decreased from previous inspection
|
2017-12-03 08:17:00 +00:00
|
|
|
- 'patches.label("Unused Use Statements").new.exists' # No new unused imports patches allowed
|