Skip to content

Commit

Permalink
Merge pull request #606 from rapid7/fix/rubocop-issues
Browse files Browse the repository at this point in the history
Fix rubocop formatting complaints
  • Loading branch information
adungo-r7 authored Feb 5, 2024
2 parents d23c69d + 5f488ce commit 71affe7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
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
4 changes: 2 additions & 2 deletions xml/favicons.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2503,7 +2503,7 @@
<param pos="0" name="service.product" value="SYNAPSE Medical Platform"/>
<param pos="0" name="service.certainty" value="0.5"/>
</fingerprint>

<fingerprint pattern="^6daa3eca79787964627179fd5a1c724d">
<description>b-rayZ</description>
<example>6daa3eca79787964627179fd5a1c724d</example>
Expand Down Expand Up @@ -2552,4 +2552,4 @@
<param pos="0" name="service.certainty" value="0.5"/>
</fingerprint>

</fingerprints>
</fingerprints>
4 changes: 1 addition & 3 deletions xml/telnet_banners.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2257,9 +2257,9 @@
********************************************
* Welcome to SMG1016M *
********************************************
foo.bar.baz login:
-->

<example hw.product="SMG1016M" host.name="foo.bar.baz" _encoding="base64">
DQ0KDQoNKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioNCg0qI
CAgICAgICAgICAgV2VsY29tZSB0byBTTUcxMDE2TSAgICAgICAgICAgKg0KDSoqKioqKioqKi
Expand Down Expand Up @@ -2299,12 +2299,10 @@
<description>Baxter SIGMA Spectrum Infusion System with Wireless Battery Module</description>
<!--
Welcome to the SIGMA Spectrum Diagnostic Terminal
Wireless Battery Module (802.11a/b/g/n)
MAC Address: 00-40-9d-12-34-56 SW: 20 D29
Sigma Spectrum SN: 1234567 SW: v8.00.01
Radio up since: Fri Mar 1 03:14:24 2019
login:
-->

Expand Down

0 comments on commit 71affe7

Please sign in to comment.