Enable Lint/DeprecatedClassMethods cop to avoid using deprecated methods

This commit is contained in:
yuuji.yaginuma 2019-01-09 12:00:08 +09:00
parent ee3ebc9098
commit 5df737b7e8
2 changed files with 4 additions and 1 deletions

@ -191,6 +191,9 @@ Lint/StringConversionInInterpolation:
Lint/UriEscapeUnescape:
Enabled: true
Lint/DeprecatedClassMethods:
Enabled: true
Style/ParenthesesAroundCondition:
Enabled: true

@ -14,7 +14,7 @@
APPLICATION_PACK_PATH = "app/javascript/packs/application.js"
if File.exists?(APPLICATION_PACK_PATH) && File.read(APPLICATION_PACK_PATH) !~ /import "actiontext"/
if File.exist?(APPLICATION_PACK_PATH) && File.read(APPLICATION_PACK_PATH) !~ /import "actiontext"/
say "Adding import to default JavaScript pack"
append_to_file APPLICATION_PACK_PATH, <<-EOS
import "actiontext"