olbrich/ruby-units

View on GitHub
.rubocop_todo.yml

Summary

Maintainability
Test Coverage
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-09-01 18:40:26 UTC using RuboCop version 1.66.0.
# 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
Lint/BinaryOperatorWithIdenticalOperands:
  Exclude:
    - 'spec/ruby_units/unit_spec.rb'

# Offense count: 2
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
# SupportedStyles: snake_case, normalcase, non_integer
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
Naming/VariableNumber:
  Exclude:
    - 'spec/ruby_units/unit_spec.rb'

# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
RSpec/BeEq:
  Exclude:
    - 'spec/ruby_units/unit_spec.rb'

# Offense count: 2
RSpec/BeforeAfterAll:
  Exclude:
    - '**/spec/spec_helper.rb'
    - '**/spec/rails_helper.rb'
    - '**/spec/support/**/*.rb'
    - 'spec/ruby_units/temperature_spec.rb'

# Offense count: 95
# Configuration parameters: Prefixes, AllowedPatterns.
# Prefixes: when, with, without
RSpec/ContextWording:
  Exclude:
    - 'spec/ruby_units/temperature_spec.rb'
    - 'spec/ruby_units/unit_spec.rb'
    - 'spec/ruby_units/utf-8/unit_spec.rb'

# Offense count: 12
# Configuration parameters: IgnoredMetadata.
RSpec/DescribeClass:
  Exclude:
    - '**/spec/features/**/*'
    - '**/spec/requests/**/*'
    - '**/spec/routing/**/*'
    - '**/spec/system/**/*'
    - '**/spec/views/**/*'
    - 'spec/ruby_units/bugs_spec.rb'
    - 'spec/ruby_units/definition_spec.rb'
    - 'spec/ruby_units/temperature_spec.rb'
    - 'spec/ruby_units/unit_spec.rb'

# Offense count: 1
RSpec/DescribeMethod:
  Exclude:
    - 'spec/ruby_units/utf-8/unit_spec.rb'

# Offense count: 22
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: SkipBlocks, EnforcedStyle, OnlyStaticConstants.
# SupportedStyles: described_class, explicit
RSpec/DescribedClass:
  Exclude:
    - 'spec/ruby_units/complex_spec.rb'
    - 'spec/ruby_units/unit_spec.rb'

# Offense count: 8
# Configuration parameters: CountAsOne.
RSpec/ExampleLength:
  Max: 7

# Offense count: 2
# Configuration parameters: Max, AllowedIdentifiers, AllowedPatterns.
RSpec/IndexedLet:
  Exclude:
    - 'spec/ruby_units/unit_spec.rb'

# Offense count: 11
# Configuration parameters: AssignmentOnly.
RSpec/InstanceVariable:
  Exclude:
    - 'spec/ruby_units/unit_spec.rb'

# Offense count: 1
RSpec/MultipleDescribes:
  Exclude:
    - 'spec/ruby_units/unit_spec.rb'

# Offense count: 10
RSpec/MultipleExpectations:
  Max: 6

# Offense count: 59
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
# SupportedStyles: always, named_only
RSpec/NamedSubject:
  Exclude:
    - 'spec/ruby_units/complex_spec.rb'
    - 'spec/ruby_units/range_spec.rb'
    - 'spec/ruby_units/unit_spec.rb'

# Offense count: 50
# Configuration parameters: AllowedGroups.
RSpec/NestedGroups:
  Max: 5

# Offense count: 6
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Strict, EnforcedStyle, AllowedExplicitMatchers.
# SupportedStyles: inflected, explicit
RSpec/PredicateMatcher:
  Exclude:
    - 'spec/ruby_units/unit_spec.rb'

# Offense count: 2
RSpec/RepeatedExample:
  Exclude:
    - 'spec/ruby_units/unit_spec.rb'

# Offense count: 8
RSpec/RepeatedExampleGroupBody:
  Exclude:
    - 'spec/ruby_units/unit_spec.rb'

# Offense count: 8
RSpec/RepeatedExampleGroupDescription:
  Exclude:
    - 'spec/ruby_units/unit_spec.rb'

# Offense count: 1
# Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata.
# Include: **/*_spec.rb
RSpec/SpecFilePathFormat:
  Exclude:
    - '**/spec/routing/**/*'
    - 'spec/ruby_units/utf-8/unit_spec.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
  Exclude:
    - 'lib/ruby_units/definition.rb'

# Offense count: 1
# Configuration parameters: AllowedConstants.
Style/Documentation:
  Exclude:
    - 'spec/**/*'
    - 'test/**/*'
    - 'lib/ruby_units/configuration.rb'

# Offense count: 5
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/GlobalStdStream:
  Exclude:
    - 'spec/benchmarks/bigdecimal.rb'
    - 'spec/ruby_units/unit_spec.rb'

# Offense count: 1
Style/OpenStructUse:
  Exclude:
    - 'Guardfile'

# Offense count: 1
# Configuration parameters: AllowedMethods.
# AllowedMethods: respond_to_missing?
Style/OptionalBooleanParameter:
  Exclude:
    - 'lib/ruby_units/date.rb'

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowSend.
Style/SendWithLiteralMethodName:
  Exclude:
    - 'lib/ruby_units/time.rb'

# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Mode.
Style/StringConcatenation:
  Exclude:
    - 'spec/ruby_units/bugs_spec.rb'
    - 'spec/ruby_units/unit_spec.rb'
    - 'spec/ruby_units/utf-8/unit_spec.rb'