|
1 | 1 | # This configuration was generated by |
2 | 2 | # `rubocop --auto-gen-config` |
3 | | -# on 2020-11-16 09:56:54 -0500 using RuboCop version 0.81.0. |
| 3 | +# on 2023-03-02 20:56:34 UTC using RuboCop version 1.47.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: 1 |
10 | | -# Cop supports --auto-correct. |
11 | | -# Configuration parameters: EnforcedStyle. |
12 | | -# SupportedStyles: squiggly, active_support, powerpack, unindent |
| 10 | +# Configuration parameters: Severity, Include. |
| 11 | +# Include: **/*.gemspec |
| 12 | +Gemspec/RequiredRubyVersion: |
| 13 | + Exclude: |
| 14 | + - 'slack-ruby-bot-server.gemspec' |
| 15 | + |
| 16 | +# Offense count: 1 |
| 17 | +# This cop supports safe autocorrection (--autocorrect). |
13 | 18 | Layout/HeredocIndentation: |
14 | 19 | Exclude: |
15 | 20 | - 'lib/slack-ruby-bot-server/info.rb' |
16 | 21 |
|
17 | 22 | # Offense count: 1 |
| 23 | +# This cop supports safe autocorrection (--autocorrect). |
| 24 | +Layout/RescueEnsureAlignment: |
| 25 | + Exclude: |
| 26 | + - 'lib/slack-ruby-bot-server/models/team/methods.rb' |
| 27 | + |
| 28 | +# Offense count: 1 |
| 29 | +# This cop supports safe autocorrection (--autocorrect). |
18 | 30 | Lint/AmbiguousOperator: |
19 | 31 | Exclude: |
20 | 32 | - 'spec/slack-ruby-bot-server/service_spec.rb' |
21 | 33 |
|
22 | | -# Offense count: 2 |
23 | | -# Cop supports --auto-correct. |
24 | | -Lint/NonDeterministicRequireOrder: |
| 34 | +# Offense count: 1 |
| 35 | +# Configuration parameters: AllowedMethods. |
| 36 | +# AllowedMethods: enums |
| 37 | +Lint/ConstantDefinitionInBlock: |
25 | 38 | Exclude: |
26 | | - - 'spec/spec_helper.rb' |
| 39 | + - 'lib/slack-ruby-bot-server/models/team/methods.rb' |
27 | 40 |
|
28 | 41 | # Offense count: 1 |
29 | | -# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms. |
| 42 | +# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms. |
| 43 | +# CheckDefinitionPathHierarchyRoots: lib, spec, test, src |
30 | 44 | # AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS |
31 | 45 | Naming/FileName: |
32 | 46 | Exclude: |
33 | 47 | - 'lib/slack-ruby-bot-server.rb' |
34 | 48 |
|
35 | 49 | # Offense count: 1 |
36 | 50 | # Configuration parameters: ForbiddenDelimiters. |
37 | | -# ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$)) |
| 51 | +# ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$)) |
38 | 52 | Naming/HeredocDelimiterNaming: |
39 | 53 | Exclude: |
40 | 54 | - 'lib/slack-ruby-bot-server/info.rb' |
41 | 55 |
|
42 | 56 | # Offense count: 3 |
43 | 57 | # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames. |
44 | | -# AllowedNames: io, id, to, by, on, in, at, ip, db, os, pp |
| 58 | +# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to |
45 | 59 | Naming/MethodParameterName: |
46 | 60 | Exclude: |
47 | 61 | - 'lib/slack-ruby-bot-server/models/team/activerecord.rb' |
48 | 62 | - 'lib/slack-ruby-bot-server/models/team/mongoid.rb' |
49 | 63 | - 'lib/slack-ruby-bot-server/service.rb' |
50 | 64 |
|
| 65 | +# Offense count: 5 |
| 66 | +# This cop supports safe autocorrection (--autocorrect). |
| 67 | +# Configuration parameters: EnforcedStyle. |
| 68 | +# SupportedStyles: separated, grouped |
| 69 | +Style/AccessorGrouping: |
| 70 | + Exclude: |
| 71 | + - 'lib/slack-ruby-bot-server/config.rb' |
| 72 | + |
| 73 | +# Offense count: 3 |
| 74 | +# This cop supports unsafe autocorrection (--autocorrect-all). |
| 75 | +Style/GlobalStdStream: |
| 76 | + Exclude: |
| 77 | + - 'spec/database_adapters/activerecord/activerecord.rb' |
| 78 | + - 'tasks/db.rake' |
| 79 | + |
| 80 | +# Offense count: 18 |
| 81 | +# This cop supports safe autocorrection (--autocorrect). |
| 82 | +# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols. |
| 83 | +# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys |
| 84 | +# SupportedShorthandSyntax: always, never, either, consistent |
| 85 | +Style/HashSyntax: |
| 86 | + Exclude: |
| 87 | + - 'lib/slack-ruby-bot-server/api/endpoints/teams_endpoint.rb' |
| 88 | + - 'lib/slack-ruby-bot-server/models/team/methods.rb' |
| 89 | + |
| 90 | +# Offense count: 1 |
| 91 | +# This cop supports unsafe autocorrection (--autocorrect-all). |
| 92 | +Style/HashTransformKeys: |
| 93 | + Exclude: |
| 94 | + - 'lib/slack-ruby-bot-server/api/helpers/error_helpers.rb' |
| 95 | + |
| 96 | +# Offense count: 1 |
| 97 | +# This cop supports unsafe autocorrection (--autocorrect-all). |
| 98 | +Style/HashTransformValues: |
| 99 | + Exclude: |
| 100 | + - 'lib/slack-ruby-bot-server/api/helpers/error_helpers.rb' |
| 101 | + |
51 | 102 | # Offense count: 1 |
52 | | -# Cop supports --auto-correct. |
| 103 | +# This cop supports unsafe autocorrection (--autocorrect-all). |
53 | 104 | # Configuration parameters: EnforcedStyle, Autocorrect. |
54 | 105 | # SupportedStyles: module_function, extend_self, forbidden |
55 | 106 | Style/ModuleFunction: |
56 | 107 | Exclude: |
57 | 108 | - 'lib/slack-ruby-bot-server/config.rb' |
58 | 109 |
|
| 110 | +# Offense count: 2 |
| 111 | +# This cop supports safe autocorrection (--autocorrect). |
| 112 | +Style/MultilineWhenThen: |
| 113 | + Exclude: |
| 114 | + - 'Gemfile' |
| 115 | + |
59 | 116 | # Offense count: 1 |
60 | | -# Cop supports --auto-correct. |
61 | | -# Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods. |
| 117 | +# This cop supports unsafe autocorrection (--autocorrect-all). |
| 118 | +# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns. |
62 | 119 | # SupportedStyles: predicate, comparison |
63 | 120 | Style/NumericPredicate: |
64 | 121 | Exclude: |
65 | 122 | - 'spec/**/*' |
66 | 123 | - 'lib/slack-ruby-bot-server/service.rb' |
| 124 | + |
| 125 | +# Offense count: 1 |
| 126 | +# This cop supports safe autocorrection (--autocorrect). |
| 127 | +Style/RedundantAssignment: |
| 128 | + Exclude: |
| 129 | + - 'lib/slack-ruby-bot-server/api/helpers/sort_helpers.rb' |
| 130 | + |
| 131 | +# Offense count: 3 |
| 132 | +# This cop supports safe autocorrection (--autocorrect). |
| 133 | +Style/RedundantBegin: |
| 134 | + Exclude: |
| 135 | + - 'lib/slack-ruby-bot-server/models/team/activerecord.rb' |
| 136 | + - 'lib/slack-ruby-bot-server/models/team/mongoid.rb' |
| 137 | + - 'lib/slack-ruby-bot-server/service.rb' |
| 138 | + |
| 139 | +# Offense count: 2 |
| 140 | +# This cop supports safe autocorrection (--autocorrect). |
| 141 | +Style/RedundantFileExtensionInRequire: |
| 142 | + Exclude: |
| 143 | + - 'lib/slack-ruby-bot-server/config/database_adapters/activerecord.rb' |
| 144 | + - 'lib/slack-ruby-bot-server/config/database_adapters/mongoid.rb' |
| 145 | + |
| 146 | +# Offense count: 6 |
| 147 | +# This cop supports safe autocorrection (--autocorrect). |
| 148 | +Style/RedundantRegexpEscape: |
| 149 | + Exclude: |
| 150 | + - 'Rakefile' |
| 151 | + - 'lib/slack-ruby-bot-server/api/middleware.rb' |
| 152 | + - 'spec/support/api/endpoints/it_behaves_like_a_cursor_api.rb' |
| 153 | + |
| 154 | +# Offense count: 1 |
| 155 | +# This cop supports unsafe autocorrection (--autocorrect-all). |
| 156 | +# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength. |
| 157 | +# AllowedMethods: present?, blank?, presence, try, try! |
| 158 | +Style/SafeNavigation: |
| 159 | + Exclude: |
| 160 | + - 'lib/slack-ruby-bot-server/api/endpoints/teams_endpoint.rb' |
| 161 | + |
| 162 | +# Offense count: 1 |
| 163 | +# This cop supports unsafe autocorrection (--autocorrect-all). |
| 164 | +Style/SlicingWithRange: |
| 165 | + Exclude: |
| 166 | + - 'lib/slack-ruby-bot-server/api/helpers/sort_helpers.rb' |
| 167 | + |
| 168 | +# Offense count: 1 |
| 169 | +# This cop supports unsafe autocorrection (--autocorrect-all). |
| 170 | +# Configuration parameters: Mode. |
| 171 | +Style/StringConcatenation: |
| 172 | + Exclude: |
| 173 | + - 'lib/slack-ruby-bot-server/api/helpers/error_helpers.rb' |
0 commit comments