-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.rubocop.yml
150 lines (119 loc) · 4.23 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
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
require:
- rubocop-performance
- rubocop-rails
AllCops:
NewCops: enable
TargetRubyVersion: 3.0
TargetRailsVersion: 6.1
Exclude:
- "node_modules/**/*" # Default setting
- "vendor/**/*" # Default setting
- ".git/**/*" # Default setting
- "bin/*"
- "db/schema.rb"
# https://docs.rubocop.org/rubocop/cops_style.html#stylestringliterals
Style/StringLiterals:
EnforcedStyle: double_quotes
# https://docs.rubocop.org/rubocop/cops_style.html#styleemptymethod
Style/EmptyMethod:
EnforcedStyle: expanded
# https://docs.rubocop.org/rubocop/cops_style.html#styleclassandmodulechildren
Style/ClassAndModuleChildren:
Enabled: false
# https://docs.rubocop.org/rubocop/cops_style.html#stylefrozenstringliteralcomment
Style/FrozenStringLiteralComment:
Enabled: false
# https://docs.rubocop.org/rubocop/cops_style.html#stylefrozenstringliteralcomment
Style/SymbolArray:
EnforcedStyle: brackets
# https://docs.rubocop.org/rubocop/cops_style.html#stylenegatedif
Style/NegatedIf:
Enabled: false
# https://docs.rubocop.org/rubocop/cops_style.html#stylecommandliteral
Style/CommandLiteral:
EnforcedStyle: mixed
Enabled: true
# https://docs.rubocop.org/rubocop/cops_style.html#styletrailingcommainhashliteral
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: consistent_comma
# https://docs.rubocop.org/rubocop/cops_style.html#styleconditionalassignment
Style/ConditionalAssignment:
Enabled: false
# https://docs.rubocop.org/rubocop/cops_style.html#styleguardclause
Style/GuardClause:
Enabled: false
# https://docs.rubocop.org/rubocop/cops_style.html#styledocumentation
Style/Documentation:
Enabled: false
# https://docs.rubocop.org/rubocop/cops_style.html#stylemultilineternaryoperator
Style/MultilineTernaryOperator:
Enabled: false
# https://docs.rubocop.org/rubocop/cops_style.html#stylecaselikeif
Style/CaseLikeIf:
Enabled: false
# https://docs.rubocop.org/rubocop/cops_lint.html#lintduplicatebranch
Lint/DuplicateBranch:
Enabled: false
# https://docs.rubocop.org/rubocop/cops_metrics.html#metricsclasslength
Metrics/ClassLength:
Max: 200
# https://docs.rubocop.org/rubocop/cops_metrics.html#metricsblocklength
Metrics/BlockLength:
Enabled: false
# https://docs.rubocop.org/rubocop/cops_metrics.html#metricsmethodlength
Metrics/MethodLength:
Enabled: false
# https://docs.rubocop.org/rubocop/cops_metrics.html#metricsabcsize
Metrics/AbcSize:
Enabled: false
# https://docs.rubocop.org/rubocop/cops_metrics.html#metricsperceivedcomplexity
Metrics/PerceivedComplexity:
Enabled: false
# https://docs.rubocop.org/rubocop/cops_metrics.html#metricscyclomaticcomplexity
Metrics/CyclomaticComplexity:
Enabled: false
# https://docs.rubocop.org/rubocop/cops_layout.html#layoutlinelength
Layout/LineLength:
Enabled: false
# https://docs.rubocop.org/rubocop/cops_layout.html#layouthashalignment
Layout/HashAlignment:
EnforcedHashRocketStyle: table
# https://docs.rubocop.org/rubocop/cops_layout.html#layoutmultilinemethodcallindentation
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
# https://docs.rubocop.org/rubocop/cops_naming.html#namingvariablename
Naming/VariableName:
Exclude:
- lib/parsers/multibuild_beta_blueprint.rb
# https://docs.rubocop.org/rubocop/cops_naming.html#namingmethodname
Naming/MethodName:
Exclude:
- lib/parsers/multibuild_beta_blueprint.rb
# https://docs.rubocop.org/rubocop/cops_naming.html#namingpredicatename
Naming/PredicateName:
Exclude:
- app/models/blueprint.rb
- lib/engine/entities.rb
# https://docs.rubocop.org/rubocop/cops_naming.html#namingmethodparametername
Naming/MethodParameterName:
Exclude:
- lib/parsers/multibuild_beta_blueprint.rb
# https://docs.rubocop.org/rubocop/cops_bundler.html#bundlerorderedgems
Bundler/OrderedGems:
Enabled: false
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsoutput
Rails/Output:
Exclude:
- db/seeds.rb
- app/jobs/base_game_manager_job.rb
- app/jobs/mod_manager_job.rb
- app/jobs/attachment/promote_job.rb
- lib/parsers/multibuild_beta_blueprint.rb
- lib/parsers/dyson_sphere_program_blueprint.rb
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsunknownenv
Rails/UnknownEnv:
Environments:
- development
- test
- staging
- production