We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b46386 commit 0e92b94Copy full SHA for 0e92b94
tool/jt.rb
@@ -1961,7 +1961,9 @@ def rubocop(*args)
1961
"GEM_PATH" => gem_home,
1962
"PATH" => "#{gem_home}/bin:#{ENV['PATH']}"
1963
}
1964
- if args.empty? or args.all? { |arg| arg.start_with?('-') }
+ if i = args.index('--specs')
1965
+ args[i..i] = %w[-c spec/ruby/.rubocop.yml spec/truffle]
1966
+ elsif args.empty? or args.all? { |arg| arg.start_with?('-') }
1967
args += RUBOCOP_INCLUDE_LIST
1968
end
1969
sh env, "ruby", "#{gem_home}/bin/rubocop", *args
@@ -2031,6 +2033,7 @@ def lint(*args)
2031
2033
check_dsl_usage unless args.delete '--no-build'
2032
2034
check_filename_length
2035
rubocop
2036
+ rubocop('--specs')
2037
sh "tool/lint.sh"
2038
checkstyle
2039
check_parser
0 commit comments