# This configuration was generated by # `rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 10000` # on 2022-02-21 18:24:20 UTC using RuboCop version 1.25.1. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new # versions of RuboCop, may require this file to be generated again. # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include. # Include: **/*.gemspec Gemspec/OrderedDependencies: Exclude: - 'storyblok.gemspec' # Offense count: 1 # Configuration parameters: Include. # Include: **/*.gemspec Gemspec/RequiredRubyVersion: Exclude: - 'storyblok.gemspec' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: around, only_before Layout/EmptyLinesAroundAccessModifier: Exclude: - 'lib/storyblok/client.rb' - 'lib/storyblok/links.rb' # Offense count: 13 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: normal, indented_internal_methods Layout/IndentationConsistency: Exclude: - 'lib/storyblok/client.rb' - 'lib/storyblok/links.rb' # Offense count: 13 # Cop supports --auto-correct. # Configuration parameters: Width, IgnoredPatterns. Layout/IndentationWidth: Exclude: - 'lib/storyblok/client.rb' - 'lib/storyblok/links.rb' # Offense count: 2 # Configuration parameters: IgnoredMethods. Lint/AmbiguousBlockAssociation: Exclude: - 'spec/lib/storyblok_cache_redis_spec.rb' # Offense count: 2 # Cop supports --auto-correct. Lint/RedundantStringCoercion: Exclude: - 'lib/storyblok/client.rb' # Offense count: 1 Lint/ShadowingOuterLocalVariable: Exclude: - 'examples/tree.rb' # Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments. Lint/UnusedBlockArgument: Exclude: - 'examples/tree.rb' - 'lib/storyblok/client.rb' - 'lib/storyblok/links.rb' # Offense count: 8 Lint/UselessAssignment: Exclude: - 'examples/cache.rb' - 'examples/renderer.rb' # Offense count: 8 # Configuration parameters: IgnoredMethods, CountRepeatedAttributes, Max. Metrics/AbcSize: Exclude: - 'lib/storyblok/client.rb' - 'lib/storyblok/links.rb' # Offense count: 50 # Configuration parameters: CountComments, Max, CountAsOne, ExcludedMethods, IgnoredMethods. # IgnoredMethods: refine Metrics/BlockLength: Exclude: - '**/*.gemspec' - 'spec/lib/storyblok_cache_redis_spec.rb' - 'spec/lib/storyblok_client_spec.rb' - 'spec/v2/storyblok_client_spec.rb' # Offense count: 3 # Configuration parameters: CountBlocks, Max. Metrics/BlockNesting: Exclude: - 'lib/storyblok/client.rb' # Offense count: 1 # Configuration parameters: CountComments, Max, CountAsOne. Metrics/ClassLength: Exclude: - 'lib/storyblok/client.rb' # Offense count: 3 # Configuration parameters: IgnoredMethods, Max. Metrics/CyclomaticComplexity: Exclude: - 'lib/storyblok/client.rb' # Offense count: 10 # Configuration parameters: CountComments, Max, CountAsOne, ExcludedMethods, IgnoredMethods. Metrics/MethodLength: Exclude: - 'lib/storyblok/client.rb' - 'lib/storyblok/links.rb' - 'lib/storyblok/request.rb' # Offense count: 2 # Configuration parameters: IgnoredMethods, Max. Metrics/PerceivedComplexity: Exclude: - 'lib/storyblok/client.rb' # Offense count: 1 Naming/AccessorMethodName: Exclude: - 'lib/storyblok/client.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: always, conditionals Style/AndOr: Exclude: - 'lib/storyblok/client.rb' # Offense count: 11 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods. # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object # FunctionalMethods: let, let!, subject, watch # IgnoredMethods: lambda, proc, it Style/BlockDelimiters: Exclude: - 'lib/storyblok/client.rb' - 'spec/lib/storyblok_cache_redis_spec.rb' - 'spec/lib/storyblok_client_spec.rb' - 'storyblok.gemspec' # Offense count: 2 # Cop supports --auto-correct-all. Style/CaseLikeIf: Exclude: - 'lib/storyblok/client.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions. # SupportedStyles: assign_to_condition, assign_inside_condition Style/ConditionalAssignment: Exclude: - 'lib/storyblok/client.rb' # Offense count: 3 # Configuration parameters: AllowedConstants. Style/Documentation: Exclude: - 'spec/**/*' - 'test/**/*' - 'lib/storyblok/cache/redis.rb' - 'lib/storyblok/client.rb' - 'lib/storyblok/links.rb' # Offense count: 1 # Cop supports --auto-correct. Style/ExpandPathArguments: Exclude: - 'storyblok.gemspec' # Offense count: 17 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: always, always_true, never Style/FrozenStringLiteralComment: Exclude: - 'Gemfile' - 'examples/cache.rb' - 'examples/example_queries.rb' - 'examples/management_api.rb' - 'examples/renderer.rb' - 'examples/tree.rb' - 'lib/storyblok.rb' - 'lib/storyblok/cache/redis.rb' - 'lib/storyblok/client.rb' - 'lib/storyblok/links.rb' - 'lib/storyblok/request.rb' - 'lib/storyblok/version.rb' - 'spec/lib/storyblok_cache_redis_spec.rb' - 'spec/lib/storyblok_client_spec.rb' - 'spec/lib/storyblok_request_spec.rb' - 'spec/v2/storyblok_client_spec.rb' - 'storyblok.gemspec' # Offense count: 5 # Cop supports --auto-correct. Style/GlobalStdStream: Exclude: - 'examples/cache.rb' - 'examples/example_queries.rb' - 'examples/management_api.rb' - 'examples/renderer.rb' - 'examples/tree.rb' # Offense count: 2 # Configuration parameters: MinBodyLength. Style/GuardClause: Exclude: - 'lib/storyblok/cache/redis.rb' - 'lib/storyblok/client.rb' # Offense count: 4 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols. # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys # SupportedShorthandSyntax: always, never, either Style/HashSyntax: Exclude: - 'examples/cache.rb' - 'lib/storyblok/client.rb' - 'spec/spec_helper.rb' # Offense count: 7 # Cop supports --auto-correct. Style/IfUnlessModifier: Exclude: - 'lib/storyblok/cache/redis.rb' - 'lib/storyblok/client.rb' - 'lib/storyblok/links.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: line_count_dependent, lambda, literal Style/Lambda: Exclude: - 'examples/renderer.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline Style/MethodDefParentheses: Exclude: - 'lib/storyblok/client.rb' # Offense count: 1 # Cop supports --auto-correct. Style/MultilineIfModifier: Exclude: - 'lib/storyblok/client.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: literals, strict Style/MutableConstant: Exclude: - 'lib/storyblok/client.rb' - 'lib/storyblok/version.rb' # Offense count: 4 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: both, prefix, postfix Style/NegatedIf: Exclude: - 'examples/tree.rb' - 'lib/storyblok/client.rb' - 'lib/storyblok/links.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, MinBodyLength. # SupportedStyles: skip_modifier_ifs, always Style/Next: Exclude: - 'lib/storyblok/client.rb' # Offense count: 67 # Cop supports --auto-correct. # Configuration parameters: MinDigits, Strict, AllowedNumbers. Style/NumericLiterals: Exclude: - 'spec/lib/storyblok_client_spec.rb' - 'spec/v2/storyblok_client_spec.rb' # Offense count: 1 # Cop supports --auto-correct-all. # Configuration parameters: EnforcedStyle, IgnoredMethods. # SupportedStyles: predicate, comparison Style/NumericPredicate: Exclude: - 'spec/**/*' - 'lib/storyblok/cache/redis.rb' # Offense count: 1 Style/OptionalArguments: Exclude: - 'lib/storyblok/links.rb' # Offense count: 3 # Configuration parameters: AllowedMethods. # AllowedMethods: respond_to_missing? Style/OptionalBooleanParameter: Exclude: - 'lib/storyblok/cache/redis.rb' - 'lib/storyblok/client.rb' - 'lib/storyblok/request.rb' # Offense count: 6 # Cop supports --auto-correct. # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods. # AllowedMethods: present?, blank?, presence, try, try! Style/SafeNavigation: Exclude: - 'lib/storyblok/client.rb' # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: only_raise, only_fail, semantic Style/SignalException: Exclude: - 'lib/storyblok/client.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: AllowModifier. Style/SoleNestedConditional: Exclude: - 'lib/storyblok/client.rb' # Offense count: 6 # Cop supports --auto-correct-all. # Configuration parameters: Mode. Style/StringConcatenation: Exclude: - 'examples/tree.rb' - 'lib/storyblok/client.rb' # Offense count: 1217 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline. # SupportedStyles: single_quotes, double_quotes Style/StringLiterals: Exclude: - 'Gemfile' - 'examples/cache.rb' - 'examples/example_queries.rb' - 'examples/management_api.rb' - 'examples/renderer.rb' - 'examples/tree.rb' - 'lib/storyblok.rb' - 'lib/storyblok/cache/redis.rb' - 'lib/storyblok/client.rb' - 'lib/storyblok/links.rb' - 'lib/storyblok/version.rb' - 'spec/lib/storyblok_cache_redis_spec.rb' - 'spec/lib/storyblok_client_spec.rb' - 'spec/lib/storyblok_request_spec.rb' - 'spec/spec_helper.rb' - 'spec/v2/storyblok_client_spec.rb' - 'storyblok.gemspec' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: MinSize. # SupportedStyles: percent, brackets Style/SymbolArray: EnforcedStyle: brackets # Offense count: 1 # Cop supports --auto-correct. Style/UnlessElse: Exclude: - 'lib/storyblok/client.rb' # Offense count: 104 # Cop supports --auto-correct. # Configuration parameters: Max, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. # URISchemes: http, https Layout/LineLength: Exclude: - 'lib/storyblok/client.rb' - 'spec/lib/storyblok_cache_redis_spec.rb' - 'spec/lib/storyblok_client_spec.rb' - 'spec/v2/storyblok_client_spec.rb'