Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rubocop configuration warning #368

Merged
merged 1 commit into from
Jan 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
132 changes: 126 additions & 6 deletions spec/.rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,27 @@ AllCops:
Bundler/DuplicatedGem:
Enabled: true

FactoryBot/AssociationStyle: # new in 2.23
Enabled: true

FactoryBot/ConsistentParenthesesStyle:
Enabled: true

FactoryBot/FactoryNameStyle:
Enabled: true

FactoryBot/FactoryAssociationWithStrategy: # new in 2.23
Enabled: true

FactoryBot/IdSequence: # new in <<next>>
Enabled: true

FactoryBot/RedundantFactoryOption: # new in 2.23
Enabled: true

FactoryBot/SyntaxMethods:
Enabled: true

Layout/ParameterAlignment:
Enabled: true

Expand Down Expand Up @@ -49,6 +70,21 @@ Lint/AmbiguousBlockAssociation:
Lint/AmbiguousRegexpLiteral:
Enabled: true

Lint/DuplicateMatchPattern: # new in 1.50
Enabled: true

Lint/ItWithoutArgumentsInBlock: # new in 1.59
Enabled: true

Lint/LiteralAssignmentInCondition: # new in 1.58
Enabled: true

Lint/MixedCaseRange: # new in 1.53
Enabled: true

Lint/RedundantRegexpQuantifiers: # new in 1.53
Enabled: true

Lint/SuppressedException:
Enabled: true

Expand Down Expand Up @@ -337,6 +373,12 @@ Style/ComparableClamp:
Style/ConcatArrayLiterals:
Enabled: true

Style/DataInheritance: # new in 1.49
Enabled: true

Style/DirEmpty: # new in 1.48
Enabled: true

Style/DocumentDynamicEvalDefinition:
Enabled: true

Expand All @@ -349,6 +391,12 @@ Style/EndlessMethod:
Style/EnvHome:
Enabled: true

Style/ExactRegexpMatch: # new in 1.51
Enabled: true

Style/FileEmpty: # new in 1.48
Enabled: true

Style/FetchEnvVar:
Enabled: true

Expand Down Expand Up @@ -418,42 +466,81 @@ Style/QuotedSymbols:
Style/RedundantArgument:
Enabled: true

Style/RedundantArrayConstructor: # new in 1.52
Enabled: true

Style/RedundantConstantBase:
Enabled: true

Style/RedundantCurrentDirectoryInPath: # new in 1.53
Enabled: true

Style/RedundantDoubleSplatHashBraces:
Enabled: true

Style/RedundantEach:
Enabled: true

Style/RedundantFilterChain: # new in 1.52
Enabled: true

Style/RedundantHeredocDelimiterQuotes:
Enabled: true

Style/RedundantInitialize:
Enabled: true

Style/RedundantLineContinuation: # new in 1.49
Enabled: true

Style/RedundantRegexpArgument: # new in 1.53
Enabled: true

Style/RedundantRegexpConstructor: # new in 1.52
Enabled: true

Style/RedundantSelfAssignmentBranch:
Enabled: true

Style/RedundantStringEscape:
Enabled: true

Style/ReturnNilInPredicateMethodDefinition: # new in 1.53
Enabled: true

Style/SelectByRegexp:
Enabled: true

Style/SingleLineDoEndBlock: # new in 1.57
Enabled: true

Style/StringChars:
Enabled: true

Style/SuperWithArgsParentheses: # new in 1.58
Enabled: true

Style/SwapValues:
Enabled: true

Style/YAMLFileRead: # new in 1.53
Enabled: true

Capybara/ClickLinkOrButtonStyle: # new in 2.19
Enabled: true

Capybara/MatchStyle:
Enabled: true

Capybara/NegationMatcher:
Enabled: true

Capybara/RSpec/HaveSelector: # new in 2.19
Enabled: true

Capybara/RSpec/PredicateMatcher: # new in 2.19
Enabled: true

Capybara/SpecificActions:
Enabled: true

Expand All @@ -463,6 +550,9 @@ Capybara/SpecificFinders:
Capybara/SpecificMatcher:
Enabled: true

RSpec/BeEmpty: # new in 2.20
Enabled: true

RSpec/BeEq:
Enabled: true

Expand All @@ -472,37 +562,61 @@ RSpec/BeNil:
RSpec/ChangeByZero:
Enabled: true

RSpec/ContainExactly: # new in 2.19
Enabled: true

RSpec/DuplicatedMetadata:
Enabled: true

RSpec/EmptyMetadata: # new in 2.24
Enabled: true

RSpec/Eq: # new in 2.24
Enabled: true

RSpec/ExcessiveDocstringSpacing:
Enabled: true

RSpec/IdenticalEqualityAssertion:
Enabled: true

RSpec/IndexedLet: # new in 2.20
Enabled: true

RSpec/MatchArray: # new in 2.19
Enabled: true

RSpec/MetadataStyle: # new in 2.24
Enabled: true

RSpec/NoExpectationExample:
Enabled: true

RSpec/PendingWithoutReason:
Enabled: true

RSpec/SortMetadata:
RSpec/ReceiveMessages: # new in 2.23
Enabled: true

RSpec/SubjectDeclaration:
RSpec/RedundantAround: # new in 2.19
Enabled: true

RSpec/VerifiedDoubleReference:
RSpec/SkipBlockInsideExample: # new in 2.19
Enabled: true

RSpec/FactoryBot/ConsistentParenthesesStyle:
RSpec/SortMetadata:
Enabled: true

RSpec/FactoryBot/FactoryNameStyle:
RSpec/SpecFilePathFormat: # new in 2.24
Enabled: true

RSpec/FactoryBot/SyntaxMethods:
RSpec/SpecFilePathSuffix: # new in 2.24
Enabled: true

RSpec/SubjectDeclaration:
Enabled: true

RSpec/VerifiedDoubleReference:
Enabled: true

RSpec/Rails/AvoidSetupHook:
Expand All @@ -517,6 +631,12 @@ RSpec/Rails/InferredSpecType:
RSpec/Rails/MinitestAssertions:
Enabled: true

RSpec/Rails/NegationBeValid: # new in 2.23
Enabled: true

RSpec/Rails/TravelAround: # new in 2.19
Enabled: true

RSpec/MultipleMemoizedHelpers:
Enabled: false

Expand Down