support unnamed exports
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 6.2k
- Forks
- 726
- Avg merge
- 11d 11h
- Merged PRs (30d)
- 7
Description
Taking a peek at the extractors it looks like `capa` assumes exports are named, but what about unnamed exports (by ordinal only)? We support matching imports by ordinal, should we also support matching exports by ordinal?
My vote is yes for completeness e.g. `- export: #1`.
We don't mention anything about this in the rule format documentation so I'm unsure without doing additional digging.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the extractors and the existing import-matching behavior for ordinal-only references, then inspect the rule format documentation. Determine whether ordinal-only exports should use syntax such as `- export: #1`; done means the behavior is supported consistently and the rule format documentation explains it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- documentation, reverse-engineering
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100