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

[FIX] Refactor no-namespace rule #257

Merged
merged 2 commits into from
Dec 21, 2018
Merged

Conversation

armano2
Copy link
Contributor

@armano2 armano2 commented Dec 21, 2018

This PR changes logic in no-namespace rule and fixing some annoying bugs

  • improve definition file detection
  • migrate messages to messageId
  • correct reporting namespace Foo.Bar {}
  • add unit tests for isDefinitionFile & isTypescript
  • add tests for allowDefinitionFiles
  • I’ve added tests for my changes

- improve definition file detection
- migrate messages to messageId
- correct reporting `namespace Foo.Bar {}`
- add unit tests for isDefinitionFile & isTypescript
- add tests for allowDefinitionFiles
Copy link
Owner

@bradzacher bradzacher left a comment

Choose a reason for hiding this comment

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

lgtm

@bradzacher bradzacher merged commit a3b0a73 into bradzacher:master Dec 21, 2018
@armano2 armano2 deleted the no-namespace branch December 21, 2018 10:18
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.

2 participants