summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyrylo Silin <silin@kyrylo.org>2018-10-20 00:35:10 +0800
committerGitHub <noreply@github.com>2018-10-20 00:35:10 +0800
commitd37d0c0489f52659238a04ec3e9e7906999d1269 (patch)
treec8b45bc6b6062890824c390f6137a726886c36ce
parent5f18796595105133b2424348e01821a24ed6dbe5 (diff)
parent269808c6ba87a21dd68a2a4de781a39d73f57afa (diff)
downloadpry-d37d0c0489f52659238a04ec3e9e7906999d1269.tar.gz
Merge pull request #1816 from pry/rubocop-style-numeric-predicate
rubocop: disable the Style/NumericPredicate cop
-rw-r--r--.rubocop.yml3
-rw-r--r--.rubocop_todo.yml16
2 files changed, 3 insertions, 16 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index cc32da4b..280287d1 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -1 +1,4 @@
inherit_from: .rubocop_todo.yml
+
+Style/NumericPredicate:
+ Enabled: false
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index 69c7672c..8537cc0c 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -1257,22 +1257,6 @@ Style/NumericLiteralPrefix:
- 'spec/history_spec.rb'
- 'spec/pryrc_spec.rb'
-# Offense count: 9
-# Cop supports --auto-correct.
-# Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
-# SupportedStyles: predicate, comparison
-Style/NumericPredicate:
- Exclude:
- - 'spec/**/*'
- - 'lib/pry/command.rb'
- - 'lib/pry/commands/code_collector.rb'
- - 'lib/pry/commands/gem_list.rb'
- - 'lib/pry/commands/gist.rb'
- - 'lib/pry/commands/nesting.rb'
- - 'lib/pry/history_array.rb'
- - 'lib/pry/indent.rb'
- - 'lib/pry/testable/evalable.rb'
-
# Offense count: 31
# Cop supports --auto-correct.
Style/ParallelAssignment: