projectdiscovery / wappalyzergo

A high performance go implementation of Wappalyzer Technology Detection Library
MIT License
698 stars 107 forks source link

update-fingerprints: pretty print + sort json #38

Closed derekperkins closed 1 year ago

derekperkins commented 1 year ago

As it stands today, the weekly commit updating fingerprints_data.json was all on a single line, with randomly sorted keys, making it near impossible to diff. By sorting and using MarshalIndent, it will be much easier to see what changes happen each week and to do reasonable git blame.

As for the implementation, jsoniter wasn't indenting properly, and didn't otherwise seem to provide any advantages over the stdlib, so I replaced it. Additionally, I added error checks that were being ignored before.

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

github-advanced-security[bot] commented 1 year ago

You have successfully added a new SonarCloud configuration ``. As part of the setup process, we have scanned this repository and found no existing alerts. In the future, you will see all code scanning alerts on the repository Security tab.

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication