-
-
Notifications
You must be signed in to change notification settings - Fork 72
Expand file tree
/
Copy path.rubocop.yml
More file actions
105 lines (77 loc) · 1.59 KB
/
.rubocop.yml
File metadata and controls
105 lines (77 loc) · 1.59 KB
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
require:
- rubocop-performance
- rubocop-rails
- rubocop-rspec
- rubocop-thread_safety
inherit_mode:
merge:
- Exclude
AllCops:
Exclude:
- 'test/dummy/**/*'
- 'app/controllers/kaui/engine_controller.rb' # Too much magic going on
NewCops: enable
SuggestExtensions: false
TargetRubyVersion: 3.2
Gemspec/RequiredRubyVersion:
Enabled: false
Layout/LineLength:
Enabled: false
# Alternative?
Gemspec/RubyVersionGlobalsUsage:
Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/BlockLength:
Enabled: false
Metrics/BlockNesting:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/MethodLength:
Enabled: false
Metrics/ModuleLength:
Enabled: false
Metrics/ParameterLists:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
Style/Documentation:
Enabled: false
Style/EmptyElse:
EnforcedStyle: empty
# Rails cops
Rails:
Enabled: true
Rails/I18nLocaleTexts:
Enabled: false
Rails/SkipsModelValidations:
Enabled: false
# RSpec cops
RSpec:
Enabled: true
RSpec/MultipleExpectations:
Enabled: false
RSpec/ExampleLength:
Enabled: false
# Performance cops
Performance:
Enabled: true
# Thread Safety cops
ThreadSafety:
Enabled: true
ThreadSafety/ClassAndModuleAttributes:
Enabled: false
ThreadSafety/DirChdir:
Exclude:
- 'script/sandbox'
# CLI tool uses exit() for control flow
Rails/Exit:
Exclude:
- 'lib/kaui/installer/installer.rb'
# Legacy tests - migration to IntegrationTest is non-trivial
Rails/ActionControllerTestCase:
Exclude:
- 'test/functional/**/*'