-
Notifications
You must be signed in to change notification settings - Fork 7
/
.codeclimate.yml
59 lines (59 loc) · 1.58 KB
/
.codeclimate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
engines:
# Style and quality checks for Ruby code
# configuration via .rubocop.yml file
# https://docs.codeclimate.com/v1.0/docs/rubocop
rubocop:
enabled: true
exclude_paths:
# include spec directory for rubocop linting
- "!spec/"
# Static analysis tool which checks Ruby on Rails applications for security vulnerabilities
# https://docs.codeclimate.com/v1.0/docs/brakeman
brakeman:
enabled: true
# Find security vulnerabilities in your Ruby dependencies
# https://docs.codeclimate.com/v1.0/docs/bundler-audit
bundler-audit:
enabled: true
# Search for TODO, FIXME, HACK, XXX, and BUG
# https://docs.codeclimate.com/v1.0/docs/fixme
fixme:
enabled: true
# Measure the ABC complexity of Ruby methods
# https://docs.codeclimate.com/v1.0/docs/flog
flog:
enabled: true
config:
score_threshold: 20.0
# Code smell detector for Ruby
# https://docs.codeclimate.com/v1.0/docs/reek
reek:
enabled: true
TooManyMethods:
enabled: true
max_methods: 20
# Enforce consistent conventions and avoid errors in your stylesheets
# https://docs.codeclimate.com/v1.0/docs/stylelint
stylelint:
enabled: true
# Reports issues when it finds similar code blocks over a configurable mass threshold
# https://docs.codeclimate.com/v1.0/docs/duplication
duplication:
enabled: true
config:
languages:
ruby:
mass_threshold: 20
ratings:
paths:
- app/**
# bundler-audit
- Gemfile.lock
# stylelint
- "**.css"
- "**.rb"
exclude_paths:
- "**/vendor/**/*"
- "spec/**"
- "db/**"
- "features/**"