Skip to content

refactor(lint): modularize json linters #64

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

Closed
wants to merge 11 commits into from
Closed

refactor(lint): modularize json linters #64

wants to merge 11 commits into from

Conversation

barrett-ruth
Copy link
Contributor

refactor linters using json to use "from_json"

still wip

prep for "guard-collection"

@glepnir
Copy link
Member

glepnir commented Aug 15, 2023

I think can output_fmt rename to parser ?

@barrett-ruth barrett-ruth marked this pull request as ready for review August 15, 2023 16:47
@barrett-ruth
Copy link
Contributor Author

Ready for review.

Code actually works very nicely. All linters have been refactored - only 20 lines max!

Seeking advice in file guard/lint.lua - how to organize functions from_regex and from_json and not repeating code.

Should the file be extracted to lua/guard/util.lua? Or is it fine and wait for guard-collection before putting too much work in?

@glepnir
Copy link
Member

glepnir commented Aug 16, 2023

The unified conversion interface looks good. But git log can be a bit confusing
Better to use git rebase.

@barrett-ruth
Copy link
Contributor Author

I'm bad at git lol. Closing this and re-opening with cleaner git history.

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.

3 participants