Fix rubocop config filename

This commit is contained in:
Ryan W
2021-09-26 15:01:51 -07:00
parent 13cb133004
commit 06b2f716ba
3 changed files with 4 additions and 111 deletions
-111
View File
@@ -1,111 +0,0 @@
require:
- rubocop-rails
AllCops:
TargetRubyVersion: 3.0.2
TargetRailsVersion: 7.0.0
DisabledByDefault: true
Exclude:
- "bin/**/*"
- "vendor/**/*"
- "public/**/*"
- "node_modules/**/*"
Layout/EmptyLineAfterMagicComment:
Enabled: true
Layout/TrailingEmptyLines:
Enabled: true
Layout/TrailingWhitespace:
Enabled: true
Lint/BinaryOperatorWithIdenticalOperands:
Enabled: true
Lint/CircularArgumentReference:
Enabled: true
Lint/Debugger:
Enabled: true
Lint/DeprecatedClassMethods:
Enabled: true
Lint/DuplicateMethods:
Enabled: false
Lint/DuplicateHashKey:
Enabled: true
Lint/EachWithObjectArgument:
Enabled: true
Lint/ElseLayout:
Enabled: true
Lint/EmptyEnsure:
Enabled: true
Lint/EmptyInterpolation:
Enabled: true
Lint/EnsureReturn:
Enabled: true
Lint/FloatOutOfRange:
Enabled: true
Lint/FormatParameterMismatch:
Enabled: true
Lint/LiteralAsCondition:
Enabled: true
Lint/LiteralInInterpolation:
Enabled: true
Lint/Loop:
Enabled: true
Lint/NextWithoutAccumulator:
Enabled: true
Lint/RandOne:
Enabled: true
Lint/RequireParentheses:
Enabled: true
Lint/RescueException:
Enabled: true
Lint/RedundantStringCoercion:
Enabled: false
Lint/RedundantCopDisableDirective:
Enabled: true
Lint/RedundantSplatExpansion:
Enabled: false
Lint/UnreachableCode:
Enabled: true
Lint/UselessSetterCall:
Enabled: true
Lint/Void:
Enabled: true
Naming/ClassAndModuleCamelCase:
Enabled: true
# Security/Eval:
# Enabled: false
# Security/JSONLoad:
# Enabled: true
# Security/MarshalLoad:
# Enabled: true
# Security/Open:
# Enabled: false
# Security/YAMLLoad:
# Enabled: false
# Style/EndBlock:
# Enabled: true
# Style/HashSyntax:
# Enabled: true
# Style/StringLiterals:
# Enabled: true
# EnforcedStyle: "double_quotes"
# Exclude:
# - "config/**/*.rb"
# - Rakefile
# Style/CaseEquality:
# Enabled: true
# Style/ClassMethods:
# Enabled: true
# Style/ClassVars:
# Enabled: true
# Style/CollectionMethods:
# Enabled: true
# PreferredMethods:
# collect: "map"
# collect!: "map!"
# inject: "reduce"
# detect: "find"
# find_all: "select"
+1
View File
@@ -52,6 +52,7 @@ group :development, :test do
# Start debugger with binding.b [https://github.com/ruby/debug] # Start debugger with binding.b [https://github.com/ruby/debug]
gem 'debug', '>= 1.0.0', platforms: %i[mri mingw x64_mingw] gem 'debug', '>= 1.0.0', platforms: %i[mri mingw x64_mingw]
gem 'rspec-rails' gem 'rspec-rails'
gem 'rubocop-rspec'
end end
group :development do group :development do
+3
View File
@@ -181,6 +181,8 @@ GEM
activesupport (>= 4.2.0) activesupport (>= 4.2.0)
rack (>= 1.1) rack (>= 1.1)
rubocop (>= 1.7.0, < 2.0) rubocop (>= 1.7.0, < 2.0)
rubocop-rspec (2.5.0)
rubocop (~> 1.19)
ruby-progressbar (1.11.0) ruby-progressbar (1.11.0)
sprockets (4.0.2) sprockets (4.0.2)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
@@ -225,6 +227,7 @@ DEPENDENCIES
redis (~> 4.0) redis (~> 4.0)
rspec-rails rspec-rails
rubocop-rails rubocop-rails
rubocop-rspec
stimulus-rails (>= 0.4.0) stimulus-rails (>= 0.4.0)
turbo-rails (>= 0.7.11) turbo-rails (>= 0.7.11)
tzinfo-data tzinfo-data