|
| 1 | +# This configuration was generated by |
| 2 | +# `rubocop --auto-gen-config` |
| 3 | +# on 2023-12-24 08:07:04 UTC using RuboCop version 1.59.0. |
| 4 | +# The point is for the user to remove these configuration records |
| 5 | +# one by one as the offenses are removed from the code base. |
| 6 | +# Note that changes in the inspected code, or installation of new |
| 7 | +# versions of RuboCop, may require this file to be generated again. |
| 8 | + |
| 9 | +# Offense count: 3 |
| 10 | +# This cop supports safe autocorrection (--autocorrect). |
| 11 | +# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include. |
| 12 | +# Include: **/*.gemfile, **/Gemfile, **/gems.rb |
| 13 | +Bundler/OrderedGems: |
| 14 | + Exclude: |
| 15 | + - 'Gemfile' |
| 16 | + |
| 17 | +# Offense count: 25 |
| 18 | +# This cop supports safe autocorrection (--autocorrect). |
| 19 | +# Configuration parameters: EnforcedStyle, IndentationWidth. |
| 20 | +# SupportedStyles: with_first_argument, with_fixed_indentation |
| 21 | +Layout/ArgumentAlignment: |
| 22 | + Exclude: |
| 23 | + - 'app/api/validators/gte_date_validator.rb' |
| 24 | + - 'app/api/web/discussions_api.rb' |
| 25 | + - 'app/api/web/feedbacks_api.rb' |
| 26 | + - 'app/api/web/posts_api.rb' |
| 27 | + - 'app/api/web/sessions_api.rb' |
| 28 | + - 'app/api/web/users_api.rb' |
| 29 | + - 'app/models/user.rb' |
| 30 | + - 'config/environments/production.rb' |
| 31 | + |
| 32 | +# Offense count: 1 |
| 33 | +# This cop supports safe autocorrection (--autocorrect). |
| 34 | +# Configuration parameters: EnforcedStyle, IndentationWidth. |
| 35 | +# SupportedStyles: with_first_element, with_fixed_indentation |
| 36 | +Layout/ArrayAlignment: |
| 37 | + Exclude: |
| 38 | + - 'config/initializers/friendly_id.rb' |
| 39 | + |
| 40 | +# Offense count: 1 |
| 41 | +# This cop supports safe autocorrection (--autocorrect). |
| 42 | +# Configuration parameters: EnforcedStyleAlignWith. |
| 43 | +# SupportedStylesAlignWith: either, start_of_block, start_of_line |
| 44 | +Layout/BlockAlignment: |
| 45 | + Exclude: |
| 46 | + - 'spec/api/web/discussions_api_spec.rb' |
| 47 | + |
| 48 | +# Offense count: 8 |
| 49 | +# This cop supports safe autocorrection (--autocorrect). |
| 50 | +Layout/EmptyLineAfterGuardClause: |
| 51 | + Exclude: |
| 52 | + - 'app/api/web/feedbacks_api.rb' |
| 53 | + - 'app/api/web/posts_api.rb' |
| 54 | + - 'bin/bundle' |
| 55 | + |
| 56 | +# Offense count: 1 |
| 57 | +# This cop supports safe autocorrection (--autocorrect). |
| 58 | +Layout/EmptyLines: |
| 59 | + Exclude: |
| 60 | + - 'db/migrate/20231216133434_devise_create_users.rb' |
| 61 | + |
| 62 | +# Offense count: 5 |
| 63 | +# This cop supports safe autocorrection (--autocorrect). |
| 64 | +# Configuration parameters: EnforcedStyle. |
| 65 | +# SupportedStyles: empty_lines, no_empty_lines |
| 66 | +Layout/EmptyLinesAroundBlockBody: |
| 67 | + Exclude: |
| 68 | + - 'app/api/web/discussions_api.rb' |
| 69 | + - 'app/api/web/feedbacks_api.rb' |
| 70 | + - 'app/api/web/posts_api.rb' |
| 71 | + - 'app/api/web/users_api.rb' |
| 72 | + - 'spec/factories/users_factory.rb' |
| 73 | + |
| 74 | +# Offense count: 10 |
| 75 | +# This cop supports safe autocorrection (--autocorrect). |
| 76 | +# Configuration parameters: EnforcedStyle. |
| 77 | +# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only |
| 78 | +Layout/EmptyLinesAroundClassBody: |
| 79 | + Exclude: |
| 80 | + - 'app/api/json_error_formatter.rb' |
| 81 | + - 'app/api/web/discussions_api.rb' |
| 82 | + - 'app/api/web/feedbacks_api.rb' |
| 83 | + - 'app/api/web/posts_api.rb' |
| 84 | + - 'app/api/web/users_api.rb' |
| 85 | + - 'app/controllers/comments_controller.rb' |
| 86 | + - 'app/controllers/discussions_controller.rb' |
| 87 | + - 'app/controllers/docs_controller.rb' |
| 88 | + - 'app/models/comment.rb' |
| 89 | + - 'app/models/discussion.rb' |
| 90 | + |
| 91 | +# Offense count: 1 |
| 92 | +# This cop supports safe autocorrection (--autocorrect). |
| 93 | +# Configuration parameters: EnforcedStyle. |
| 94 | +# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines |
| 95 | +Layout/EmptyLinesAroundModuleBody: |
| 96 | + Exclude: |
| 97 | + - 'app/api/helpers/authentication_helper.rb' |
| 98 | + |
| 99 | +# Offense count: 6 |
| 100 | +# This cop supports safe autocorrection (--autocorrect). |
| 101 | +# Configuration parameters: IndentationWidth. |
| 102 | +# SupportedStyles: special_inside_parentheses, consistent, align_braces |
| 103 | +Layout/FirstHashElementIndentation: |
| 104 | + EnforcedStyle: consistent |
| 105 | + |
| 106 | +# Offense count: 2 |
| 107 | +# This cop supports safe autocorrection (--autocorrect). |
| 108 | +# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle. |
| 109 | +# SupportedHashRocketStyles: key, separator, table |
| 110 | +# SupportedColonStyles: key, separator, table |
| 111 | +# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit |
| 112 | +Layout/HashAlignment: |
| 113 | + Exclude: |
| 114 | + - 'app/api/validators/gte_date_validator.rb' |
| 115 | + |
| 116 | +# Offense count: 1 |
| 117 | +# This cop supports safe autocorrection (--autocorrect). |
| 118 | +# Configuration parameters: Width, AllowedPatterns. |
| 119 | +Layout/IndentationWidth: |
| 120 | + Exclude: |
| 121 | + - 'spec/api/web/discussions_api_spec.rb' |
| 122 | + |
| 123 | +# Offense count: 2 |
| 124 | +# This cop supports safe autocorrection (--autocorrect). |
| 125 | +# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets. |
| 126 | +# SupportedStyles: space, no_space, compact |
| 127 | +# SupportedStylesForEmptyBrackets: space, no_space |
| 128 | +Layout/SpaceInsideArrayLiteralBrackets: |
| 129 | + Exclude: |
| 130 | + - 'config/environments/production.rb' |
| 131 | + |
| 132 | +# Offense count: 4 |
| 133 | +# This cop supports safe autocorrection (--autocorrect). |
| 134 | +# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces. |
| 135 | +# SupportedStyles: space, no_space, compact |
| 136 | +# SupportedStylesForEmptyBraces: space, no_space |
| 137 | +Layout/SpaceInsideHashLiteralBraces: |
| 138 | + Exclude: |
| 139 | + - 'db/migrate/20231220193559_create_friendly_id_slugs.rb' |
| 140 | + |
| 141 | +# Offense count: 4 |
| 142 | +# This cop supports safe autocorrection (--autocorrect). |
| 143 | +Layout/SpaceInsidePercentLiteralDelimiters: |
| 144 | + Exclude: |
| 145 | + - 'Gemfile' |
| 146 | + |
| 147 | +# Offense count: 1 |
| 148 | +# This cop supports safe autocorrection (--autocorrect). |
| 149 | +# Configuration parameters: AllowInHeredoc. |
| 150 | +Layout/TrailingWhitespace: |
| 151 | + Exclude: |
| 152 | + - 'spec/factories/allowlisted_jwts.rb' |
| 153 | + |
| 154 | +# Offense count: 1 |
| 155 | +Lint/IneffectiveAccessModifier: |
| 156 | + Exclude: |
| 157 | + - 'app/models/vote.rb' |
| 158 | + |
| 159 | +# Offense count: 1 |
| 160 | +# This cop supports safe autocorrection (--autocorrect). |
| 161 | +# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods. |
| 162 | +Lint/UselessAccessModifier: |
| 163 | + Exclude: |
| 164 | + - 'app/models/vote.rb' |
| 165 | + |
| 166 | +# Offense count: 1 |
| 167 | +# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes. |
| 168 | +Metrics/AbcSize: |
| 169 | + Max: 35 |
| 170 | + |
| 171 | +# Offense count: 23 |
| 172 | +# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. |
| 173 | +# AllowedMethods: refine |
| 174 | +Metrics/BlockLength: |
| 175 | + Max: 302 |
| 176 | + |
| 177 | +# Offense count: 2 |
| 178 | +# Configuration parameters: CountComments, CountAsOne. |
| 179 | +Metrics/ClassLength: |
| 180 | + Max: 332 |
| 181 | + |
| 182 | +# Offense count: 1 |
| 183 | +# Configuration parameters: AllowedMethods, AllowedPatterns. |
| 184 | +Metrics/CyclomaticComplexity: |
| 185 | + Max: 9 |
| 186 | + |
| 187 | +# Offense count: 5 |
| 188 | +# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. |
| 189 | +Metrics/MethodLength: |
| 190 | + Max: 39 |
| 191 | + |
| 192 | +# Offense count: 1 |
| 193 | +# Configuration parameters: AllowedMethods, AllowedPatterns. |
| 194 | +Metrics/PerceivedComplexity: |
| 195 | + Max: 9 |
| 196 | + |
| 197 | +# Offense count: 1 |
| 198 | +# This cop supports safe autocorrection (--autocorrect). |
| 199 | +Style/BlockComments: |
| 200 | + Exclude: |
| 201 | + - 'spec/spec_helper.rb' |
| 202 | + |
| 203 | +# Offense count: 12 |
| 204 | +# This cop supports unsafe autocorrection (--autocorrect-all). |
| 205 | +# Configuration parameters: EnforcedStyle. |
| 206 | +# SupportedStyles: nested, compact |
| 207 | +Style/ClassAndModuleChildren: |
| 208 | + Exclude: |
| 209 | + - 'app/api/helpers/authentication_helper.rb' |
| 210 | + - 'app/api/validators/gte_date_validator.rb' |
| 211 | + - 'app/api/validators/length_validator.rb' |
| 212 | + - 'app/api/validators/numeric_validator.rb' |
| 213 | + - 'app/api/web/discussions_api.rb' |
| 214 | + - 'app/api/web/feedbacks_api.rb' |
| 215 | + - 'app/api/web/posts_api.rb' |
| 216 | + - 'app/api/web/registrations_api.rb' |
| 217 | + - 'app/api/web/sessions_api.rb' |
| 218 | + - 'app/api/web/users_api.rb' |
| 219 | + - 'test/channels/application_cable/connection_test.rb' |
| 220 | + - 'test/test_helper.rb' |
| 221 | + |
| 222 | +# Offense count: 4 |
| 223 | +# This cop supports safe autocorrection (--autocorrect). |
| 224 | +# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions. |
| 225 | +# SupportedStyles: assign_to_condition, assign_inside_condition |
| 226 | +Style/ConditionalAssignment: |
| 227 | + Exclude: |
| 228 | + - 'app/api/web/discussions_api.rb' |
| 229 | + - 'app/api/web/posts_api.rb' |
| 230 | + - 'app/models/vote.rb' |
| 231 | + |
| 232 | +# Offense count: 47 |
| 233 | +# Configuration parameters: AllowedConstants. |
| 234 | +Style/Documentation: |
| 235 | + Enabled: false |
| 236 | + |
| 237 | +# Offense count: 1 |
| 238 | +# This cop supports safe autocorrection (--autocorrect). |
| 239 | +# Configuration parameters: EnforcedStyle. |
| 240 | +# SupportedStyles: compact, expanded |
| 241 | +Style/EmptyMethod: |
| 242 | + Exclude: |
| 243 | + - 'app/controllers/docs_controller.rb' |
| 244 | + |
| 245 | +# Offense count: 107 |
| 246 | +# This cop supports unsafe autocorrection (--autocorrect-all). |
| 247 | +# Configuration parameters: EnforcedStyle. |
| 248 | +# SupportedStyles: always, always_true, never |
| 249 | +Style/FrozenStringLiteralComment: |
| 250 | + Enabled: false |
| 251 | + |
| 252 | +# Offense count: 1 |
| 253 | +# This cop supports unsafe autocorrection (--autocorrect-all). |
| 254 | +Style/GlobalStdStream: |
| 255 | + Exclude: |
| 256 | + - 'config/environments/production.rb' |
| 257 | + |
| 258 | +# Offense count: 2 |
| 259 | +# This cop supports safe autocorrection (--autocorrect). |
| 260 | +# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals. |
| 261 | +Style/GuardClause: |
| 262 | + Exclude: |
| 263 | + - 'app/api/web/posts_api.rb' |
| 264 | + |
| 265 | +# Offense count: 78 |
| 266 | +# This cop supports safe autocorrection (--autocorrect). |
| 267 | +# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols. |
| 268 | +# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys |
| 269 | +# SupportedShorthandSyntax: always, never, either, consistent |
| 270 | +Style/HashSyntax: |
| 271 | + Exclude: |
| 272 | + - 'app/api/web/feedbacks_api.rb' |
| 273 | + - 'app/api/web/posts_api.rb' |
| 274 | + - 'app/api/web/registrations_api.rb' |
| 275 | + - 'app/api/web/sessions_api.rb' |
| 276 | + - 'app/models/follow.rb' |
| 277 | + - 'app/services/user_registration_with_email_service.rb' |
| 278 | + - 'db/seeds.rb' |
| 279 | + - 'spec/api/web/discussions_api_spec.rb' |
| 280 | + - 'spec/api/web/feedbacks_api_spec.rb' |
| 281 | + - 'spec/api/web/posts_api_spec.rb' |
| 282 | + - 'spec/api/web/users_api_spec.rb' |
| 283 | + - 'spec/models/comments_spec.rb' |
| 284 | + - 'spec/models/discussions_spec.rb' |
| 285 | + - 'spec/models/feedbacks_spec.rb' |
| 286 | + - 'spec/models/post_spec.rb' |
| 287 | + |
| 288 | +# Offense count: 8 |
| 289 | +# This cop supports safe autocorrection (--autocorrect). |
| 290 | +Style/IfUnlessModifier: |
| 291 | + Exclude: |
| 292 | + - 'app/api/web/registrations_api.rb' |
| 293 | + - 'app/api/web/users_api.rb' |
| 294 | + - 'bin/bundle' |
| 295 | + |
| 296 | +# Offense count: 1 |
| 297 | +# This cop supports safe autocorrection (--autocorrect). |
| 298 | +# Configuration parameters: EnforcedStyle. |
| 299 | +# SupportedStyles: line_count_dependent, lambda, literal |
| 300 | +Style/Lambda: |
| 301 | + Exclude: |
| 302 | + - 'app/models/discussion.rb' |
| 303 | + |
| 304 | +# Offense count: 1 |
| 305 | +# This cop supports safe autocorrection (--autocorrect). |
| 306 | +# Configuration parameters: MinDigits, Strict, AllowedNumbers, AllowedPatterns. |
| 307 | +Style/NumericLiterals: |
| 308 | + Exclude: |
| 309 | + - 'db/schema.rb' |
| 310 | + |
| 311 | +# Offense count: 1 |
| 312 | +# This cop supports safe autocorrection (--autocorrect). |
| 313 | +Style/PerlBackrefs: |
| 314 | + Exclude: |
| 315 | + - 'bin/bundle' |
| 316 | + |
| 317 | +# Offense count: 2 |
| 318 | +# This cop supports unsafe autocorrection (--autocorrect-all). |
| 319 | +# Configuration parameters: SafeForConstants. |
| 320 | +Style/RedundantFetchBlock: |
| 321 | + Exclude: |
| 322 | + - 'config/puma.rb' |
| 323 | + |
| 324 | +# Offense count: 1 |
| 325 | +# This cop supports unsafe autocorrection (--autocorrect-all). |
| 326 | +# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength. |
| 327 | +# AllowedMethods: present?, blank?, presence, try, try! |
| 328 | +Style/SafeNavigation: |
| 329 | + Exclude: |
| 330 | + - 'app/api/web/sessions_api.rb' |
| 331 | + |
| 332 | +# Offense count: 1 |
| 333 | +# This cop supports unsafe autocorrection (--autocorrect-all). |
| 334 | +# Configuration parameters: RequireEnglish. |
| 335 | +# SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names |
| 336 | +Style/SpecialGlobalVars: |
| 337 | + EnforcedStyle: use_perl_names |
| 338 | + |
| 339 | +# Offense count: 256 |
| 340 | +# This cop supports safe autocorrection (--autocorrect). |
| 341 | +# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline. |
| 342 | +# SupportedStyles: single_quotes, double_quotes |
| 343 | +Style/StringLiterals: |
| 344 | + Enabled: false |
| 345 | + |
| 346 | +# Offense count: 4 |
| 347 | +# This cop supports safe autocorrection (--autocorrect). |
| 348 | +# Configuration parameters: . |
| 349 | +# SupportedStyles: percent, brackets |
| 350 | +Style/SymbolArray: |
| 351 | + EnforcedStyle: percent |
| 352 | + MinSize: 10 |
| 353 | + |
| 354 | +# Offense count: 2 |
| 355 | +# This cop supports safe autocorrection (--autocorrect). |
| 356 | +# Configuration parameters: EnforcedStyleForMultiline. |
| 357 | +# SupportedStylesForMultiline: comma, consistent_comma, no_comma |
| 358 | +Style/TrailingCommaInArguments: |
| 359 | + Exclude: |
| 360 | + - 'app/api/web_api.rb' |
| 361 | + - 'app/controllers/docs_controller.rb' |
| 362 | + |
| 363 | +# Offense count: 19 |
| 364 | +# This cop supports safe autocorrection (--autocorrect). |
| 365 | +# Configuration parameters: EnforcedStyleForMultiline. |
| 366 | +# SupportedStylesForMultiline: comma, consistent_comma, no_comma |
| 367 | +Style/TrailingCommaInHashLiteral: |
| 368 | + Exclude: |
| 369 | + - 'app/api/json_error_formatter.rb' |
| 370 | + - 'app/api/web/discussions_api.rb' |
| 371 | + - 'app/api/web/sessions_api.rb' |
| 372 | + - 'app/api/web/users_api.rb' |
| 373 | + - 'app/api/web_api.rb' |
| 374 | + |
| 375 | +# Offense count: 3 |
| 376 | +# This cop supports safe autocorrection (--autocorrect). |
| 377 | +# Configuration parameters: WordRegex. |
| 378 | +# SupportedStyles: percent, brackets |
| 379 | +Style/WordArray: |
| 380 | + EnforcedStyle: percent |
| 381 | + MinSize: 4 |
| 382 | + |
| 383 | +# Offense count: 19 |
| 384 | +# This cop supports safe autocorrection (--autocorrect). |
| 385 | +# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns. |
| 386 | +# URISchemes: http, https |
| 387 | +Layout/LineLength: |
| 388 | + Max: 198 |
0 commit comments