Update msftidy logging for older modules
This commit is contained in:
@@ -72,8 +72,8 @@ RSpec.describe RuboCopRunner do
|
||||
expect(@status).to be_zero
|
||||
end
|
||||
|
||||
it 'contains no warnings' do
|
||||
expect(@stdout).to be_empty
|
||||
it 'contains a status message' do
|
||||
expect(@stdout).to match /Rubocop not required for older modules skipping/
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -55,6 +55,7 @@ class RuboCopRunner
|
||||
# @return [Integer] RuboCop::CLI status code
|
||||
def run(full_filepath, options = {})
|
||||
unless requires_rubocop?(full_filepath)
|
||||
puts "#{full_filepath} - [*] Rubocop not required for older modules skipping. If making a large update - run rubocop #{"rubocop -a #{full_filepath}".yellow} and verify all issues are resolved"
|
||||
return RuboCop::CLI::STATUS_SUCCESS
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user