mandiant / mandiant/capa-rules

CI: lint max length of bytes feature

Open
#747 0 comments 1 reaction 0 assignees View on GitHub
CI documentation enhancement
Dominant language
No language data
Stars
736
Forks
245
Avg merge
4d 53m
Merged PRs (30d)
2

Description

capa enforces a max length for `bytes` features (see https://github.com/mandiant/capa/blob/7c4a46b7b4235849515bb4455c9788f324858310/capa/features/common.py#L27). Develop a lint to check this max length is not exceeded in capa rules to avoid confusion and mismatches.

see https://github.com/mandiant/capa-rules/pull/743#discussion_r1160102876

Contributor guide

Open the contributing guide

Research direction

Start with the referenced capa/features/common.py definition of the maximum bytes-feature length, then read the linked capa-rules pull request discussion for the expected lint behavior. Trace where capa rules are checked in CI and add coverage showing that overlength bytes features are rejected while valid ones pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ci-cd, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.