forked from bcdice/BCDice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
143 lines (105 loc) · 2.59 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
inherit_from: .rubocop_todo.yml
AllCops:
TargetRubyVersion: 2.7
NewCops: disable
Exclude:
- 'node_modules/**/*'
- 'tmp/**/*'
- 'vendor/**/*'
- '.git/**/*'
- lib/bcdice/arithmetic/parser.rb
- lib/bcdice/command/parser.rb
- lib/bcdice/common_command/add_dice/parser.rb
- lib/bcdice/common_command/barabara_dice/parser.rb
- lib/bcdice/common_command/tally_dice/parser.rb
- lib/bcdice/common_command/calc/parser.rb
- lib/bcdice/common_command/reroll_dice/parser.rb
- lib/bcdice/common_command/upper_dice/parser.rb
- lib/bcdice/game_system/sword_world/rating_parser.rb
# Due to old Ruby 1.8.x
Style/Lambda:
EnforcedStyle: lambda
# Due to old Ruby 1.8.x
Style/SpecialGlobalVars:
EnforcedStyle: use_perl_names
Style/FormatStringToken:
Enabled: false
# Due to Opal
Style/SlicingWithRange:
Enabled: false
Layout/EndOfLine:
EnforcedStyle: lf
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
Lint/UnusedMethodArgument:
Exclude:
- example/Template.rb
Lint/StructNewOverride:
Enabled: false
Lint/MissingSuper:
Enabled: false
Style/AsciiComments:
Enabled: false
Style/CaseLikeIf:
Enabled: false
Style/CommentedKeyword:
Enabled: false
Style/ConditionalAssignment:
Enabled: false
Style/DefWithParentheses:
Enabled: false
Style/Documentation:
Enabled: false
Style/NegatedWhile:
Enabled: false
Style/NumericLiterals:
MinDigits: 6
Style/WordArray:
Enabled: true
EnforcedStyle: brackets
Style/FrozenStringLiteralComment:
Enabled: false
Style/GuardClause:
Enabled: false
Style/HashLikeCase:
Exclude:
- 'lib/bcdice/game_system/**/*.rb'
Style/IfInsideElse:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/MethodCallWithoutArgsParentheses:
Enabled: false
Style/NumericPredicate:
Enabled: false
Style/OptionalBooleanParameter:
Exclude:
- 'lib/bcdice/game_system/**/*.rb'
Style/PercentLiteralDelimiters:
Enabled: false
Style/RedundantReturn:
Enabled: false
Style/StringConcatenation:
Exclude:
- 'lib/bcdice/game_system/**/*.rb'
Style/StringLiterals:
Enabled: true
EnforcedStyle: double_quotes
Exclude:
- 'lib/bcdice/game_system/*.rb'
Style/SymbolProc:
Exclude:
- 'lib/bcdice/repl.rb' # DSLを実装しているため
Style/SymbolArray:
Enabled: true
EnforcedStyle: brackets
Style/TrailingCommaInArrayLiteral:
Enabled: false
Style/TrailingCommaInHashLiteral:
Enabled: false
Style/WhileUntilModifier:
Enabled: false
Style/YodaCondition:
EnforcedStyle: forbid_for_equality_operators_only