Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
checks:
php:
code_rating: true
build:
dependencies:
override:
- command: 'composer install --ignore-platform-reqs --no-interaction'
nodes:
analysis:
environment:
Expand All @@ -12,18 +18,13 @@ build:
override: true
tests:
override:
- php-scrutinizer-run

dependencies:
override:
- composer install --ignore-platform-reqs --no-interaction
- command: ./vendor/bin/phpstan analyse --ansi --memory-limit 256M --error-format=checkstyle | sed '/^\s*$/d' > phpstan-checkstyle.xml
analysis:
file: phpstan-checkstyle.xml
format: 'general-checkstyle'

tools:
external_code_coverage:
timeout: 3600
php_code_coverage: true

build_failure_conditions:
- 'elements.rating(<= C).new.exists' # No new classes/methods with a rating of C or worse allowed
- 'issues.label("coding-style").new.exists' # No new coding style issues allowed
- 'issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity
- 'project.metric_change("scrutinizer.test_coverage", < 0)' # Code Coverage decreased from previous inspection
2 changes: 1 addition & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parameters:
level: 2
level: 3

paths:
- %currentWorkingDirectory%/src
Expand Down