Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to Lint subregions of a file #23

Closed
aarondaub opened this issue May 20, 2015 · 1 comment
Closed

Add ability to Lint subregions of a file #23

aarondaub opened this issue May 20, 2015 · 1 comment

Comments

@aarondaub
Copy link

A Linter should be able to create a sub-Linter when we enter a region of code that has comment modifiers applied to it (e.g. // swift-lint:enable-rule).

Suggested implementation hints: Linter takes a File as an initializer, we can create a File with a contents String. If a Linter does a pass over that string to find each sub-region it can map those sub-regions into a [Linter] and then flatMap styleViolations over the resultant [Linter].

@jpsim
Copy link
Collaborator

jpsim commented Aug 30, 2015

Closing as a duplicate of #4.

@jpsim jpsim closed this as completed Aug 30, 2015
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

No branches or pull requests

2 participants