This repository was archived by the owner on Sep 24, 2025. It is now read-only.
forked from rails-stall/stall
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.rubocop.yml
More file actions
84 lines (69 loc) · 1.49 KB
/
.rubocop.yml
File metadata and controls
84 lines (69 loc) · 1.49 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
require:
- rubocop-rails
Rails:
Enabled: true
AllCops:
NewCops: disable
Exclude:
- 'db/schema.rb'
- 'config/routes.rb'
- 'tmp/**/*'
- 'public/**/*'
- 'vendor/**/*'
- 'bin/**/*'
- 'Guardfile'
Metrics/AbcSize:
Max: 50
# For specs
Metrics/BlockLength:
Max: 25
Exclude:
- 'spec/**/*'
# The guiding principle of classes is SRP, SRP can't be accurately measured by LoC
Metrics/ClassLength:
Max: 1500
# The guiding principle of classes is SRP, SRP can't be accurately measured by LoC
Metrics/CyclomaticComplexity:
Max: 11
# Too short methods lead to extraction of single-use methods, which can make
# the code easier to read (by naming things), but can also clutter the class
Metrics/MethodLength:
Max: 25
Exclude:
- '**/migrate/*'
# Commonly used screens these days easily fit more than 80 characters.
Layout/LineLength:
Max: 120
Style/AsciiComments:
Enabled: false
Style/BlockDelimiters:
Exclude:
- 'spec/**/*'
EnforcedStyle: line_count_based
FunctionalMethods:
- before
- let
- let!
- subject
- watch
- expect
Style/NumericLiterals:
MinDigits: 6
Style/SymbolArray:
EnforcedStyle: brackets
Style/WordArray:
EnforcedStyle: brackets
Style/Documentation:
Exclude:
- '**/migrate/*'
Style/HashTransformValues:
Enabled: false
Style/HashTransformKeys:
Enabled: false
Style/HashEachMethods:
Enabled: false
LexicallyScopedActionFilter:
Exclude:
- 'app/controllers/**/**/*'
Style/SymbolProc:
Enabled: false