-
Notifications
You must be signed in to change notification settings - Fork 4
/
.rubocop.yml
77 lines (77 loc) · 1.48 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
AllCops:
TargetRubyVersion: 2.5
Style/AndOr:
Enabled: false
Style/AsciiComments:
Enabled: false
Style/Lambda:
EnforcedStyle: literal
Style/LambdaCall:
Enabled: false
Style/RescueModifier:
Enabled: false
Security/YAMLLoad:
Enabled: false
Metrics/BlockLength:
Enabled: true
Exclude:
- spec/**/*
Layout/ClassStructure:
Enabled: true
Categories:
module_inclusion:
- include
- prepend
- extend
overrides:
- default_scope
- "table_name="
attributes:
- attribute
- attr_reader
- attr_writer
- attr_accessor
- alias_attribute
- translates
associations:
- has_one
- has_many
- belongs_to
- has_and_belongs_to_many
validations:
- validate
- validates_presence_of
- validates_uniqueness_of
hooks:
- before_validation
- after_validation
- before_save
- around_save
- before_create
- before_update
- before_destroy
- around_create
- around_update
- around_destroy
- after_create
- after_update
- after_destroy
- after_save
- after_commit
- after_rollback
ExpectedOrder:
- module_inclusion
- inner_class
- overrides
- constants
- attributes
- enum
- associations
- validations
- hooks
- public_class_methods
- initializer
- public_methods
- protected_methods
- private_methods
- memoize