Repository Config
checks:
python:
typecheck_maybe_no_member: true
duplicate_code: true
code_rating: true
classes_valid_slots: true
basic_missing_reversed_argument: true
tools:
pylint:
python_version: 3
config_file: '.pylintrc'
build:
environment:
python:
version: 3.7.7
nodes:
analysis:
project_setup:
override:
- 'true'
tests:
override:
- py-scrutinizer-run
- pylint-run --rcfile=.pylintrc discordBot
tests: true
filter:
excluded_paths:
- '*/test/*'
- '*/build/lib/*'
dependency_paths:
- 'lib/*'
build_failure_conditions:
- 'elements.rating(< B).exists' # No classes/methods with a rating of D or worse
- 'patches.label("Spacing").new.count > 1' # More than 1 new spacing patch
- '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("scrutinizer.quality", < 9)' # Code Quality Rating drops below 6