.codeclimate.yml
version: "2"
checks:
# The disabled rules are checked by linters
# and have different values for languages
argument-count:
enabled: false
# complex-logic:
# enabled: false
file-lines:
enabled: false
# method-complexity:
# enabled: false
method-count:
enabled: false
method-lines:
enabled: false
# nested-control-flow:
# enabled: false
return-statements:
enabled: false
# similar-code:
# enabled: false
# identical-code:
# enabled: false
plugins:
# CodeClimate can't find pylint and I don't know why, maybe it's outdated
#pylint:
# enabled: true
# channel: beta
# config: unbrake-api/.pylintrc
sonar-python:
enabled: true
eslint:
enabled: true
config: unbrake-frontend/.eslintrc.json
gofmt:
enabled: true
golint:
enabled: true
govet:
enabled: true
markdownlint:
enabled: true
checks:
# Does not suit issue/pr templates
MD002:
enabled: false
# Ordered list item prefix
MD029:
enabled: false
# Fixed relevant ones, but most of errors is about POSIX
# which doesn't matter since environment is dockerized
# shellcheck:
# enabled: true
pep8:
enabled: true
nodesecurity:
enabled: true
radon:
enabled: true
fixme:
enabled: true
git-legal:
enabled: true
duplication:
enabled: true
config:
languages:
python:
python_version: 3
javascript:
# Multiple false positive due to nature of these file structures
exclude_patterns:
- unbrake-api/unbrake_api/management/commands/*
- unbrake-api/**/test_*
exclude_patterns:
- "**/node_modules/"
- "**/hooks/"
- "**/secrets/"
- "**/spec/"
- "**/__pycache__/"
- "**/migrations/"
- "**/env/"
- "**/.env/"
- "**/venv/"
- "**/.venv/"
- "**/.*rc"
- unbrake-api/schema.py
- unbrake-api/manage.py
- unbrake-api/db.sqlite3
- unbrake-api/unbrake_api/wsgi.py
- unbrake-api/unbrake_api/settings.py
- unbrake-api/unbrake_api/runner.py
- unbrake-api/production/settings.py
- utils/*