Skip to content

Add auditable source-level rule suppression directives #3

Description

@devkyato

Problem

Relay 0.1.0 supports project-level rule enable/disable settings, but users cannot suppress one intentional construct near the relevant source without disabling the rule for the entire project.

Proposed direction

Design conservative source comments for C/C++ and Python that suppress one finding or one line while requiring a human-readable reason. Suppressions must be parsed as data and must never execute source.

Acceptance criteria

  • document syntax for C/C++ and Python
  • require or strongly encourage an auditable reason
  • keep deterministic output and exact line accounting
  • report malformed or unused suppressions
  • cover comments, strings, Unicode paths, and malformed files
  • add CLI/report visibility for applied suppressions
  • retain the existing file-size and recursion safety bounds

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    analyzerParser and static-analysis engineenhancementNew feature or request

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions