Skip to content

Remove global state from linter library - #1794

Merged
Nick Guerrera (nguerrera) merged 3 commits into
microsoft:mainfrom
nguerrera:no-global-linter
Apr 5, 2023
Merged

Remove global state from linter library#1794
Nick Guerrera (nguerrera) merged 3 commits into
microsoft:mainfrom
nguerrera:no-global-linter

Conversation

@nguerrera

Copy link
Copy Markdown
Contributor

This caused issues depending on order things were run in a process. For example, it was causing tests to fail in test explorer when another libs tests ran first.

Breaking change: This removes the ability to enable a rule from another library on a LibraryLinter.

This caused issues depending on order things were run in a process. For
example, it was causing tests to fail in test explorer when another libs
tests ran first.

**Breaking change**: This removes the ability to enable a rule from another
library on a LibraryLinter.
@github-actions

github-actions Bot commented Apr 5, 2023

Copy link
Copy Markdown
Contributor

Changes in this PR will be published to the following url to try(check status of TypeSpec Pull Request Try It pipeline for publish status):
Playground: https://cadlplayground.z22.web.core.windows.net/prs/1794/

Website: https://cadlwebsite.z1.web.core.windows.net/prs/1794/

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple enough to fix. I'll add a note on the built-in linter issue about this PR.

Should we update the docs also to say you cannot enable another linter rules anymore.

@nguerrera

Copy link
Copy Markdown
Contributor Author

Thanks, yeah, I'll update the docs.

@nguerrera
Nick Guerrera (nguerrera) merged commit 855a352 into microsoft:main Apr 5, 2023
@nguerrera
Nick Guerrera (nguerrera) deleted the no-global-linter branch April 5, 2023 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants