Page MenuHomePhabricator

Connect the new ruleset repository to the linter tool
Closed, ResolvedPublic2 Estimated Story Points

Description

Once T425625 concludes, reconfigure the linter tool to use the new repository as a source of rules:

  • Connect the new ruleset repository to the linter tool without creating an NPM package (e.g., via repository loading in npm)
  • Remove the ruleset from the linter tool and only use rules defined in the separate repository
  • Clean up the linter tool repository so that it only contains the code related to its use as a web-based UI.
NOTE: Sized as if we do not need to account for versioning. If versioning is required, we will pause, rescope, and come back.

Event Timeline

HCoplin-WMF set the point value for this task to 2.
Mooeypoo updated the task description. (Show Details)

Merge request: https://gitlab.wikimedia.org/toolforge-repos/wmf-openapi-linter/-/merge_requests/22

The lint rules repo is here: https://gitlab.wikimedia.org/repos/ci-tools/wikimedia-spectral-ruleset
We are, for the moment, exposing the /dist folder so that the toolforge lint tool can consume the rules without it being an npm package yet. When we start planning to release as a package, we will need to set up proper versioning *and* re-add the /dist folder to gitignore, as it should basically be only available on build of the npm package. This aspect of the work is documented in the linter rules repo.

Marking as resolved as part of sprint close out.