|
1 | 1 | # This configuration was generated by
|
2 | 2 | # `rubocop --auto-gen-config`
|
3 |
| -# on 2015-09-06 13:16:09 -0400 using RuboCop version 0.34.0. |
| 3 | +# on 2017-11-25 19:54:28 -0500 using RuboCop version 0.50.0. |
4 | 4 | # The point is for the user to remove these configuration records
|
5 | 5 | # one by one as the offenses are removed from the code base.
|
6 | 6 | # Note that changes in the inspected code, or installation of new
|
7 | 7 | # versions of RuboCop, may require this file to be generated again.
|
8 | 8 |
|
| 9 | +# Offense count: 15 |
| 10 | +# Cop supports --auto-correct. |
| 11 | +Layout/EmptyLineAfterMagicComment: |
| 12 | + Exclude: |
| 13 | + - 'Rakefile' |
| 14 | + - 'benchmark/active_record.rb' |
| 15 | + - 'benchmark/active_record_threaded.rb' |
| 16 | + - 'benchmark/allocations.rb' |
| 17 | + - 'benchmark/escape.rb' |
| 18 | + - 'benchmark/query_with_mysql_casting.rb' |
| 19 | + - 'benchmark/query_without_mysql_casting.rb' |
| 20 | + - 'benchmark/sequel.rb' |
| 21 | + - 'benchmark/setup_db.rb' |
| 22 | + - 'ext/mysql2/extconf.rb' |
| 23 | + - 'lib/mysql2.rb' |
| 24 | + - 'spec/em/em_spec.rb' |
| 25 | + - 'spec/mysql2/client_spec.rb' |
| 26 | + - 'spec/mysql2/result_spec.rb' |
| 27 | + - 'spec/mysql2/statement_spec.rb' |
| 28 | + |
| 29 | +# Offense count: 3 |
| 30 | +# Cop supports --auto-correct. |
| 31 | +# Configuration parameters: EnforcedStyle, SupportedStyles. |
| 32 | +# SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent |
| 33 | +Layout/IndentHeredoc: |
| 34 | + Exclude: |
| 35 | + - 'support/ruby_enc_to_mysql.rb' |
| 36 | + - 'tasks/compile.rake' |
| 37 | + |
| 38 | +# Offense count: 2 |
| 39 | +# Cop supports --auto-correct. |
| 40 | +Layout/SpaceInsidePercentLiteralDelimiters: |
| 41 | + Exclude: |
| 42 | + - 'spec/mysql2/client_spec.rb' |
| 43 | + |
| 44 | +# Offense count: 2 |
| 45 | +Lint/AmbiguousBlockAssociation: |
| 46 | + Exclude: |
| 47 | + - 'spec/mysql2/client_spec.rb' |
| 48 | + |
| 49 | +# Offense count: 1 |
| 50 | +Lint/RescueWithoutErrorClass: |
| 51 | + Exclude: |
| 52 | + - 'lib/mysql2/em.rb' |
| 53 | + |
| 54 | +# Offense count: 2 |
| 55 | +# Cop supports --auto-correct. |
| 56 | +Lint/UnifiedInteger: |
| 57 | + Exclude: |
| 58 | + - 'spec/spec_helper.rb' |
| 59 | + |
9 | 60 | # Offense count: 2
|
10 | 61 | Metrics/AbcSize:
|
11 |
| - Max: 93 |
| 62 | + Max: 90 |
| 63 | + |
| 64 | +# Offense count: 31 |
| 65 | +# Configuration parameters: CountComments, ExcludedMethods. |
| 66 | +Metrics/BlockLength: |
| 67 | + Max: 825 |
12 | 68 |
|
13 | 69 | # Offense count: 1
|
| 70 | +# Configuration parameters: CountBlocks. |
14 | 71 | Metrics/BlockNesting:
|
15 | 72 | Max: 5
|
16 | 73 |
|
17 | 74 | # Offense count: 1
|
| 75 | +# Configuration parameters: CountComments. |
18 | 76 | Metrics/ClassLength:
|
19 | 77 | Max: 125
|
20 | 78 |
|
21 |
| -# Offense count: 2 |
| 79 | +# Offense count: 3 |
22 | 80 | Metrics/CyclomaticComplexity:
|
23 | 81 | Max: 30
|
24 | 82 |
|
25 |
| -# Offense count: 290 |
26 |
| -# Configuration parameters: AllowURI, URISchemes. |
| 83 | +# Offense count: 313 |
| 84 | +# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. |
| 85 | +# URISchemes: http, https |
27 | 86 | Metrics/LineLength:
|
28 | 87 | Max: 232
|
29 | 88 |
|
30 |
| -# Offense count: 5 |
| 89 | +# Offense count: 6 |
31 | 90 | # Configuration parameters: CountComments.
|
32 | 91 | Metrics/MethodLength:
|
33 |
| - Max: 60 |
| 92 | + Max: 57 |
34 | 93 |
|
35 |
| -# Offense count: 1 |
| 94 | +# Offense count: 2 |
36 | 95 | Metrics/PerceivedComplexity:
|
37 | 96 | Max: 27
|
38 | 97 |
|
39 |
| -# Offense count: 40 |
| 98 | +# Offense count: 1 |
| 99 | +# Configuration parameters: EnforcedStyle, SupportedStyles. |
| 100 | +# SupportedStyles: lowercase, uppercase |
| 101 | +Naming/HeredocDelimiterCase: |
| 102 | + Exclude: |
| 103 | + - 'support/ruby_enc_to_mysql.rb' |
| 104 | + |
| 105 | +# Offense count: 3 |
| 106 | +# Configuration parameters: Blacklist. |
| 107 | +# Blacklist: END, (?-mix:EO[A-Z]{1}) |
| 108 | +Naming/HeredocDelimiterNaming: |
| 109 | + Exclude: |
| 110 | + - 'tasks/compile.rake' |
| 111 | + |
| 112 | +# Offense count: 2 |
| 113 | +# Cop supports --auto-correct. |
| 114 | +# Configuration parameters: AutoCorrect. |
| 115 | +Performance/HashEachMethods: |
| 116 | + Exclude: |
| 117 | + - 'benchmark/active_record.rb' |
| 118 | + - 'benchmark/allocations.rb' |
| 119 | + |
| 120 | +# Offense count: 2 |
| 121 | +# Cop supports --auto-correct. |
| 122 | +# Configuration parameters: MaxKeyValuePairs. |
| 123 | +Performance/RedundantMerge: |
| 124 | + Exclude: |
| 125 | + - 'spec/mysql2/client_spec.rb' |
| 126 | + - 'spec/mysql2/statement_spec.rb' |
| 127 | + |
| 128 | +# Offense count: 3 |
| 129 | +# Cop supports --auto-correct. |
| 130 | +# Configuration parameters: AutoCorrect. |
| 131 | +Performance/TimesMap: |
| 132 | + Exclude: |
| 133 | + - 'benchmark/active_record_threaded.rb' |
| 134 | + - 'examples/threaded.rb' |
| 135 | + - 'spec/mysql2/client_spec.rb' |
| 136 | + |
| 137 | +# Offense count: 2 |
| 138 | +# Cop supports --auto-correct. |
| 139 | +# Configuration parameters: EnforcedStyle, SupportedStyles. |
| 140 | +# SupportedStyles: prefer_alias, prefer_alias_method |
| 141 | +Style/Alias: |
| 142 | + Exclude: |
| 143 | + - 'lib/mysql2/error.rb' |
| 144 | + |
| 145 | +# Offense count: 48 |
40 | 146 | # Cop supports --auto-correct.
|
41 | 147 | # Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
|
| 148 | +# SupportedStyles: line_count_based, semantic, braces_for_chaining |
| 149 | +# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object |
| 150 | +# FunctionalMethods: let, let!, subject, watch |
| 151 | +# IgnoredMethods: lambda, proc, it |
42 | 152 | Style/BlockDelimiters:
|
43 |
| - Enabled: false |
| 153 | + Exclude: |
| 154 | + - 'spec/em/em_spec.rb' |
| 155 | + - 'spec/mysql2/client_spec.rb' |
| 156 | + - 'spec/mysql2/result_spec.rb' |
| 157 | + - 'spec/mysql2/statement_spec.rb' |
44 | 158 |
|
45 |
| -# Offense count: 12 |
| 159 | +# Offense count: 1 |
| 160 | +# Cop supports --auto-correct. |
| 161 | +# Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly, IncludeTernaryExpressions. |
| 162 | +# SupportedStyles: assign_to_condition, assign_inside_condition |
| 163 | +Style/ConditionalAssignment: |
| 164 | + Exclude: |
| 165 | + - 'support/ruby_enc_to_mysql.rb' |
| 166 | + |
| 167 | +# Offense count: 10 |
46 | 168 | Style/Documentation:
|
47 | 169 | Exclude:
|
| 170 | + - 'spec/**/*' |
| 171 | + - 'test/**/*' |
48 | 172 | - 'benchmark/active_record.rb'
|
49 | 173 | - 'benchmark/allocations.rb'
|
50 | 174 | - 'benchmark/query_with_mysql_casting.rb'
|
51 | 175 | - 'lib/mysql2.rb'
|
52 | 176 | - 'lib/mysql2/client.rb'
|
53 | 177 | - 'lib/mysql2/em.rb'
|
54 | 178 | - 'lib/mysql2/error.rb'
|
55 |
| - - 'lib/mysql2/field.rb' |
56 | 179 | - 'lib/mysql2/result.rb'
|
57 | 180 | - 'lib/mysql2/statement.rb'
|
58 |
| - - 'lib/mysql2/version.rb' |
59 | 181 |
|
60 |
| -# Offense count: 9 |
| 182 | +# Offense count: 21 |
| 183 | +# Cop supports --auto-correct. |
| 184 | +# Configuration parameters: EnforcedStyle, SupportedStyles, AutoCorrectEncodingComment. |
| 185 | +# SupportedStyles: when_needed, always, never |
| 186 | +Style/Encoding: |
| 187 | + Enabled: false |
| 188 | + |
| 189 | +# Offense count: 14 |
61 | 190 | # Configuration parameters: AllowedVariables.
|
62 | 191 | Style/GlobalVars:
|
63 | 192 | Exclude:
|
64 | 193 | - 'ext/mysql2/extconf.rb'
|
65 | 194 |
|
66 |
| -# Offense count: 14 |
| 195 | +# Offense count: 1 |
| 196 | +# Configuration parameters: MinBodyLength. |
| 197 | +Style/GuardClause: |
| 198 | + Exclude: |
| 199 | + - 'spec/mysql2/client_spec.rb' |
| 200 | + |
| 201 | +# Offense count: 175 |
67 | 202 | # Cop supports --auto-correct.
|
| 203 | +# Configuration parameters: SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols. |
| 204 | +# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys |
| 205 | +Style/HashSyntax: |
| 206 | + EnforcedStyle: hash_rockets |
| 207 | + |
| 208 | +# Offense count: 1 |
| 209 | +Style/IfInsideElse: |
| 210 | + Exclude: |
| 211 | + - 'tasks/compile.rake' |
| 212 | + |
| 213 | +# Offense count: 4 |
| 214 | +# Cop supports --auto-correct. |
| 215 | +Style/MutableConstant: |
| 216 | + Exclude: |
| 217 | + - 'ext/mysql2/extconf.rb' |
| 218 | + - 'lib/mysql2/version.rb' |
| 219 | + - 'tasks/rspec.rake' |
| 220 | + - 'tasks/vendor_mysql.rake' |
| 221 | + |
| 222 | +# Offense count: 17 |
| 223 | +# Cop supports --auto-correct. |
| 224 | +# Configuration parameters: Strict. |
68 | 225 | Style/NumericLiterals:
|
69 | 226 | MinDigits: 20
|
70 | 227 |
|
71 |
| -# Offense count: 680 |
| 228 | +# Offense count: 2 |
| 229 | +# Cop supports --auto-correct. |
| 230 | +# Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles. |
| 231 | +# SupportedStyles: predicate, comparison |
| 232 | +Style/NumericPredicate: |
| 233 | + Exclude: |
| 234 | + - 'spec/**/*' |
| 235 | + - 'benchmark/setup_db.rb' |
| 236 | + - 'lib/mysql2.rb' |
| 237 | + |
| 238 | +# Offense count: 15 |
| 239 | +# Cop supports --auto-correct. |
| 240 | +# Configuration parameters: PreferredDelimiters. |
| 241 | +Style/PercentLiteralDelimiters: |
| 242 | + Exclude: |
| 243 | + - 'benchmark/active_record.rb' |
| 244 | + - 'benchmark/active_record_threaded.rb' |
| 245 | + - 'benchmark/setup_db.rb' |
| 246 | + - 'ext/mysql2/extconf.rb' |
| 247 | + - 'spec/mysql2/client_spec.rb' |
| 248 | + - 'spec/mysql2/result_spec.rb' |
| 249 | + - 'spec/mysql2/statement_spec.rb' |
| 250 | + - 'tasks/rspec.rake' |
| 251 | + |
| 252 | +# Offense count: 2 |
72 | 253 | # Cop supports --auto-correct.
|
73 | 254 | # Configuration parameters: EnforcedStyle, SupportedStyles.
|
| 255 | +# SupportedStyles: only_raise, only_fail, semantic |
| 256 | +Style/SignalException: |
| 257 | + Exclude: |
| 258 | + - 'lib/mysql2/client.rb' |
| 259 | + - 'spec/em/em_spec.rb' |
| 260 | + |
| 261 | +# Offense count: 726 |
| 262 | +# Cop supports --auto-correct. |
| 263 | +# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline. |
| 264 | +# SupportedStyles: single_quotes, double_quotes |
74 | 265 | Style/StringLiterals:
|
75 | 266 | Enabled: false
|
| 267 | + |
| 268 | +# Offense count: 1 |
| 269 | +# Cop supports --auto-correct. |
| 270 | +# Configuration parameters: EnforcedStyle, SupportedStyles. |
| 271 | +# SupportedStyles: all_comparison_operators, equality_operators_only |
| 272 | +Style/YodaCondition: |
| 273 | + Exclude: |
| 274 | + - 'lib/mysql2.rb' |
0 commit comments