wbotelhos/normalizy

View on GitHub
.rubocop_todo.yml

Summary

Maintainability
Test Coverage
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2022-05-18 03:32:08 UTC using RuboCop version 1.29.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: 1
# Configuration parameters: Include.
# Include: **/*.gemspec
Gemspec/RequiredRubyVersion:
  Exclude:
    - 'normalizy.gemspec'

# Offense count: 1
# Configuration parameters: IgnoredMethods.
Lint/AmbiguousBlockAssociation:
  Exclude:
    - 'lib/normalizy/extensions.rb'

# Offense count: 1
# This cop supports unsafe auto-correction (--auto-correct-all).
Lint/NonDeterministicRequireOrder:
  Exclude:
    - 'lib/normalizy/filters.rb'

# Offense count: 1
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
Lint/UnusedMethodArgument:
  Exclude:
    - 'lib/normalizy/extensions.rb'

# Offense count: 2
# Configuration parameters: IgnoredMethods.
Metrics/CyclomaticComplexity:
  Max: 10

# Offense count: 2
# Configuration parameters: IgnoredMethods.
Metrics/PerceivedComplexity:
  Max: 11

# Offense count: 1
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
# AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
Naming/MethodParameterName:
  Exclude:
    - 'lib/normalizy/config.rb'

# Offense count: 1
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
# SupportedStyles: snake_case, normalcase, non_integer
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339
Naming/VariableNumber:
  Exclude:
    - 'spec/support/db/schema.rb'

# Offense count: 24
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: be, be_nil
RSpec/BeNil:
  Exclude:
    - 'spec/normalizy/filters/date_spec.rb'
    - 'spec/normalizy/filters/money_spec.rb'
    - 'spec/normalizy/filters/number_spec.rb'
    - 'spec/normalizy/filters/percent_spec.rb'
    - 'spec/normalizy/filters/slug_spec.rb'
    - 'spec/normalizy/filters/strip_spec.rb'

# Offense count: 1
# Configuration parameters: IgnoredMetadata.
RSpec/DescribeClass:
  Exclude:
    - 'spec/normalizy/extensions/model_spec.rb'

# Offense count: 10
RSpec/DescribeMethod:
  Exclude:
    - 'spec/normalizy/config/default_filters_spec.rb'
    - 'spec/normalizy/config/initialize_spec.rb'
    - 'spec/normalizy/config/normalizy_aliases_spec.rb'
    - 'spec/normalizy/extensions/filters/date_spec.rb'
    - 'spec/normalizy/extensions/filters/money_spec.rb'
    - 'spec/normalizy/extensions/filters/number_spec.rb'
    - 'spec/normalizy/extensions/filters/percent_spec.rb'
    - 'spec/normalizy/extensions/filters/slug_spec.rb'
    - 'spec/normalizy/extensions/filters/strip_spec.rb'
    - 'spec/normalizy/extensions/normalizy_rules_spec.rb'

# Offense count: 344
# Configuration parameters: IgnoreSharedExamples.
RSpec/NamedSubject:
  Exclude:
    - 'spec/normalizy/config/default_filters_spec.rb'
    - 'spec/normalizy/config/initialize_spec.rb'
    - 'spec/normalizy/config/normalizy_aliases_spec.rb'
    - 'spec/normalizy/filters/date_spec.rb'
    - 'spec/normalizy/filters/money_spec.rb'
    - 'spec/normalizy/filters/number_spec.rb'
    - 'spec/normalizy/filters/percent_spec.rb'
    - 'spec/normalizy/filters/slug_spec.rb'
    - 'spec/normalizy/filters/strip_spec.rb'
    - 'spec/normalizy/filters/truncate_spec.rb'

# Offense count: 10
# This cop supports safe auto-correction (--auto-correct).
Rails/ApplicationRecord:
  Exclude:
    - 'spec/support/models/alias.rb'
    - 'spec/support/models/match.rb'
    - 'spec/support/models/model.rb'
    - 'spec/support/models/model_date.rb'
    - 'spec/support/models/model_money.rb'
    - 'spec/support/models/model_number.rb'
    - 'spec/support/models/model_percent.rb'
    - 'spec/support/models/model_slug.rb'
    - 'spec/support/models/model_strip.rb'
    - 'spec/support/models/rule.rb'

# Offense count: 1
# This cop supports safe auto-correction (--auto-correct).
Rails/Pluck:
  Exclude:
    - 'lib/normalizy/rspec/matcher.rb'

# Offense count: 6
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: strict, flexible
Rails/TimeZone:
  Exclude:
    - 'spec/normalizy/extensions/filters/date_spec.rb'
    - 'spec/normalizy/filters/date_spec.rb'

# Offense count: 2
# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, IgnoredMethods.
# SupportedStyles: annotated, template, unannotated
Style/FormatStringToken:
  EnforcedStyle: template

# Offense count: 2
Style/OpenStructUse:
  Exclude:
    - 'spec/normalizy/filters/date_spec.rb'