Skip to content

Commit

Permalink
Please rubocop
Browse files Browse the repository at this point in the history
This should fix the following issue:

```
== bin/recog_cleanup ==
C: 12: 35: [Correctable] Layout/ExtraSpacing: Unnecessary spacing detected.

14 files inspected, 1 offense detected, 1 offense autocorrectable
Error: Process completed with exit code 1.
```
  • Loading branch information
jvoisin committed Jan 8, 2024
1 parent f289c62 commit 163ccbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/recog_cleanup
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Dir["#{File.expand_path(File.join(File.dirname(__FILE__), '..', 'xml'))}/*.xml"]
data = File.read(f)
.gsub(/\s+$/, '') # Trailing whitespace and empty lines
.gsub('</fingerprint>', "</fingerprint>\n") # Every fingerprint should have an empty line after it
.gsub('-->', "-->\n") # Every comment should have an empty line after it
.gsub('-->', "-->\n") # Every comment should have an empty line after it

File.write(f, data)
end

0 comments on commit 163ccbb

Please sign in to comment.