Skip to content

Review functionality that should be extracted from the typespec suppression tool into core libraries #5030

Description

@catalinaperalta

The typespec-suppression tool provides a lot of functionality that might be useful to ship directly from core typespec libraries. Some examples of potential candidates to add to typespec:

  • enumerate suppressions
  • identify the declaration scope containing a directive
  • read linter disables from config
  • ast helpers

Helpers and functions in the typespec-suppression tool should be analyzed and a proposal developed as to what functionality would be useful in typespec directly. typespec suppression code: https://github.com/catalinaperalta/azure-rest-api-specs/tree/4043444489b4d384858c2a7a01e123a957bd08ae/eng/tools/typespec-suppressions

Activity

  1. timotheeguerin commented on Jul 24, 2026

    @timotheeguerin
    Member
    1. enumerate suppression we have createSuppressionTracker which is unfortunatelly not exported today but we could easily add to /ast
    2. ast helpers: I think with 1. we shouldn't need any more
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

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions