Skip to content

Commit 904f263

Browse files
committed
Remove RuboCop::RSpec::Language::NodePattern
1 parent e6b53cb commit 904f263

File tree

7 files changed

+5
-56
lines changed

7 files changed

+5
-56
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
## 2.28.0 (2024-03-30)
66

7+
- Remove `RuboCop::RSpec::Language::NodePattern`. ([@ydah])
8+
9+
## 2.28.0 (2024-03-30)
10+
711
- Extract RSpec Rails cops to a separate repository, [`rubocop-rspec_rails`](https://github.com/rubocop/rubocop-rspec_rails). The `rubocop-rspec_rails` repository is a dependency of `rubocop-rspec` and the cops related to rspec-rails are aliased (`RSpec/Rails/Foo` == `RSpecRails/Foo`) until v3.0 is released, so the change will be invisible to users until then. ([@ydah])
812

913
## 2.27.1 (2024-03-03)

lib/rubocop-rspec.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,11 @@
99

1010
require_relative 'rubocop/rspec'
1111
require_relative 'rubocop/rspec/inject'
12-
require_relative 'rubocop/rspec/language/node_pattern'
12+
require_relative 'rubocop/rspec/language'
1313
require_relative 'rubocop/rspec/node'
1414
require_relative 'rubocop/rspec/version'
1515
require_relative 'rubocop/rspec/wording'
1616

17-
# Dependent on `RuboCop::RSpec::Language::NodePattern`.
18-
require_relative 'rubocop/rspec/language'
19-
2017
require_relative 'rubocop/cop/rspec/mixin/file_help'
2118
require_relative 'rubocop/cop/rspec/mixin/final_end_location'
2219
require_relative 'rubocop/cop/rspec/mixin/inside_example_group'

lib/rubocop/cop/rspec/base.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ module RSpec
66
# @abstract parent class to RSpec cops
77
class Base < ::RuboCop::Cop::Base
88
include RuboCop::RSpec::Language
9-
extend RuboCop::RSpec::Language::NodePattern
109

1110
exclude_from_registry
1211

lib/rubocop/cop/rspec/remove_const.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ module RSpec
1717
#
1818
class RemoveConst < Base
1919
include RuboCop::RSpec::Language
20-
extend RuboCop::RSpec::Language::NodePattern
2120

2221
MSG = 'Do not use remove_const in specs. ' \
2322
'Consider using e.g. `stub_const`.'

lib/rubocop/rspec/concept.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ module RSpec
55
# Wrapper for RSpec DSL methods
66
class Concept
77
extend RuboCop::NodePattern::Macros
8-
extend Language::NodePattern
98
include Language
109

1110
def initialize(node)

lib/rubocop/rspec/language.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ module RSpec
1313
# using the configured aliases.
1414
module Language
1515
extend RuboCop::NodePattern::Macros
16-
extend NodePattern
1716

1817
class << self
1918
attr_accessor :config

lib/rubocop/rspec/language/node_pattern.rb

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)