Skip to content

Commit fdf8d99

Browse files
committed
🔨 Better rake tasks for development, again
1 parent 661dc80 commit fdf8d99

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

Rakefile

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -98,23 +98,16 @@ rescue LoadError
9898
end
9999
end
100100

101+
# Setup RuboCop-LTS
101102
begin
102-
require "rubocop/gradual/rake_task"
103-
104-
RuboCop::Gradual::RakeTask.new
103+
require "rubocop/lts"
105104

105+
Rubocop::Lts.install_tasks
106106
defaults << "rubocop_gradual"
107-
108-
namespace(:rubocop_gradual) do
109-
desc("dogfood internal rubocop configs")
110-
task(:dogfood) do
111-
%x(bin/rubocop-gradual -c .rubocop-dogfood.yml)
112-
end
113-
end
114107
rescue LoadError
115108
desc("(stub) rubocop_gradual is unavailable")
116109
task(:rubocop_gradual) do
117-
warn("NOTE: rubocop-gradual isn't installed, or is disabled for #{RUBY_VERSION} in the current environment")
110+
warn("NOTE: rubocop-lts isn't installed, or is disabled for #{RUBY_VERSION} in the current environment")
118111
end
119112
end
120113

0 commit comments

Comments
 (0)