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

Extract output format to a class structure and add CLI parameter #198

Merged
merged 11 commits into from
Nov 13, 2023

Conversation

kuhnroyal
Copy link
Contributor

  • add CLI format parameter with currently only one option (default)
  • implement default format as class
  • refactor rendering and optimise relative path & fatal handling
  • only sort lints if the output format requires this (future JSON format does not need this)

I intend to create another PR with the Dart JSON output as follow up, but splitting this in a separate PR for easier review.
No test changes, output stays the same for now.

* add CLI format parameter with currently only one option (default)
* implement default format as class
* refactor rendering and optimise relative path & fatal handling
* only sort lints if the output format requires this (future JSON format does not need this)
@vercel
Copy link

vercel bot commented Oct 20, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
custom-lint-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 2, 2023 11:41pm

@kuhnroyal
Copy link
Contributor Author

I added the JSON output format to this PR. With the class separation it is pretty clean and should be fine to review.

@rrousselGit
Copy link
Collaborator

Overall LGTM, with some minor API/readability issues

@kuhnroyal
Copy link
Contributor Author

Should be good to go

@rrousselGit
Copy link
Collaborator

Great, thanks!

@rrousselGit rrousselGit merged commit e3d97eb into invertase:main Nov 13, 2023
6 checks passed
oskar-zeinomahmalat-sonarsource pushed a commit to oskar-zeinomahmalat-sonarsource/dart_custom_lint that referenced this pull request Dec 3, 2024
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