-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.rubocop.yml
More file actions
94 lines (94 loc) · 2.18 KB
/
.rubocop.yml
File metadata and controls
94 lines (94 loc) · 2.18 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
require:
- rubocop-rails
- rubocop-rspec
- rubocop-performance
Style/Documentation:
Enabled: false
Metrics/BlockLength:
Exclude:
- 'spec/**/*.rb'
- 'config/**/*.rb'
- 'app/admin/*.rb'
Layout/LineLength:
Exclude:
- 'config/initializers/*.rb'
Metrics/MethodLength:
Exclude:
- 'db/**/*.rb'
Style/FrozenStringLiteralComment:
Enabled: false
Metrics/AbcSize:
Exclude:
- 'db/**/*.rb'
Rails/SkipsModelValidations:
Exclude:
# update_column is intentionally used in sort methods to bypass validations
# when only updating position, which is safe and necessary for RankedModel
- 'app/controllers/admin/members_controller.rb'
- 'app/controllers/admin/projects_controller.rb'
- 'app/controllers/admin/categories_controller.rb'
# update_all is intentionally used to update timestamps without callbacks
- 'app/models/technology.rb'
RSpec/MultipleExpectations:
Exclude:
- 'spec/**/*.rb'
RSpec/ExampleLength:
Exclude:
- 'spec/**/*.rb'
RSpec/AnyInstance:
Exclude:
- 'spec/**/*.rb'
RSpec/LetSetup:
Exclude:
- 'spec/**/*.rb'
RSpec/ExpectActual:
Exclude:
- 'spec/controllers/**/*.rb'
RSpec/NamedSubject:
Exclude:
- 'spec/**/*.rb'
RSpec/FilePath:
Exclude:
- 'spec/requests/admin/technologies_groups_controller_spec.rb'
Metrics/AbcSize:
Exclude:
- 'db/**/*.rb'
- 'app/controllers/**/*.rb'
- 'app/helpers/**/*.rb'
- 'app/models/**/*.rb'
- 'spec/**/*.rb'
- 'config/**/*.rb'
Metrics/MethodLength:
Exclude:
- 'db/**/*.rb'
- 'app/controllers/**/*.rb'
- 'app/helpers/**/*.rb'
- 'app/models/**/*.rb'
- 'spec/**/*.rb'
- 'config/**/*.rb'
Rails/OutputSafety:
Exclude:
- 'app/helpers/**/*.rb'
Rails/UniqueValidationWithoutIndex:
Exclude:
- 'app/models/**/*.rb'
Lint/UriEscapeUnescape:
Exclude:
- 'app/helpers/**/*.rb'
- 'config/**/*.rb'
- 'lib/**/*.rb'
Rails/UnknownEnv:
Exclude:
- 'spec/**/*.rb'
Style/MixinUsage:
Exclude:
- 'spec/**/*.rb'
Naming/VariableNumber:
Exclude:
- 'spec/**/*.rb'
Rails/LexicallyScopedActionFilter:
Exclude:
- 'app/controllers/application_controller.rb'
Rails/CreateTableWithTimestamps:
Exclude:
- 'db/migrate/**/*.rb'