forked from coreinfrastructure/best-practices-badge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
91 lines (91 loc) · 2.23 KB
/
.rubocop.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
AllCops:
EnabledByDefault: true
TargetRubyVersion: 2.4
DisplayCopNames: true
DisplayStyleGuide: true
Include:
- '**/*.pryrc'
- '**/*.rake'
- '.env'
- '.simplecov'
- '**/config.ru'
- '**/Gemfile'
- '**/Guardfile'
- '**/Rakefile'
Exclude:
- 'db/schema.rb'
- 'db/migrate/2015*.rb'
- 'db/migrate/2016*.rb'
Documentation:
Enabled: false
Lint/HandleExceptions:
Exclude:
- 'bin/*'
Style/RescueStandardError:
Exclude:
# When getting evidence from external sources there are
# many possible problems, and we don't care - if there's
# an error getting evidence, we treat it as no evidence.
- 'app/lib/evidence.rb'
Metrics/AbcSize:
Max: 17
Exclude:
- 'db/migrate/*'
Metrics/ClassLength:
Exclude:
- 'db/migrate/*'
Metrics/LineLength:
Exclude:
- 'db/migrate/*'
Metrics/MethodLength:
Exclude:
- 'db/migrate/*'
Rails/SkipsModelValidations:
Exclude:
- 'test/**/*.rb'
Style/Copyright:
Enabled: false
Style/InlineComment:
Enabled: false
Style/DocumentationMethod:
Enabled: false
Style/MethodCallWithArgsParentheses:
Enabled: false
Style/MissingElse:
Enabled: false
Style/NegatedIf:
Enabled: true
EnforcedStyle: postfix
Style/Send:
Exclude:
- 'test/**/*.rb'
#
# Historical systems could only reliably handle comments if they were ASCII.
# But UTF-8 has essentially "taken over", so there's no reason to limit
# ourselves to ASCII. Having ASCII-only comments makes it unnecessarily
# difficult to discuss/describe locale issues. *Code* handles UTF-8
# without incident, so there's no reason to limit comments to ASCII.
#
Style/AsciiComments:
Enabled: false
#
# The following are new cops in Rubocop 0.52 which have disabled because
# we aren't ready for them right now. It's diffult to do things "all at once".
# Instead, we'll get things running first (ignoring these cops), and
# later try to slowly comply with them or reject them.
# See issue #1069, which tracks this decision.
#
Style/StringHashKeys:
Enabled: false
Naming/ConstantName:
Enabled: false
Style/MixinUsage:
Enabled: false
Rails/EnvironmentComparison:
Enabled: false
Lint/MissingCopEnableDirective:
Enabled: false
Layout/ClassStructure:
Enabled: false
Rails/Presence:
Enabled: false