Skip to content

Commit

Permalink
Fix rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyshields committed Jan 2, 2025
1 parent 222ccdc commit 653a109
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@ Naming/FileName:
Exclude:
- 'lib/dartsass-sprockets.rb'

Style/EmptyMethod:
EnforcedStyle: expanded

Style/HashSyntax:
EnforcedShorthandSyntax: never
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

source 'https://rubygems.org'

gem 'rake'
gem 'rubocop'
gem 'mocha'
gem 'rake'
gem 'rubocop', '~> 1.69.2'

platforms :windows do
gem 'tzinfo-data'
Expand Down
2 changes: 1 addition & 1 deletion lib/sassc/rails/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class Railtie < ::Rails::Railtie
# TODO: Change this in version 4
# app.config.sass.style = :compressed unless app.config.sass.key?(:style)
# app.config.assets.css_compressor = :scss unless app.config.assets.key?(:css_compressor)
app.config.assets.css_compressor = :sass unless app.config.assets.key?(:css_compressor)
app.config.assets.css_compressor = :sass unless app.config.assets.key?(:css_compressor) # rubocop:disable Style/SoleNestedConditional
end
end
end
Expand Down

0 comments on commit 653a109

Please sign in to comment.