Skip to content

Commit

Permalink
Merge pull request #641 from ghoneycutt/ignore_trailing_whitespace_in…
Browse files Browse the repository at this point in the history
…_changelog

Ignore trailing whitespace in CHANGELOG.md since it is auto generated.
  • Loading branch information
bastelfreak authored Feb 16, 2020
2 parents d23eef7 + 402dfdc commit 8766181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moduleroot/Rakefile.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace :check do
desc 'Check for trailing whitespace'
task :trailing_whitespace do
Dir.glob('**/*.md', File::FNM_DOTMATCH).sort.each do |filename|
next if filename =~ %r{^((modules|acceptance|\.?vendor|spec/fixtures|pkg)/|REFERENCE.md)}
next if filename =~ %r{^((modules|acceptance|\.?vendor|spec/fixtures|pkg)/|REFERENCE.md|CHANGELOG.md)}
File.foreach(filename).each_with_index do |line, index|
if line =~ %r{\s\n$}
puts "#{filename} has trailing whitespace on line #{index + 1}"
Expand Down

0 comments on commit 8766181

Please sign in to comment.