Update msftidy logging for older modules

This commit is contained in:
adfoster-r7
2024-07-24 16:33:50 +01:00
parent c4fd2faa3b
commit ed5c959fab
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -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
+1
View File
@@ -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