Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Fix: prefer-namespace-keyword false positive (fixes #127) #132

Merged
merged 1 commit into from
Nov 1, 2018

Conversation

mysticatea
Copy link
Contributor

@mysticatea mysticatea commented Jun 5, 2018

Fixes #127.

This PR fixes false positive of prefer-namespace-keyword token.

The new logic is more robust because it's token-based instead of text-based. That rule reports module keyword to suggest a use of namespace keyword, so the new logic finds module keyword token. Previously, it reported the declaration if namespace keyword was not found, even if module keyword was not found.

@JamesHenry JamesHenry merged commit 32193e6 into bradzacher:master Nov 1, 2018
@JamesHenry
Copy link
Collaborator

Thank you @mysticatea!

@mysticatea mysticatea deleted the issue127 branch November 1, 2018 05:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

prefer-namespace-keyword triggers on "declare global {"
3 participants