ruby-grape/grape-on-rack

View on GitHub
.rubocop_todo.yml

Summary

Maintainability
Test Coverage
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2023-11-08 18:43:53 UTC using RuboCop version 1.57.2.
# 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: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
RSpec/BeEql:
  Exclude:
    - 'spec/api/documentation_spec.rb'

# Offense count: 14
# Configuration parameters: Prefixes, AllowedPatterns.
# Prefixes: when, with, without
RSpec/ContextWording:
  Exclude:
    - 'spec/api/content_type_spec.rb'
    - 'spec/api/cors_spec.rb'
    - 'spec/api/documentation_spec.rb'
    - 'spec/api/header_versioning_spec.rb'
    - 'spec/api/post_put_spec.rb'
    - 'spec/integration/grape_on_rack_spec.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
RSpec/EmptyExampleGroup:
  Exclude:
    - 'spec/api/documentation_spec.rb'

# Offense count: 12
# Configuration parameters: CountAsOne.
RSpec/ExampleLength:
  Max: 11

# Offense count: 3
RSpec/ExpectInHook:
  Exclude:
    - 'spec/api/documentation_spec.rb'

# Offense count: 15
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
# Include: **/*_spec*rb*, **/spec/**/*
RSpec/FilePath:
  Exclude:
    - 'spec/api/content_type_spec.rb'
    - 'spec/api/cors_spec.rb'
    - 'spec/api/documentation_spec.rb'
    - 'spec/api/entities_spec.rb'
    - 'spec/api/get_json_spec.rb'
    - 'spec/api/header_versioning_spec.rb'
    - 'spec/api/headers_spec.rb'
    - 'spec/api/path_versioning_spec.rb'
    - 'spec/api/ping_spec.rb'
    - 'spec/api/post_json_spec.rb'
    - 'spec/api/post_put_spec.rb'
    - 'spec/api/rescue_from_spec.rb'
    - 'spec/api/stream_data_spec.rb'
    - 'spec/api/upload_file_spec.rb'
    - 'spec/api/wrap_response_spec.rb'

# Offense count: 9
# Configuration parameters: AssignmentOnly.
RSpec/InstanceVariable:
  Exclude:
    - 'spec/api/documentation_spec.rb'
    - 'spec/api/post_put_spec.rb'
    - 'spec/integration/grape_on_rack_spec.rb'

# Offense count: 26
RSpec/MultipleExpectations:
  Max: 4

# Offense count: 2
RSpec/RepeatedExample:
  Exclude:
    - 'spec/api/headers_spec.rb'

# Offense count: 15
# Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata.
# Include: **/*_spec.rb
RSpec/SpecFilePathFormat:
  Exclude:
    - '**/spec/routing/**/*'
    - 'spec/api/content_type_spec.rb'
    - 'spec/api/cors_spec.rb'
    - 'spec/api/documentation_spec.rb'
    - 'spec/api/entities_spec.rb'
    - 'spec/api/get_json_spec.rb'
    - 'spec/api/header_versioning_spec.rb'
    - 'spec/api/headers_spec.rb'
    - 'spec/api/path_versioning_spec.rb'
    - 'spec/api/ping_spec.rb'
    - 'spec/api/post_json_spec.rb'
    - 'spec/api/post_put_spec.rb'
    - 'spec/api/rescue_from_spec.rb'
    - 'spec/api/stream_data_spec.rb'
    - 'spec/api/upload_file_spec.rb'
    - 'spec/api/wrap_response_spec.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Rake/Desc:
  Exclude:
    - 'Rakefile'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: line_count_dependent, lambda, literal
Style/Lambda:
  Exclude:
    - 'app/acme_app.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/MapToHash:
  Exclude:
    - 'spec/api/documentation_spec.rb'

# Offense count: 1
Style/OpenStructUse:
  Exclude:
    - 'api/entities.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/RescueModifier:
  Exclude:
    - 'api/get_json.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Mode.
Style/StringConcatenation:
  Exclude:
    - 'api/stream_data.rb'