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

static analysis: collect basic information about archive file #993

Merged
merged 5 commits into from
Jan 16, 2024

Conversation

maxfisher-g
Copy link
Contributor

This PR is a follow up to #978 and part of #959.

Static analysis now collects extra metadata about the archive file (file size and detected type, as well as SHA256 introduced in #978), and stores them in a new ArchiveResult struct which is part of the static analysis results.

To implement this, an Option pattern is introduced to the basicdata.Analyze function so that it can be reused for archive analysis, while also skipping over the line length analysis which is not relevant for binary files.

For now, this new data is not written to the results JSON file and so not externally observable. This final step will be introduced in a future PR alongside a schema update.

@maxfisher-g maxfisher-g enabled auto-merge (squash) January 16, 2024 03:52
@maxfisher-g maxfisher-g merged commit ae8550a into main Jan 16, 2024
11 checks passed
@maxfisher-g maxfisher-g deleted the add_archive_hash branch January 16, 2024 03:58
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.

2 participants