diff --git a/config/default.yml b/config/default.yml index e097df3120..323c5408ba 100644 --- a/config/default.yml +++ b/config/default.yml @@ -217,8 +217,7 @@ Performance/RedundantSortBlock: Performance/RedundantSplitRegexpArgument: Description: 'This cop identifies places where `split` argument can be replaced from a deterministic regexp to a string.' - SafeAutoCorrect: true - Enabled: true + Enabled: pending VersionAdded: '1.9' Performance/RedundantStringChars: diff --git a/docs/modules/ROOT/pages/cops_performance.adoc b/docs/modules/ROOT/pages/cops_performance.adoc index f42382231e..027b6ac307 100644 --- a/docs/modules/ROOT/pages/cops_performance.adoc +++ b/docs/modules/ROOT/pages/cops_performance.adoc @@ -1307,7 +1307,7 @@ array.sort |=== | Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged -| Enabled +| Pending | Yes | Yes | 1.9 diff --git a/spec/rubocop/cop/performance/redundant_split_regexp_argument_spec.rb b/spec/rubocop/cop/performance/redundant_split_regexp_argument_spec.rb index 743cd30d6c..b2353895ae 100644 --- a/spec/rubocop/cop/performance/redundant_split_regexp_argument_spec.rb +++ b/spec/rubocop/cop/performance/redundant_split_regexp_argument_spec.rb @@ -13,6 +13,7 @@ it 'accepts when split does not receive a deterministic regexp' do expect_no_offenses("'a,b,c'.split(/,+/)") + expect_no_offenses("'a,b,c'.split(/\./)") end it 'registers an offense when the method is split' do