|
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: 91 |
| 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: 860 |
| 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 | 48 | Max: 135 |
36 | 49 |
|
37 | 50 | # Offense count: 3 |
| 51 | +# Configuration parameters: IgnoredMethods. |
38 | 52 | Metrics/CyclomaticComplexity: |
39 | | - Max: 32 |
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: 29 |
| 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 | | - - 'lib/mysql2/result.rb' |
76 | 90 | - 'lib/mysql2/statement.rb' |
77 | 91 |
|
78 | | -# Offense count: 14 |
| 92 | +# Offense count: 6 |
| 93 | +# This cop supports safe autocorrection (--autocorrect). |
| 94 | +Style/ExpandPathArguments: |
| 95 | + Exclude: |
| 96 | + - 'ext/mysql2/extconf.rb' |
| 97 | + - 'mysql2.gemspec' |
| 98 | + - 'spec/mysql2/client_spec.rb' |
| 99 | + - 'support/mysql_enc_to_ruby.rb' |
| 100 | + - 'tasks/compile.rake' |
| 101 | + |
| 102 | +# Offense count: 15 |
79 | 103 | # Configuration parameters: AllowedVariables. |
80 | 104 | Style/GlobalVars: |
81 | 105 | Exclude: |
82 | 106 | - 'ext/mysql2/extconf.rb' |
83 | 107 |
|
84 | | -# Offense count: 17 |
85 | | -# Cop supports --auto-correct. |
86 | | -# Configuration parameters: Strict. |
| 108 | +# Offense count: 8 |
| 109 | +# This cop supports safe autocorrection (--autocorrect). |
| 110 | +Style/IfUnlessModifier: |
| 111 | + Exclude: |
| 112 | + - 'lib/mysql2.rb' |
| 113 | + - 'lib/mysql2/client.rb' |
| 114 | + - 'spec/mysql2/client_spec.rb' |
| 115 | + |
| 116 | +# Offense count: 1 |
| 117 | +# This cop supports safe autocorrection (--autocorrect). |
| 118 | +# Configuration parameters: AllowMethodComparison. |
| 119 | +Style/MultipleComparison: |
| 120 | + Exclude: |
| 121 | + - 'lib/mysql2/client.rb' |
| 122 | + |
| 123 | +# Offense count: 18 |
| 124 | +# This cop supports safe autocorrection (--autocorrect). |
| 125 | +# Configuration parameters: Strict, AllowedNumbers. |
87 | 126 | Style/NumericLiterals: |
88 | 127 | MinDigits: 20 |
89 | 128 |
|
90 | | -# Offense count: 726 |
91 | | -# Cop supports --auto-correct. |
92 | | -# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline. |
| 129 | +# Offense count: 14 |
| 130 | +# This cop supports unsafe autocorrection (--autocorrect-all). |
| 131 | +# Configuration parameters: Mode. |
| 132 | +Style/StringConcatenation: |
| 133 | + Exclude: |
| 134 | + - 'benchmark/active_record.rb' |
| 135 | + - 'benchmark/active_record_threaded.rb' |
| 136 | + - 'benchmark/allocations.rb' |
| 137 | + - 'benchmark/escape.rb' |
| 138 | + - 'benchmark/query_with_mysql_casting.rb' |
| 139 | + - 'benchmark/query_without_mysql_casting.rb' |
| 140 | + - 'benchmark/sequel.rb' |
| 141 | + - 'benchmark/setup_db.rb' |
| 142 | + - 'ext/mysql2/extconf.rb' |
| 143 | + - 'lib/mysql2/client.rb' |
| 144 | + - 'tasks/compile.rake' |
| 145 | + |
| 146 | +# Offense count: 782 |
| 147 | +# This cop supports safe autocorrection (--autocorrect). |
| 148 | +# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline. |
93 | 149 | # SupportedStyles: single_quotes, double_quotes |
94 | 150 | Style/StringLiterals: |
95 | 151 | Enabled: false |
| 152 | + |
| 153 | +# Offense count: 1 |
| 154 | +# This cop supports safe autocorrection (--autocorrect). |
| 155 | +# Configuration parameters: WordRegex. |
| 156 | +# SupportedStyles: percent, brackets |
| 157 | +Style/WordArray: |
| 158 | + EnforcedStyle: percent |
| 159 | + MinSize: 4 |
| 160 | + |
| 161 | +# Offense count: 32 |
| 162 | +# This cop supports safe autocorrection (--autocorrect). |
| 163 | +# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns. |
| 164 | +# URISchemes: http, https |
| 165 | +Layout/LineLength: |
| 166 | + Max: 232 |
0 commit comments