Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include LintMetadata in the LintResult #729

Merged
merged 3 commits into from
Aug 1, 2023
Merged

Conversation

aaomidi
Copy link
Contributor

@aaomidi aaomidi commented Jun 29, 2023

This reduces the need to do a lookback on what the lint was based on its name when all the user needs is the metadata.

This also allows the name field in the results to be eventually sunset.

@aaomidi aaomidi changed the title Include LintMetada in the LintResult Include LintMetadata in the LintResult Jun 29, 2023
Copy link
Member

@dadrian dadrian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand wanting this in code, but are we sure it needs to be output in JSON? Should it be a json:"-"?

@aaomidi
Copy link
Contributor Author

aaomidi commented Aug 1, 2023

I didn't really think about if we want it in JSON or not when writing this and was following the rest of the fields. No opinions on it either way and I'm happy to exclude it from JSON serialization.

I don't see harm in this being included though either as the metadata is effectively only a bunch of strings.

@dadrian
Copy link
Member

dadrian commented Aug 1, 2023

I think the JSON output would be extremely redundant when ran with ZCertificate if LintMetadata was included, so let's leave it out of the JSON.

@dadrian dadrian merged commit 624744d into zmap:master Aug 1, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants