|
1 | 1 | # This configuration was generated by
|
2 | 2 | # `rubocop --auto-gen-config`
|
3 |
| -# on 2017-11-25 19:54:28 -0500 using RuboCop version 0.50.0. |
| 3 | +# on 2022-05-30 13:48:55 UTC using RuboCop version 1.30.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 | 9 | # Offense count: 3
|
10 |
| -# Cop supports --auto-correct. |
11 |
| -# Configuration parameters: EnforcedStyle, SupportedStyles. |
12 |
| -# SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent |
13 |
| -Layout/IndentHeredoc: |
| 10 | +# This cop supports safe autocorrection (--autocorrect). |
| 11 | +Layout/HeredocIndentation: |
14 | 12 | Exclude:
|
15 | 13 | - 'support/ruby_enc_to_mysql.rb'
|
16 | 14 | - 'tasks/compile.rake'
|
17 | 15 |
|
18 | 16 | # Offense count: 2
|
| 17 | +# Configuration parameters: AllowedMethods. |
| 18 | +# AllowedMethods: enums |
| 19 | +Lint/ConstantDefinitionInBlock: |
| 20 | + Exclude: |
| 21 | + - 'spec/mysql2/client_spec.rb' |
| 22 | + - 'tasks/rspec.rake' |
| 23 | + |
| 24 | +# Offense count: 1 |
| 25 | +Lint/MissingSuper: |
| 26 | + Exclude: |
| 27 | + - 'lib/mysql2/em.rb' |
| 28 | + |
| 29 | +# Offense count: 2 |
| 30 | +# Configuration parameters: IgnoredMethods, CountRepeatedAttributes. |
19 | 31 | Metrics/AbcSize:
|
20 |
| - Max: 90 |
| 32 | + Max: 94 |
21 | 33 |
|
22 |
| -# Offense count: 31 |
23 |
| -# Configuration parameters: CountComments, ExcludedMethods. |
| 34 | +# Offense count: 34 |
| 35 | +# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods. |
| 36 | +# IgnoredMethods: refine |
24 | 37 | Metrics/BlockLength:
|
25 |
| - Max: 850 |
| 38 | + Max: 592 |
26 | 39 |
|
27 | 40 | # Offense count: 1
|
28 | 41 | # Configuration parameters: CountBlocks.
|
29 | 42 | Metrics/BlockNesting:
|
30 | 43 | Max: 5
|
31 | 44 |
|
32 | 45 | # Offense count: 1
|
33 |
| -# Configuration parameters: CountComments. |
| 46 | +# Configuration parameters: CountComments, CountAsOne. |
34 | 47 | Metrics/ClassLength:
|
35 |
| - Max: 125 |
| 48 | + Max: 135 |
36 | 49 |
|
37 | 50 | # Offense count: 3
|
| 51 | +# Configuration parameters: IgnoredMethods. |
38 | 52 | Metrics/CyclomaticComplexity:
|
39 |
| - Max: 30 |
40 |
| - |
41 |
| -# Offense count: 313 |
42 |
| -# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. |
43 |
| -# URISchemes: http, https |
44 |
| -Metrics/LineLength: |
45 |
| - Max: 232 |
| 53 | + Max: 34 |
46 | 54 |
|
47 | 55 | # Offense count: 6
|
48 |
| -# Configuration parameters: CountComments. |
| 56 | +# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods. |
49 | 57 | Metrics/MethodLength:
|
50 | 58 | Max: 57
|
51 | 59 |
|
52 | 60 | # Offense count: 2
|
| 61 | +# Configuration parameters: IgnoredMethods. |
53 | 62 | Metrics/PerceivedComplexity:
|
54 |
| - Max: 27 |
| 63 | + Max: 32 |
55 | 64 |
|
56 |
| -# Offense count: 3 |
57 |
| -# Configuration parameters: Blacklist. |
58 |
| -# Blacklist: END, (?-mix:EO[A-Z]{1}) |
| 65 | +# Offense count: 2 |
| 66 | +# Configuration parameters: ForbiddenDelimiters. |
| 67 | +# ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$)) |
59 | 68 | Naming/HeredocDelimiterNaming:
|
60 | 69 | Exclude:
|
61 | 70 | - 'tasks/compile.rake'
|
62 | 71 |
|
63 |
| -# Offense count: 10 |
| 72 | +# Offense count: 1 |
| 73 | +# This cop supports unsafe autocorrection (--autocorrect-all). |
| 74 | +Style/CaseLikeIf: |
| 75 | + Exclude: |
| 76 | + - 'ext/mysql2/extconf.rb' |
| 77 | + |
| 78 | +# Offense count: 8 |
| 79 | +# Configuration parameters: AllowedConstants. |
64 | 80 | Style/Documentation:
|
65 | 81 | Exclude:
|
66 | 82 | - 'spec/**/*'
|
67 | 83 | - 'test/**/*'
|
68 | 84 | - 'benchmark/active_record.rb'
|
69 | 85 | - 'benchmark/allocations.rb'
|
70 |
| - - 'benchmark/query_with_mysql_casting.rb' |
71 | 86 | - 'lib/mysql2.rb'
|
72 | 87 | - 'lib/mysql2/client.rb'
|
73 | 88 | - 'lib/mysql2/em.rb'
|
74 | 89 | - 'lib/mysql2/error.rb'
|
75 | 90 | - 'lib/mysql2/result.rb'
|
76 | 91 | - 'lib/mysql2/statement.rb'
|
77 | 92 |
|
78 |
| -# Offense count: 14 |
| 93 | +# Offense count: 6 |
| 94 | +# This cop supports safe autocorrection (--autocorrect). |
| 95 | +Style/ExpandPathArguments: |
| 96 | + Exclude: |
| 97 | + - 'ext/mysql2/extconf.rb' |
| 98 | + - 'mysql2.gemspec' |
| 99 | + - 'spec/mysql2/client_spec.rb' |
| 100 | + - 'support/mysql_enc_to_ruby.rb' |
| 101 | + - 'tasks/compile.rake' |
| 102 | + |
| 103 | +# Offense count: 15 |
79 | 104 | # Configuration parameters: AllowedVariables.
|
80 | 105 | Style/GlobalVars:
|
81 | 106 | Exclude:
|
82 | 107 | - 'ext/mysql2/extconf.rb'
|
83 | 108 |
|
84 |
| -# Offense count: 17 |
85 |
| -# Cop supports --auto-correct. |
86 |
| -# Configuration parameters: Strict. |
| 109 | +# Offense count: 8 |
| 110 | +# This cop supports safe autocorrection (--autocorrect). |
| 111 | +Style/IfUnlessModifier: |
| 112 | + Exclude: |
| 113 | + - 'lib/mysql2.rb' |
| 114 | + - 'lib/mysql2/client.rb' |
| 115 | + - 'spec/mysql2/client_spec.rb' |
| 116 | + |
| 117 | +# Offense count: 1 |
| 118 | +# This cop supports safe autocorrection (--autocorrect). |
| 119 | +# Configuration parameters: AllowMethodComparison. |
| 120 | +Style/MultipleComparison: |
| 121 | + Exclude: |
| 122 | + - 'lib/mysql2/client.rb' |
| 123 | + |
| 124 | +# Offense count: 18 |
| 125 | +# This cop supports safe autocorrection (--autocorrect). |
| 126 | +# Configuration parameters: Strict, AllowedNumbers. |
87 | 127 | Style/NumericLiterals:
|
88 | 128 | MinDigits: 20
|
89 | 129 |
|
90 |
| -# Offense count: 726 |
91 |
| -# Cop supports --auto-correct. |
92 |
| -# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline. |
| 130 | +# Offense count: 14 |
| 131 | +# This cop supports unsafe autocorrection (--autocorrect-all). |
| 132 | +# Configuration parameters: Mode. |
| 133 | +Style/StringConcatenation: |
| 134 | + Exclude: |
| 135 | + - 'benchmark/active_record.rb' |
| 136 | + - 'benchmark/active_record_threaded.rb' |
| 137 | + - 'benchmark/allocations.rb' |
| 138 | + - 'benchmark/escape.rb' |
| 139 | + - 'benchmark/query_with_mysql_casting.rb' |
| 140 | + - 'benchmark/query_without_mysql_casting.rb' |
| 141 | + - 'benchmark/sequel.rb' |
| 142 | + - 'benchmark/setup_db.rb' |
| 143 | + - 'ext/mysql2/extconf.rb' |
| 144 | + - 'lib/mysql2/client.rb' |
| 145 | + - 'tasks/compile.rake' |
| 146 | + |
| 147 | +# Offense count: 782 |
| 148 | +# This cop supports safe autocorrection (--autocorrect). |
| 149 | +# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline. |
93 | 150 | # SupportedStyles: single_quotes, double_quotes
|
94 | 151 | Style/StringLiterals:
|
95 | 152 | Enabled: false
|
| 153 | + |
| 154 | +# Offense count: 1 |
| 155 | +# This cop supports safe autocorrection (--autocorrect). |
| 156 | +# Configuration parameters: WordRegex. |
| 157 | +# SupportedStyles: percent, brackets |
| 158 | +Style/WordArray: |
| 159 | + EnforcedStyle: percent |
| 160 | + MinSize: 4 |
| 161 | + |
| 162 | +# Offense count: 32 |
| 163 | +# This cop supports safe autocorrection (--autocorrect). |
| 164 | +# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns. |
| 165 | +# URISchemes: http, https |
| 166 | +Layout/LineLength: |
| 167 | + Max: 232 |
0 commit comments