File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -98,23 +98,16 @@ rescue LoadError
9898 end
9999end
100100
101+ # Setup RuboCop-LTS
101102begin
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
114107rescue 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
119112end
120113
You can’t perform that action at this time.
0 commit comments