-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
85 lines (66 loc) · 1.8 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
inherit_from:
# - .rubocop_todo.yml
- .rubocop_rails.yml
- .rubocop_rspec.yml
- .rubocop_strict.yml
inherit_mode:
merge:
- Exclude
require:
# - rubocop-performance
# - standard/cop/semantic_blocks
# - standard/cop/block_single_line_braces
# inherit_gem:
# standard: config/base.yml
AllCops:
Exclude:
- 'bin/*'
- 'tmp/**/*'
- 'vendor/**/*'
- 'gemfiles/**/*'
- 'node_modules/**/*'
- 'lib/templates/**/*'
- 'lib/tasks/**/*'
- 'test/**/*' # we have decided not improve the old test suite
- 'lib_old/**/*'
- 'lib/**/*'
- 'doc/**/*'
- 'db/data/**/*'
DisplayCopNames: true
TargetRubyVersion: '2.7'
# Standard/SemanticBlocks:
# Enabled: false
Style/FrozenStringLiteralComment:
Enabled: true
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/GlobalVars:
Exclude:
- 'config/initializers/**/*'
Rails/Output:
Exclude:
- 'config/**/*'
- 'app/jobs/**/*'
Rails/OutputSafety:
Exclude:
- 'spec/**/*'
- 'engines/**/spec/**/*'
Rails/FilePath:
Exclude:
- 'config/**/*'
Rails/ReversibleMigration:
Enabled: true
# [MattP] We have a pretty legacy reliance on the old Time.now behavior and a config.time_zone setting...
# this should be corrected, but for now there are about 59 instances that need to be waded thru after
# re-enabling this cop
Rails/TimeZone:
Enabled: false
# [MattP] I often turn this one off because there are legit reasons sometimes to make a table without
# timestamp columns; up for debate
Rails/CreateTableWithTimestamps:
Enabled: false
# [MattP] For now, I'm disabling this for our legacy controllers, but I'd like to enable this for anything
# we build in the future, especially if that gets built in a module/engine
Rails/LexicallyScopedActionFilter:
Exclude:
- 'app/controllers/**/*'