rley 0.7.03 → 0.7.08
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +362 -62
- data/.travis.yml +6 -7
- data/CHANGELOG.md +20 -1
- data/LICENSE.txt +1 -1
- data/README.md +6 -7
- data/Rakefile +2 -0
- data/appveyor.yml +2 -4
- data/examples/NLP/benchmark_pico_en.rb +2 -0
- data/examples/NLP/engtagger.rb +193 -188
- data/examples/NLP/nano_eng/nano_en_demo.rb +2 -0
- data/examples/NLP/nano_eng/nano_grammar.rb +7 -5
- data/examples/NLP/pico_en_demo.rb +2 -0
- data/examples/data_formats/JSON/cli_options.rb +3 -1
- data/examples/data_formats/JSON/json_ast_builder.rb +14 -9
- data/examples/data_formats/JSON/json_ast_nodes.rb +14 -21
- data/examples/data_formats/JSON/json_demo.rb +2 -0
- data/examples/data_formats/JSON/json_grammar.rb +4 -2
- data/examples/data_formats/JSON/json_lexer.rb +10 -8
- data/examples/data_formats/JSON/json_minifier.rb +3 -1
- data/examples/general/calc_iter1/calc_ast_builder.rb +15 -10
- data/examples/general/calc_iter1/calc_ast_nodes.rb +25 -37
- data/examples/general/calc_iter1/calc_demo.rb +2 -0
- data/examples/general/calc_iter1/calc_grammar.rb +4 -2
- data/examples/general/calc_iter1/calc_lexer.rb +8 -4
- data/examples/general/calc_iter1/spec/calculator_spec.rb +7 -5
- data/examples/general/calc_iter2/calc_ast_builder.rb +7 -3
- data/examples/general/calc_iter2/calc_ast_nodes.rb +29 -43
- data/examples/general/calc_iter2/calc_demo.rb +2 -0
- data/examples/general/calc_iter2/calc_grammar.rb +5 -3
- data/examples/general/calc_iter2/calc_lexer.rb +13 -10
- data/examples/general/calc_iter2/spec/calculator_spec.rb +28 -26
- data/examples/general/left.rb +4 -2
- data/examples/general/right.rb +4 -2
- data/lib/rley.rb +2 -0
- data/lib/rley/base/base_parser.rb +2 -0
- data/lib/rley/base/dotted_item.rb +38 -41
- data/lib/rley/base/grm_items_builder.rb +2 -0
- data/lib/rley/constants.rb +5 -3
- data/lib/rley/engine.rb +22 -24
- data/lib/rley/formatter/asciitree.rb +6 -4
- data/lib/rley/formatter/base_formatter.rb +2 -0
- data/lib/rley/formatter/bracket_notation.rb +3 -8
- data/lib/rley/formatter/debug.rb +8 -6
- data/lib/rley/formatter/json.rb +4 -2
- data/lib/rley/gfg/call_edge.rb +3 -1
- data/lib/rley/gfg/edge.rb +7 -5
- data/lib/rley/gfg/end_vertex.rb +4 -6
- data/lib/rley/gfg/epsilon_edge.rb +3 -5
- data/lib/rley/gfg/grm_flow_graph.rb +31 -25
- data/lib/rley/gfg/item_vertex.rb +12 -22
- data/lib/rley/gfg/non_terminal_vertex.rb +6 -4
- data/lib/rley/gfg/return_edge.rb +2 -0
- data/lib/rley/gfg/scan_edge.rb +3 -1
- data/lib/rley/gfg/shortcut_edge.rb +4 -2
- data/lib/rley/gfg/start_vertex.rb +6 -8
- data/lib/rley/gfg/vertex.rb +47 -41
- data/lib/rley/lexical/token.rb +3 -1
- data/lib/rley/lexical/token_range.rb +8 -6
- data/lib/rley/parse_forest_visitor.rb +7 -5
- data/lib/rley/parse_rep/ast_base_builder.rb +11 -11
- data/lib/rley/parse_rep/cst_builder.rb +7 -4
- data/lib/rley/parse_rep/parse_forest_builder.rb +36 -25
- data/lib/rley/parse_rep/parse_forest_factory.rb +5 -3
- data/lib/rley/parse_rep/parse_rep_creator.rb +18 -13
- data/lib/rley/parse_rep/parse_tree_builder.rb +15 -15
- data/lib/rley/parse_rep/parse_tree_factory.rb +27 -25
- data/lib/rley/parse_tree_visitor.rb +3 -1
- data/lib/rley/parser/error_reason.rb +9 -8
- data/lib/rley/parser/gfg_chart.rb +54 -22
- data/lib/rley/parser/gfg_earley_parser.rb +3 -1
- data/lib/rley/parser/gfg_parsing.rb +51 -31
- data/lib/rley/parser/parse_entry.rb +29 -33
- data/lib/rley/parser/parse_entry_set.rb +32 -27
- data/lib/rley/parser/parse_entry_tracker.rb +6 -4
- data/lib/rley/parser/parse_state.rb +18 -21
- data/lib/rley/parser/parse_state_tracker.rb +6 -4
- data/lib/rley/parser/parse_tracer.rb +15 -13
- data/lib/rley/parser/parse_walker_factory.rb +28 -29
- data/lib/rley/parser/state_set.rb +11 -10
- data/lib/rley/ptree/non_terminal_node.rb +10 -6
- data/lib/rley/ptree/parse_tree.rb +6 -4
- data/lib/rley/ptree/parse_tree_node.rb +7 -5
- data/lib/rley/ptree/terminal_node.rb +9 -7
- data/lib/rley/rley_error.rb +12 -10
- data/lib/rley/sppf/alternative_node.rb +8 -6
- data/lib/rley/sppf/composite_node.rb +9 -7
- data/lib/rley/sppf/epsilon_node.rb +5 -3
- data/lib/rley/sppf/leaf_node.rb +5 -3
- data/lib/rley/sppf/non_terminal_node.rb +2 -0
- data/lib/rley/sppf/parse_forest.rb +19 -17
- data/lib/rley/sppf/sppf_node.rb +9 -8
- data/lib/rley/sppf/token_node.rb +5 -3
- data/lib/rley/syntax/grammar.rb +7 -5
- data/lib/rley/syntax/grammar_builder.rb +11 -9
- data/lib/rley/syntax/grm_symbol.rb +8 -6
- data/lib/rley/syntax/literal.rb +2 -0
- data/lib/rley/syntax/non_terminal.rb +11 -15
- data/lib/rley/syntax/production.rb +13 -11
- data/lib/rley/syntax/symbol_seq.rb +10 -10
- data/lib/rley/syntax/terminal.rb +6 -5
- data/lib/rley/syntax/verbatim_symbol.rb +5 -3
- data/lib/support/base_tokenizer.rb +23 -20
- data/spec/rley/base/dotted_item_spec.rb +4 -2
- data/spec/rley/base/grm_items_builder_spec.rb +2 -0
- data/spec/rley/engine_spec.rb +47 -9
- data/spec/rley/formatter/asciitree_spec.rb +11 -9
- data/spec/rley/formatter/bracket_notation_spec.rb +16 -14
- data/spec/rley/formatter/debug_spec.rb +4 -2
- data/spec/rley/formatter/json_spec.rb +5 -3
- data/spec/rley/gfg/call_edge_spec.rb +2 -0
- data/spec/rley/gfg/edge_spec.rb +2 -0
- data/spec/rley/gfg/end_vertex_spec.rb +7 -5
- data/spec/rley/gfg/epsilon_edge_spec.rb +2 -0
- data/spec/rley/gfg/grm_flow_graph_spec.rb +2 -0
- data/spec/rley/gfg/item_vertex_spec.rb +12 -10
- data/spec/rley/gfg/non_terminal_vertex_spec.rb +5 -3
- data/spec/rley/gfg/return_edge_spec.rb +2 -0
- data/spec/rley/gfg/scan_edge_spec.rb +2 -0
- data/spec/rley/gfg/shortcut_edge_spec.rb +3 -1
- data/spec/rley/gfg/start_vertex_spec.rb +7 -5
- data/spec/rley/gfg/vertex_spec.rb +5 -3
- data/spec/rley/lexical/token_range_spec.rb +18 -16
- data/spec/rley/lexical/token_spec.rb +4 -2
- data/spec/rley/parse_forest_visitor_spec.rb +167 -163
- data/spec/rley/parse_rep/ambiguous_parse_spec.rb +46 -44
- data/spec/rley/parse_rep/ast_builder_spec.rb +8 -6
- data/spec/rley/parse_rep/cst_builder_spec.rb +7 -5
- data/spec/rley/parse_rep/groucho_spec.rb +25 -25
- data/spec/rley/parse_rep/parse_forest_builder_spec.rb +28 -26
- data/spec/rley/parse_rep/parse_forest_factory_spec.rb +8 -6
- data/spec/rley/parse_rep/parse_tree_factory_spec.rb +4 -2
- data/spec/rley/parse_tree_visitor_spec.rb +12 -8
- data/spec/rley/parser/error_reason_spec.rb +8 -6
- data/spec/rley/parser/gfg_chart_spec.rb +17 -4
- data/spec/rley/parser/gfg_earley_parser_spec.rb +16 -11
- data/spec/rley/parser/gfg_parsing_spec.rb +41 -252
- data/spec/rley/parser/parse_entry_set_spec.rb +2 -0
- data/spec/rley/parser/parse_entry_spec.rb +21 -19
- data/spec/rley/parser/parse_state_spec.rb +7 -5
- data/spec/rley/parser/parse_tracer_spec.rb +16 -14
- data/spec/rley/parser/parse_walker_factory_spec.rb +10 -8
- data/spec/rley/parser/state_set_spec.rb +24 -22
- data/spec/rley/ptree/non_terminal_node_spec.rb +7 -3
- data/spec/rley/ptree/parse_tree_node_spec.rb +6 -4
- data/spec/rley/ptree/parse_tree_spec.rb +2 -0
- data/spec/rley/ptree/terminal_node_spec.rb +8 -6
- data/spec/rley/sppf/alternative_node_spec.rb +8 -6
- data/spec/rley/sppf/non_terminal_node_spec.rb +5 -3
- data/spec/rley/sppf/token_node_spec.rb +6 -4
- data/spec/rley/support/ambiguous_grammar_helper.rb +5 -4
- data/spec/rley/support/expectation_helper.rb +2 -0
- data/spec/rley/support/grammar_abc_helper.rb +4 -4
- data/spec/rley/support/grammar_ambig01_helper.rb +6 -5
- data/spec/rley/support/grammar_arr_int_helper.rb +6 -5
- data/spec/rley/support/grammar_b_expr_helper.rb +6 -5
- data/spec/rley/support/grammar_helper.rb +2 -0
- data/spec/rley/support/grammar_l0_helper.rb +15 -16
- data/spec/rley/support/grammar_pb_helper.rb +8 -5
- data/spec/rley/support/grammar_sppf_helper.rb +3 -1
- data/spec/rley/syntax/grammar_builder_spec.rb +7 -5
- data/spec/rley/syntax/grammar_spec.rb +8 -6
- data/spec/rley/syntax/grm_symbol_spec.rb +3 -1
- data/spec/rley/syntax/literal_spec.rb +2 -0
- data/spec/rley/syntax/non_terminal_spec.rb +10 -8
- data/spec/rley/syntax/production_spec.rb +15 -13
- data/spec/rley/syntax/symbol_seq_spec.rb +4 -2
- data/spec/rley/syntax/terminal_spec.rb +7 -5
- data/spec/rley/syntax/verbatim_symbol_spec.rb +3 -1
- data/spec/spec_helper.rb +2 -12
- data/spec/support/base_tokenizer_spec.rb +9 -2
- metadata +21 -63
- data/.simplecov +0 -7
- data/Gemfile +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7377b66e5bac6ee813506829f53a32d694e9a01eaee5f55deec4475a710305d7
|
4
|
+
data.tar.gz: 7f972ad8f29be409a12cb61ae095177d8f9f2594fe9b7eb0ef1a931de0729c9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9e888ca1df16c7421df180c551879e6d066f9f848db2135be637951c7edfe928d693be8b1e22753c10b546198351650cc6dfd1acf14837597979f2e0a589715
|
7
|
+
data.tar.gz: 4ea2a4c50e66321a00d828264052df58e83beb69ccc13fe9cda7dd9b648eee58f4332510867fef291006e2378f2c25ce85fff95ac11a7ed367578cee567b3b34
|
data/.rubocop.yml
CHANGED
@@ -1,128 +1,428 @@
|
|
1
1
|
AllCops:
|
2
2
|
Exclude:
|
3
|
-
- 'features/**/*'
|
4
3
|
- 'exp/**/*'
|
5
|
-
- '
|
6
|
-
- 'refs/**/*'
|
4
|
+
- 'demo/**/*'
|
7
5
|
|
8
|
-
|
9
|
-
|
10
|
-
Enabled: false
|
6
|
+
Gemspec/DateAssignment:
|
7
|
+
Enabled: true
|
11
8
|
|
12
|
-
|
9
|
+
Layout/ArgumentAlignment:
|
13
10
|
Enabled: false
|
14
11
|
|
15
|
-
|
16
|
-
Enabled:
|
12
|
+
Layout/ArrayAlignment:
|
13
|
+
Enabled: true
|
14
|
+
EnforcedStyle: with_fixed_indentation
|
17
15
|
|
18
|
-
CaseIndentation:
|
19
|
-
|
20
|
-
IndentOneStep: true
|
16
|
+
Layout/CaseIndentation:
|
17
|
+
Enabled: false
|
21
18
|
|
22
|
-
|
23
|
-
# Which is contrary to modelling practice.
|
24
|
-
ClassCheck:
|
19
|
+
Layout/ClosingHeredocIndentation:
|
25
20
|
Enabled: false
|
26
21
|
|
27
|
-
|
28
|
-
|
29
|
-
CountComments: false
|
22
|
+
Layout/CommentIndentation:
|
23
|
+
Enabled: false
|
30
24
|
|
31
|
-
|
25
|
+
Layout/ElseAlignment:
|
32
26
|
Enabled: false
|
33
27
|
|
34
|
-
|
28
|
+
Layout/EmptyLines:
|
35
29
|
Enabled: false
|
36
30
|
|
37
|
-
|
31
|
+
Layout/EndAlignment:
|
38
32
|
Enabled: false
|
39
33
|
|
40
|
-
|
34
|
+
Layout/EndOfLine:
|
35
|
+
Enabled: true
|
36
|
+
EnforcedStyle: lf
|
37
|
+
|
38
|
+
Layout/FirstArgumentIndentation:
|
41
39
|
Enabled: false
|
42
40
|
|
43
|
-
|
41
|
+
Layout/HashAlignment:
|
44
42
|
Enabled: false
|
45
43
|
|
46
|
-
|
44
|
+
Layout/IndentationWidth:
|
47
45
|
Enabled: false
|
48
46
|
|
49
|
-
|
47
|
+
Layout/IndentationConsistency:
|
48
|
+
Enabled: true
|
49
|
+
|
50
|
+
Layout/HeredocIndentation:
|
50
51
|
Enabled: false
|
51
|
-
# SupportedStyles: lf
|
52
52
|
|
53
|
+
Layout/MultilineHashBraceLayout:
|
54
|
+
Enabled: true
|
55
|
+
|
56
|
+
Layout/MultilineMethodCallBraceLayout:
|
57
|
+
Enabled: true
|
58
|
+
EnforcedStyle: same_line
|
59
|
+
|
60
|
+
Layout/SpaceAroundOperators:
|
61
|
+
Enabled: true
|
62
|
+
|
63
|
+
Layout/SpaceBeforeBrackets:
|
64
|
+
Enabled: true
|
65
|
+
|
66
|
+
Layout/SpaceInsideParens:
|
67
|
+
Enabled: true
|
68
|
+
|
69
|
+
Layout/IndentationStyle:
|
70
|
+
Enabled: true
|
71
|
+
|
72
|
+
Layout/SpaceAroundMethodCallOperator:
|
73
|
+
Enabled: true
|
74
|
+
|
75
|
+
Layout/TrailingEmptyLines:
|
76
|
+
Enabled: true
|
77
|
+
|
78
|
+
Layout/TrailingWhitespace:
|
79
|
+
Enabled: true
|
80
|
+
|
81
|
+
Lint/AmbiguousAssignment:
|
82
|
+
Enabled: true
|
83
|
+
|
84
|
+
Lint/DeprecatedConstants:
|
85
|
+
Enabled: true
|
86
|
+
|
87
|
+
Lint/DuplicateBranch:
|
88
|
+
Enabled: true
|
89
|
+
|
90
|
+
Lint/DuplicateRegexpCharacterClassElement:
|
91
|
+
Enabled: true
|
92
|
+
|
93
|
+
Lint/EmptyBlock:
|
94
|
+
Enabled: true
|
53
95
|
|
54
|
-
|
96
|
+
Lint/EmptyClass:
|
55
97
|
Enabled: false
|
56
|
-
|
57
|
-
|
98
|
+
|
99
|
+
Lint/LambdaWithoutLiteralBlock:
|
100
|
+
Enabled: true
|
101
|
+
|
102
|
+
Lint/Loop:
|
103
|
+
Enabled: true
|
104
|
+
|
105
|
+
Lint/NoReturnInBeginEndBlocks:
|
106
|
+
Enabled: true
|
107
|
+
|
108
|
+
Lint/NumberedParameterAssignment:
|
109
|
+
Enabled: true
|
110
|
+
|
111
|
+
Lint/OrAssignmentToConstant:
|
112
|
+
Enabled: true
|
113
|
+
|
114
|
+
Lint/RaiseException:
|
115
|
+
Enabled: true
|
116
|
+
|
117
|
+
Lint/RedundantDirGlobSort:
|
118
|
+
Enabled: true
|
119
|
+
|
120
|
+
Lint/RescueException:
|
121
|
+
Enabled: true
|
122
|
+
|
123
|
+
Lint/StructNewOverride:
|
124
|
+
Enabled: true
|
125
|
+
|
126
|
+
Lint/SymbolConversion:
|
127
|
+
Enabled: true
|
128
|
+
|
129
|
+
Lint/ToEnumArguments:
|
130
|
+
Enabled: true
|
131
|
+
|
132
|
+
Lint/TripleQuotes:
|
133
|
+
Enabled: true
|
134
|
+
|
135
|
+
Lint/UnexpectedBlockArity:
|
136
|
+
Enabled: true
|
137
|
+
|
138
|
+
Lint/UnmodifiedReduceAccumulator:
|
139
|
+
Enabled: true
|
140
|
+
|
141
|
+
Lint/UnusedMethodArgument:
|
142
|
+
Enabled: true
|
143
|
+
|
144
|
+
Lint/UselessAccessModifier:
|
145
|
+
Enabled: true
|
146
|
+
|
147
|
+
Lint/Void:
|
58
148
|
Enabled: false
|
59
149
|
|
60
|
-
|
150
|
+
Lint/UselessAssignment:
|
151
|
+
Enabled: true
|
152
|
+
|
153
|
+
Metrics/AbcSize:
|
61
154
|
Enabled: false
|
62
|
-
|
63
|
-
|
64
|
-
|
155
|
+
|
156
|
+
Metrics/BlockLength:
|
157
|
+
Enabled: true
|
158
|
+
Max: 350
|
159
|
+
|
160
|
+
Metrics/BlockNesting:
|
161
|
+
Enabled: true
|
162
|
+
Max: 5
|
163
|
+
|
164
|
+
Metrics/ClassLength:
|
165
|
+
Enabled: true
|
166
|
+
Max: 450
|
167
|
+
|
168
|
+
Metrics/CyclomaticComplexity:
|
65
169
|
Enabled: false
|
66
170
|
|
67
|
-
Layout/
|
68
|
-
Enabled: false
|
69
|
-
|
70
|
-
Metrics/AbcSize:
|
71
|
-
Max: 50
|
171
|
+
Layout/LineLength:
|
172
|
+
Enabled: false
|
173
|
+
Max: 90
|
72
174
|
|
73
|
-
# Avoid methods longer than 50 lines of code
|
74
175
|
Metrics/MethodLength:
|
75
|
-
|
76
|
-
|
176
|
+
Enabled: true
|
177
|
+
Max: 60
|
77
178
|
|
78
|
-
# Avoid modules longer than 200 lines of code
|
79
179
|
Metrics/ModuleLength:
|
80
|
-
|
81
|
-
Max:
|
180
|
+
Enabled: true
|
181
|
+
Max: 500
|
82
182
|
|
83
183
|
Metrics/PerceivedComplexity:
|
184
|
+
Enabled: false
|
185
|
+
|
186
|
+
Naming/ConstantName:
|
187
|
+
Enabled: false
|
188
|
+
|
189
|
+
Naming/ClassAndModuleCamelCase:
|
190
|
+
Enabled: false
|
191
|
+
|
192
|
+
Naming/BlockParameterName:
|
84
193
|
Enabled: true
|
85
|
-
|
86
|
-
|
87
|
-
# Disable this because it produces false negatives
|
88
|
-
Naming/HeredocDelimiterNaming:
|
194
|
+
|
195
|
+
Naming/MethodParameterName:
|
89
196
|
Enabled: false
|
90
197
|
|
91
198
|
Naming/MethodName:
|
92
199
|
Enabled: false
|
93
200
|
|
94
|
-
Naming/
|
201
|
+
Naming/VariableName:
|
202
|
+
Enabled: false
|
203
|
+
|
204
|
+
Style/AccessorGrouping:
|
205
|
+
Enabled: false
|
206
|
+
|
207
|
+
Style/Alias:
|
208
|
+
Enabled: true
|
209
|
+
|
210
|
+
Style/ArgumentsForwarding:
|
211
|
+
Enabled: true
|
212
|
+
|
213
|
+
Style/AsciiComments:
|
214
|
+
Enabled: false
|
215
|
+
|
216
|
+
Style/BarePercentLiterals:
|
217
|
+
Enabled: false
|
218
|
+
|
219
|
+
Style/BlockComments:
|
95
220
|
Enabled: false
|
96
221
|
|
97
|
-
|
222
|
+
Style/CharacterLiteral:
|
98
223
|
Enabled: false
|
99
224
|
|
100
|
-
|
225
|
+
Style/ClassCheck:
|
101
226
|
Enabled: false
|
102
227
|
|
103
|
-
|
228
|
+
Style/ClassVars:
|
104
229
|
Enabled: false
|
105
230
|
|
106
|
-
|
231
|
+
Style/CollectionCompact:
|
232
|
+
Enabled: true
|
233
|
+
|
234
|
+
Style/ColonMethodCall:
|
235
|
+
Enabled: false
|
236
|
+
|
237
|
+
Style/CommentAnnotation:
|
107
238
|
Enabled: false
|
108
239
|
|
109
240
|
Style/CommentedKeyword:
|
110
241
|
Enabled: false
|
111
|
-
|
112
|
-
Style/ConditionalAssignment:
|
242
|
+
|
243
|
+
Style/ConditionalAssignment:
|
244
|
+
Enabled: false
|
245
|
+
|
246
|
+
Style/DefWithParentheses:
|
247
|
+
Enabled: true
|
248
|
+
|
249
|
+
Style/Documentation:
|
250
|
+
Enabled: false
|
251
|
+
|
252
|
+
Style/DocumentDynamicEvalDefinition:
|
253
|
+
Enabled: true
|
254
|
+
|
255
|
+
Style/ExpandPathArguments:
|
256
|
+
Enabled: false
|
257
|
+
|
258
|
+
Style/ExponentialNotation:
|
259
|
+
Enabled: true
|
260
|
+
|
261
|
+
Style/GuardClause:
|
262
|
+
Enabled: false
|
263
|
+
|
264
|
+
Style/HashEachMethods:
|
265
|
+
Enabled: true
|
266
|
+
|
267
|
+
Style/HashExcept:
|
268
|
+
Enabled: true
|
269
|
+
|
270
|
+
Style/HashTransformKeys:
|
271
|
+
Enabled: true
|
272
|
+
|
273
|
+
Style/HashTransformValues:
|
274
|
+
Enabled: true
|
275
|
+
|
276
|
+
Style/IfUnlessModifier:
|
113
277
|
Enabled: false
|
114
|
-
|
115
|
-
Style/
|
278
|
+
|
279
|
+
Style/InverseMethods:
|
116
280
|
Enabled: false
|
117
|
-
|
281
|
+
|
118
282
|
Style/MissingRespondToMissing:
|
119
283
|
Enabled: false
|
120
284
|
|
121
|
-
|
285
|
+
Style/NegatedIfElseCondition:
|
286
|
+
Enabled: true
|
287
|
+
|
288
|
+
Style/Next:
|
289
|
+
Enabled: false
|
290
|
+
|
291
|
+
Style/NilLambda:
|
292
|
+
Enabled: true
|
293
|
+
|
294
|
+
Style/NumericLiterals:
|
295
|
+
Enabled: false
|
296
|
+
|
297
|
+
Style/RaiseArgs:
|
298
|
+
Enabled: true
|
299
|
+
|
300
|
+
Style/RedundantArgument:
|
301
|
+
Enabled: true
|
302
|
+
|
303
|
+
Style/RedundantReturn:
|
304
|
+
Enabled: false
|
305
|
+
|
306
|
+
Style/RedundantSelf:
|
307
|
+
Enabled: true
|
308
|
+
|
309
|
+
Style/RegexpLiteral:
|
310
|
+
Enabled: false
|
311
|
+
|
312
|
+
Style/PercentLiteralDelimiters:
|
313
|
+
Enabled: false
|
314
|
+
|
315
|
+
Style/StderrPuts:
|
122
316
|
Enabled: false
|
123
317
|
|
124
|
-
|
318
|
+
Style/StringLiterals:
|
319
|
+
Enabled: true
|
320
|
+
|
321
|
+
Style/SwapValues:
|
322
|
+
Enabled: true
|
323
|
+
|
324
|
+
Style/TernaryParentheses:
|
125
325
|
Enabled: false
|
126
326
|
|
127
|
-
|
128
|
-
Enabled: false
|
327
|
+
Style/UnlessElse:
|
328
|
+
Enabled: false
|
329
|
+
|
330
|
+
# Rubocop complains when it doesn't find an explicit setting for the following cops:
|
331
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
332
|
+
Enabled: true
|
333
|
+
|
334
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
335
|
+
Enabled: true
|
336
|
+
|
337
|
+
Lint/DeprecatedOpenSSLConstant:
|
338
|
+
Enabled: true
|
339
|
+
|
340
|
+
Lint/DuplicateElsifCondition:
|
341
|
+
Enabled: true
|
342
|
+
|
343
|
+
Lint/DuplicateRescueException:
|
344
|
+
Enabled: true
|
345
|
+
|
346
|
+
Lint/EmptyConditionalBody:
|
347
|
+
Enabled: true
|
348
|
+
|
349
|
+
Lint/FloatComparison:
|
350
|
+
Enabled: true
|
351
|
+
|
352
|
+
Lint/MissingSuper:
|
353
|
+
Enabled: true
|
354
|
+
|
355
|
+
Lint/MixedRegexpCaptureTypes:
|
356
|
+
Enabled: true
|
357
|
+
|
358
|
+
Lint/OutOfRangeRegexpRef:
|
359
|
+
Enabled: true
|
360
|
+
|
361
|
+
Lint/SelfAssignment:
|
362
|
+
Enabled: true
|
363
|
+
|
364
|
+
Lint/TopLevelReturnWithArgument:
|
365
|
+
Enabled: true
|
366
|
+
|
367
|
+
Lint/UnreachableLoop:
|
368
|
+
Enabled: true
|
369
|
+
|
370
|
+
Style/ArrayCoercion:
|
371
|
+
Enabled: true
|
372
|
+
|
373
|
+
Style/BisectedAttrAccessor:
|
374
|
+
Enabled: true
|
375
|
+
|
376
|
+
Style/CaseLikeIf:
|
377
|
+
Enabled: true
|
378
|
+
|
379
|
+
Style/EndlessMethod:
|
380
|
+
Enabled: true
|
381
|
+
|
382
|
+
Style/ExplicitBlockArgument:
|
383
|
+
Enabled: true
|
384
|
+
|
385
|
+
Style/GlobalStdStream:
|
386
|
+
Enabled: true
|
387
|
+
|
388
|
+
Style/HashAsLastArrayItem:
|
389
|
+
Enabled: true
|
390
|
+
|
391
|
+
Style/HashConversion:
|
392
|
+
Enabled: true
|
393
|
+
|
394
|
+
Style/HashLikeCase:
|
395
|
+
Enabled: true
|
396
|
+
|
397
|
+
Style/IfWithBooleanLiteralBranches:
|
398
|
+
Enabled: true
|
399
|
+
|
400
|
+
Style/OptionalBooleanParameter:
|
401
|
+
Enabled: true
|
402
|
+
|
403
|
+
Style/RedundantAssignment:
|
404
|
+
Enabled: true
|
405
|
+
|
406
|
+
Style/RedundantFetchBlock:
|
407
|
+
Enabled: true
|
408
|
+
|
409
|
+
Style/RedundantFileExtensionInRequire:
|
410
|
+
Enabled: true
|
411
|
+
|
412
|
+
Style/RedundantRegexpCharacterClass:
|
413
|
+
Enabled: true
|
414
|
+
|
415
|
+
Style/RedundantRegexpEscape:
|
416
|
+
Enabled: true
|
417
|
+
|
418
|
+
Style/SingleArgumentDig:
|
419
|
+
Enabled: true
|
420
|
+
|
421
|
+
Style/SlicingWithRange:
|
422
|
+
Enabled: true
|
423
|
+
|
424
|
+
Style/StringChars:
|
425
|
+
Enabled: true
|
426
|
+
|
427
|
+
Style/StringConcatenation:
|
428
|
+
Enabled: true
|