aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-03-06 10:01:33 +0900
committerRyuta Kamizono <kamipo@gmail.com>2019-03-06 10:01:33 +0900
commit4353adab89bab252521e0e191d0177ece1538fbb (patch)
treed38091c0e069dc9f4fbb951eb7d019bc2b945914
parent6b8daad0383a40bb397644d0a1f8b35808611d6e (diff)
downloadrails-4353adab89bab252521e0e191d0177ece1538fbb.tar.gz
rails-4353adab89bab252521e0e191d0177ece1538fbb.tar.bz2
rails-4353adab89bab252521e0e191d0177ece1538fbb.zip
Enable `Lint/AmbiguousOperator` and `Lint/AmbiguousRegexpLiteral` cops
To avoid newly adding the warnings, which are frequently addressed. ac721c855203ac7570545c0e85fe086f8e94d94a 951383bd9afa4a71c17e56d1d4eb5866da851483 8a0f235fd3bd3f3c813fa7034c6d741831e55c3e c33c03e80cbe9f27274b45fe55f93bad3af988fb 424b2019830ea4c08e86ba9ff9600aa23a54cb4f
-rw-r--r--.rubocop.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index c076029f06..54dcaf80f9 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -179,6 +179,12 @@ Layout/TrailingWhitespace:
Style/UnneededPercentQ:
Enabled: true
+Lint/AmbiguousOperator:
+ Enabled: true
+
+Lint/AmbiguousRegexpLiteral:
+ Enabled: true
+
Lint/ErbNewArguments:
Enabled: true