Skip to content

fix scope issues identified by new lint pass - #986

Merged
williballenthin merged 2 commits into
masterfrom
fix-scopes
Jan 29, 2025
Merged

fix scope issues identified by new lint pass#986
williballenthin merged 2 commits into
masterfrom
fix-scopes

Conversation

@williballenthin

@williballenthin williballenthin commented Jan 29, 2025

Copy link
Copy Markdown
Collaborator

ref mandiant/capa#2579

Most of these are obvious. But I did make one set of debatable changes: when a rule can have a really small scope, but we had an optional block to provide more context and therefore has a loose scope, i tightened the scope and removed the optional block. for example:

image

Otherwise, it gets kinda weird when a rule really just describes a single API call but has to have span scope, which then requires the rules that reference it to also have that looser scope.

@mike-hunhoff mike-hunhoff left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This looks great, thank you! I think removing the optional statements is worth the trade offs. LGTM 🚀

@williballenthin
williballenthin merged commit 0ea3394 into master Jan 29, 2025
@williballenthin
williballenthin deleted the fix-scopes branch January 29, 2025 17:54
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.

3 participants