.codeclimate.yml
version: "2" # According to documentation, required to adjust maintainability checks
plugins:
# disable Rubocop at CodeClimate, it cannot read the shared config from
# the /usr/share/YaST2/data/devtools/data/rubocop_yast_style.yml file
rubocop:
enabled: false
duplication:
enabled: true
exclude_patterns:
- "test/"
config:
languages:
- ruby
checks:
# disable most of the checks, they are already checked by Rubocop in Travis
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
# these are not supported by Rubocop so enable them
similar-code:
enabled: true
identical-code:
enabled: true