manticore/.codeclimate.yml
Dan Guido bb4a7966a8
Add codeclimate, tox, and pycodestyle configs (#772)
* pep8

autopep8 -r -i -a -a manticore

* tox for testing py3k

* minimal codeclimate

* Add correct Code Climate ID

* unignore max line endings since it's set to 160

* more badges

* turn off pep8 in code climate

* need to remove for codeclimate to work right

* re-enable most checks with looser thresholds

* remove unused imports

autoflake --in-place -r manticore

* revert the autoflakes changes

* set tox to only py27 for now

* cache is hardcoded to python 2.7.13

* Comment cleanup

* Try autoflake again

* Add dev environment dependency management to tox.ini

* Remove count/statistics options from tox.ini

Per Dan, these crash pep8 analysis on codeclimate at present

* Revert setstate initialization

* Re-introduce explicit compare for flags

* add back structural comment

* rm unneeeded ` as e`

* bump py tox
2018-03-12 14:40:06 -04:00

63 lines
1002 B
YAML

version: "2"
checks:
argument-count:
enabled: true
config:
threshold: 7
complex-logic:
enabled: true
config:
threshold: 4
file-lines:
enabled: true
config:
threshold: 1000
method-complexity:
enabled: true
config:
threshold: 25
method-count:
enabled: true
config:
threshold: 30
method-lines:
enabled: true
config:
threshold: 50
nested-control-flow:
enabled: true
config:
threshold: 5
return-statements:
enabled: true
config:
threshold: 5
similar-code:
enabled: true
config:
threshold: 100
identical-code:
enabled: true
config:
threshold: 65
plugins:
pep8:
enabled: true
sonar-python:
enabled: false
config:
minimum_severity: critical
radon:
enabled: false
config:
python_version: 2
threshold: "D"
exclude_patterns:
- "docs/"
- "examples/"
- "scripts/"
- "tests/"
- "mcore_*/"
- ".tox/"