This repository has been archived by the owner on Apr 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.rubocop.yml
91 lines (66 loc) · 2.31 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
require:
- rubocop-performance
- rubocop-rails
- rubocop-rspec
- rubocop-thread_safety
AllCops:
EnabledByDefault: true
Exclude:
- 'config/initializers/simple_form.rb' # Auto generated file
- 'config/initializers/simple_form_bootstrap.rb' # Auto generated file
- 'db/migrate/*_squash_migrations.rb' # Auto generated file
- 'db/schema.rb' # Auto generated file
- 'node_modules/**/*' # External libraries
- 'vendor/bundle/**/*' # External libraries
Bundler/GemVersion: # Keep versions in Gemfile.lock so easy to upgrade
EnforcedStyle: forbidden
RSpec/Capybara: # Prefer to use RSpec.feature methods
Enabled: false
Lint/ConstantResolution: # Not standard ruby style
Enabled: false
Metrics/BlockLength:
Exclude:
- 'config/**/*' # OK for config files to have large blocks
- 'spec/**/*' # OK for specs to have large blocks
RSpec/AlignLeftLetBrace: # Alignment creates large diffs on changes
Enabled: false
RSpec/AlignRightLetBrace: # Alignment creates large diffs on changes
Enabled: false
RSpec/ExampleLength:
Exclude:
- 'spec/features/**/*' # OK for long features
RSpec/IndexedLet: # Useful
Enabled: false
RSpec/MessageExpectation: # Allow expects
Enabled: false
RSpec/MessageSpies: # Prefer receive to have_received as no duplication
EnforcedStyle: receive
RSpec/MultipleExpectations:
Exclude:
- 'spec/features/**/*' # OK for multiple expectations in features
RSpec/MultipleMemoizedHelpers:
Enabled: false
RSpec/NoExpectationExample: # Pics up false positives
Enabled: false
Style/DisableCopsWithinSourceCodeDirective: # Useful for some cases
Enabled: false
Style/Documentation: # Not a public library so not needed
Enabled: false
Style/DocumentationMethod: # Not a public library so not needed
Enabled: false
Style/Copyright: # Not needed in every file
Enabled: false
Style/FrozenStringLiteralComment: # Remove in ruby 3
Enabled: false
Style/ImplicitRuntimeError: # Like raising just messages
Enabled: false
Style/InlineComment: # Good in lots of cases
Enabled: false
Style/MethodCallWithArgsParentheses: # Not standard ruby style
Enabled: false
Style/MissingElse: # Useful in some cases
Enabled: false
Style/StringHashKeys: # Bad in some cases
Enabled: false
Style/TopLevelMethodDefinition: # Picks up too many false positives
Enabled: false