Skip to content

lint: MissingExampleOffset now fires after fix, 5 rules need offsets #3058

Description

@williballenthin

Commit ba29e3f in #3057 fixed MissingExampleOffset to read scopes.static instead of the obsolete scope key. The lint was previously dead code and never triggered. Now it correctly flags 5 rules with function or basic block scope whose examples lack an offset (hash:0xADDRESS format):

  • attach BPF to socket on Linux (basic block) — sample available
  • log keystrokes via direct input (function) — sample available
  • open RecentDocs registry key (basic block) — sample not in tests/data
  • persist via ShellServiceObjectDelayLoad registry key (function) — sample not in tests/data
  • register raw input devices (basic block) — sample not in tests/data

Two rules can be fixed immediately (samples in tests/data). The other three need samples sourced before offsets can be determined.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions