Skip to content
Merged
Show file tree
Hide file tree
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
86 changes: 85 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -788,9 +788,21 @@ Performance/UnfreezeString:
Performance/UriDefaultParser:
Enabled: true

Rails/ActionControllerFlashBeforeRender:
Enabled: false

Rails/ActionControllerTestCase:
Enabled: true

Rails/ActionOrder:
Enabled: false

Rails/ActiveRecordCallbacksOrder:
Enabled: true

Rails/ActiveSupportOnLoad:
Enabled: true

Rails/AddColumnIndex:
Enabled: true

Expand All @@ -806,9 +818,27 @@ Rails/ApplicationMailer:
Rails/Blank:
Enabled: false

Rails/CompactBlank:
Enabled: false

Rails/Delegate:
Enabled: false

Rails/DeprecatedActiveModelErrorsMethods:
Enabled: false

Rails/DotSeparatedKeys:
Enabled: false

Rails/DuplicateAssociation:
Enabled: true

Rails/DurationArithmetic:
Enabled: false

Rails/DuplicateScope:
Enabled: false

Rails/DynamicFindBy:
Exclude:
- spec/features/**/*.rb
Expand All @@ -825,16 +855,28 @@ Rails/FilePath:
Rails/FindById:
Enabled: true

Rails/FreezeTime:
Enabled: true

Rails/HttpPositionalArguments:
Description: Use keyword arguments instead of positional arguments in http method calls.
Enabled: true
Include:
- spec/**/*
- test/**/*

Rails/I18nLazyLookup:
Enabled: false

Rails/I18nLocaleAssignment:
Enabled: false

Rails/I18nLocaleTexts:
Enabled: false

Rails/IgnoredColumnsAssignment:
Enabled: false

Rails/Inquiry:
Enabled: true

Expand All @@ -844,6 +886,9 @@ Rails/MailerName:
Rails/MatchRoute:
Enabled: true

Rails/MigrationClassName:
Enabled: true

Rails/NegateInclude:
Enabled: false

Expand All @@ -857,14 +902,17 @@ Rails/Output:
- spec/**/*.rb # in addition to default

Rails/Pluck:
Enabled: true
Enabled: false

Rails/PluckInWhere:
Enabled: true

Rails/Present:
Enabled: false

Rails/RedundantPresenceValidationOnBelongsTo:
Enabled: false

Rails/RedundantTravelBack:
Enabled: true

Expand All @@ -877,12 +925,30 @@ Rails/RenderInline:
Rails/RenderPlainText:
Enabled: true

Rails/ResponseParsedBody:
Enabled: false

Rails/RootJoinChain:
Enabled: true

Rails/RootPathnameMethods:
Enabled: false

Rails/RootPublicPath:
Enabled: true

Rails/ShortI18n:
Enabled: true

Rails/StripHeredoc:
Enabled: false

Rails/SquishedSQLHeredocs:
Enabled: false

Rails/ThreeStateBooleanColumn:
Enabled: true

Rails/TimeZone:
Description: Checks the correct usage of time zone aware methods.
StyleGuide: https://github.com/bbatsov/rails-style-guide#time
Expand All @@ -895,6 +961,18 @@ Rails/TimeZone:
Rails/TimeZoneAssignment:
Enabled: true

Rails/ToFormattedS:
Enabled: false

Rails/ToSWithArgument:
Enabled: false

Rails/TopLevelHashWithIndifferentAccess:
Enabled: true

Rails/TransactionExitStatement:
Enabled: true

Rails/UnusedIgnoredColumns:
Enabled: true

Expand All @@ -904,9 +982,15 @@ Rails/WhereEquals:
Rails/WhereExists:
Enabled: true

Rails/WhereMissing:
Enabled: true

Rails/WhereNot:
Enabled: false

Rails/WhereNotWithMultipleConditions:
Enabled: true

Security/Eval:
Enabled: true

Expand Down
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ gem 'zxcvbn', '0.1.9'
group :development do
gem 'better_errors', '>= 2.5.1'
gem 'binding_of_caller'
gem 'derailed_benchmarks', '~> 1.8'
gem 'derailed_benchmarks'
gem 'guard-rspec', require: false
gem 'irb'
gem 'letter_opener', '~> 1.8'
Expand All @@ -99,7 +99,7 @@ group :development, :test do
gem 'brakeman', require: false
gem 'bullet', '~> 7.0'
gem 'capybara-webmock', git: 'https://github.com/hashrocket/capybara-webmock.git', ref: 'd3f3b7c'
gem 'erb_lint', '~> 0.3.0', require: false
gem 'erb_lint', '~> 0.4.0', require: false
gem 'i18n-tasks', '~> 1.0'
gem 'knapsack'
gem 'listen'
Expand All @@ -111,7 +111,7 @@ group :development, :test do
gem 'psych'
gem 'rspec-rails', '~> 6.0'
gem 'rubocop', '~> 1.55.1', require: false
gem 'rubocop-performance', '~> 1.15.0', require: false
gem 'rubocop-performance', '~> 1.18.0', require: false
gem 'rubocop-rails', '>= 2.5.2', require: false
end

Expand Down
Loading