-
Notifications
You must be signed in to change notification settings - Fork 2
/
default.yml
161 lines (157 loc) · 3.27 KB
/
default.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
Obsession/MethodOrder:
Enabled: true
Obsession/NoBreakOrNext:
Enabled: false
Exclude:
- 'script/**/*'
Obsession/NoParagraphs:
Enabled: false
Exclude:
- 'db/migrate/*'
- 'spec/**/*'
Obsession/NoTodos:
Enabled: false
Obsession/TooManyParagraphs:
Enabled: false
Exclude:
- 'db/migrate/*'
- 'script/**/*'
- 'spec/**/*'
Obsession/Graphql/MutationName:
Enabled: true
Include:
- 'app/graphql/mutations/**/*'
Obsession/Rspec/DescribePublicMethod:
Enabled: true
Include:
- 'spec/**/*_spec.rb'
# Uncommenting this would mean adding rubocop-rspec as a gem dependency. Feels like too much for now.
# Obsession/Rspec/EmptyLineAfterFinalLet:
# Enabled: true
# Include:
# - 'spec/**/*'
Obsession/Rails/CallbackOneMethod:
Enabled: true
Include:
- 'app/models/**/*'
- 'app/controllers/**/*'
Obsession/Rails/FullyDefinedJsonField:
Enabled: true
Include:
- 'db/migrate/*'
Obsession/Rails/MigrationBelongsTo:
Enabled: true
Include:
- 'db/migrate/*'
Obsession/Rails/NoCallbackConditions:
Enabled: true
Include:
- 'app/models/**/*'
Obsession/Rails/PrivateCallback:
Enabled: true
Include:
- 'app/models/**/*'
- 'app/controllers/**/*'
Obsession/Rails/SafetyAssuredComment:
Enabled: false
Include:
- 'db/migrate/*'
Obsession/Rails/ServiceName:
Enabled: true
Include:
- 'app/services/**/*'
- 'app/jobs/**/*'
Exclude:
- 'app/jobs/application_job.rb'
Obsession/Rails/ServicePerformMethod:
Enabled: true
Include:
- 'app/services/**/*'
Obsession/Rails/ShortAfterCommit:
Enabled: true
Include:
- 'app/models/**/*'
Obsession/Rails/ShortValidate:
Enabled: true
Include:
- 'app/models/**/*'
Obsession/Rails/ValidateOneField:
Enabled: true
Include:
- 'app/models/**/*'
Obsession/Rails/ValidationMethodName:
Enabled: true
Include:
- 'app/models/**/*'
Layout/ClassStructure:
Enabled: true
AutoCorrect: false
Categories:
module_inclusion:
- include
- prepend
- extend
attributes:
- attribute
- attr_reader
- attr_writer
- attr_accessor
- alias_attribute
- delegate
- enum
associations:
- belongs_to
- has_one
- has_many
- has_and_belongs_to_many
validations:
- validates
- validate
- validates_with
callbacks:
- before_validation
- before_save
- before_create
- before_destroy
- after_initialize
- after_create
- after_save
- after_destroy
- after_commit
- after_create_commit
- after_update_commit
- after_destroy_commit
- around_create
other_macros:
- acts_as_paranoid
- audited
- devise
- has_paper_trail
- serialize
scopes:
- default_scope
- scope
controller_actions:
- before_action
- skip_before_action
controller_rescue:
- rescue_from
ExpectedOrder:
- module_inclusion
- constants
- attributes
- enums
- associations
- validations
- callbacks
- other_macros
- scopes
- controller_macros
- controller_actions
- controller_action_caching
- controller_rescue
- class_methods
- initializer
- public_methods
- protected_methods
- private_methods