-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce Rubocop/Standard as linter
Problem: No coding style is enforced in this project. Solution: Use standard to get the de facto modern standard of code style.
- Loading branch information
Showing
24 changed files
with
464 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
inherit_from: .rubocop_todo.yml | ||
|
||
require: | ||
- standard | ||
- rubocop-rspec | ||
- rubocop-rake | ||
|
||
inherit_gem: | ||
standard: config/base.yml | ||
|
||
Capybara/ClickLinkOrButtonStyle: # new in 2.19 | ||
Enabled: false | ||
Capybara/MatchStyle: # new in 2.17 | ||
Enabled: false | ||
Capybara/NegationMatcher: # new in 2.14 | ||
Enabled: false | ||
Capybara/RedundantWithinFind: # new in 2.20 | ||
Enabled: false | ||
Capybara/SpecificActions: # new in 2.14 | ||
Enabled: false | ||
Capybara/SpecificFinders: # new in 2.13 | ||
Enabled: false | ||
Capybara/SpecificMatcher: # new in 2.12 | ||
Enabled: false | ||
Capybara/RSpec/HaveSelector: # new in 2.19 | ||
Enabled: false | ||
Capybara/RSpec/PredicateMatcher: # new in 2.19 | ||
Enabled: false | ||
FactoryBot/AssociationStyle: # new in 2.23 | ||
Enabled: false | ||
FactoryBot/ConsistentParenthesesStyle: # new in 2.14 | ||
Enabled: false | ||
FactoryBot/FactoryAssociationWithStrategy: # new in 2.23 | ||
Enabled: false | ||
FactoryBot/FactoryNameStyle: # new in 2.16 | ||
Enabled: false | ||
FactoryBot/IdSequence: # new in <<next>> | ||
Enabled: false | ||
FactoryBot/RedundantFactoryOption: # new in 2.23 | ||
Enabled: false | ||
FactoryBot/SyntaxMethods: # new in 2.7 | ||
Enabled: false | ||
RSpec/BeEmpty: # new in 2.20 | ||
Enabled: true | ||
RSpec/BeEq: # new in 2.9.0 | ||
Enabled: true | ||
RSpec/BeNil: # new in 2.9.0 | ||
Enabled: true | ||
RSpec/ChangeByZero: # new in 2.11 | ||
Enabled: true | ||
RSpec/ContainExactly: # new in 2.19 | ||
Enabled: true | ||
RSpec/DuplicatedMetadata: # new in 2.16 | ||
Enabled: true | ||
RSpec/EmptyMetadata: # new in 2.24 | ||
Enabled: true | ||
RSpec/Eq: # new in 2.24 | ||
Enabled: true | ||
RSpec/ExcessiveDocstringSpacing: # new in 2.5 | ||
Enabled: true | ||
RSpec/IdenticalEqualityAssertion: # new in 2.4 | ||
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: # new in 2.13 | ||
Enabled: true | ||
RSpec/PendingWithoutReason: # new in 2.16 | ||
Enabled: true | ||
RSpec/ReceiveMessages: # new in 2.23 | ||
Enabled: true | ||
RSpec/RedundantAround: # new in 2.19 | ||
Enabled: true | ||
RSpec/SkipBlockInsideExample: # new in 2.19 | ||
Enabled: true | ||
RSpec/SortMetadata: # new in 2.14 | ||
Enabled: true | ||
RSpec/SpecFilePathFormat: # new in 2.24 | ||
Enabled: true | ||
RSpec/SpecFilePathSuffix: # new in 2.24 | ||
Enabled: true | ||
RSpec/SubjectDeclaration: # new in 2.5 | ||
Enabled: true | ||
RSpec/VerifiedDoubleReference: # new in 2.10.0 | ||
Enabled: true | ||
RSpec/Rails/AvoidSetupHook: # new in 2.4 | ||
Enabled: true | ||
RSpec/Rails/HaveHttpStatus: # new in 2.12 | ||
Enabled: true | ||
RSpec/Rails/InferredSpecType: # new in 2.14 | ||
Enabled: true | ||
RSpec/Rails/MinitestAssertions: # new in 2.17 | ||
Enabled: true | ||
RSpec/Rails/NegationBeValid: # new in 2.23 | ||
Enabled: true | ||
RSpec/Rails/TravelAround: # new in 2.19 | ||
Enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config` | ||
# on 2024-01-04 11:01:13 UTC using RuboCop version 1.59.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: 3 | ||
# This cop supports unsafe autocorrection (--autocorrect-all). | ||
RSpec/BeEq: | ||
Exclude: | ||
- 'spec/outcome_spec.rb' | ||
|
||
# Offense count: 8 | ||
# Configuration parameters: Prefixes, AllowedPatterns. | ||
# Prefixes: when, with, without | ||
RSpec/ContextWording: | ||
Exclude: | ||
- 'spec/outcome_spec.rb' | ||
- 'spec/validation_spec.rb' | ||
|
||
# Offense count: 7 | ||
# This cop supports unsafe autocorrection (--autocorrect-all). | ||
# Configuration parameters: SkipBlocks, EnforcedStyle. | ||
# SupportedStyles: described_class, explicit | ||
RSpec/DescribedClass: | ||
Exclude: | ||
- 'spec/outcome_spec.rb' | ||
- 'spec/step_spec.rb' | ||
|
||
# Offense count: 5 | ||
# Configuration parameters: CountAsOne. | ||
RSpec/ExampleLength: | ||
Max: 8 | ||
|
||
# Offense count: 1 | ||
# This cop supports safe autocorrection (--autocorrect). | ||
RSpec/ExpectActual: | ||
Exclude: | ||
- '**/spec/routing/**/*' | ||
- 'spec/validation_spec.rb' | ||
|
||
# Offense count: 5 | ||
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly. | ||
# Include: **/*_spec*rb*, **/spec/**/* | ||
RSpec/FilePath: | ||
Exclude: | ||
- 'spec/hooks_spec.rb' | ||
- 'spec/outcome_spec.rb' | ||
- 'spec/sequence_spec.rb' | ||
- 'spec/step_spec.rb' | ||
- 'spec/validation_spec.rb' | ||
|
||
# Offense count: 9 | ||
RSpec/MultipleExpectations: | ||
Max: 6 | ||
|
||
# Offense count: 10 | ||
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples. | ||
# SupportedStyles: always, named_only | ||
RSpec/NamedSubject: | ||
Exclude: | ||
- 'spec/outcome_spec.rb' | ||
- 'spec/validation_spec.rb' | ||
|
||
# Offense count: 4 | ||
# Configuration parameters: AllowedGroups. | ||
RSpec/NestedGroups: | ||
Max: 4 | ||
|
||
# Offense count: 5 | ||
# Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata. | ||
# Include: **/*_spec.rb | ||
RSpec/SpecFilePathFormat: | ||
Exclude: | ||
- '**/spec/routing/**/*' | ||
- 'spec/hooks_spec.rb' | ||
- 'spec/outcome_spec.rb' | ||
- 'spec/sequence_spec.rb' | ||
- 'spec/step_spec.rb' | ||
- 'spec/validation_spec.rb' | ||
|
||
# Offense count: 4 | ||
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames. | ||
RSpec/VerifiedDoubles: | ||
Exclude: | ||
- 'spec/tzu_spec.rb' | ||
- 'spec/validation_spec.rb' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,7 @@ gem "debug" | |
gem "irb" | ||
gem "rake" | ||
gem "rspec" | ||
gem "rubocop-rspec" | ||
gem "rubocop-rake" | ||
gem "standard" | ||
gem "virtus" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
require "bundler/gem_tasks" | ||
require "rspec/core/rake_task" | ||
require "standard/rake" | ||
|
||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
task :default => :spec | ||
task default: :spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.