Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
feat: add dart_frog_lint package #559
base: main
Are you sure you want to change the base?
feat: add dart_frog_lint package #559
Changes from all commits
3429f02
b0b95da
df813c9
f7a066c
d6b1b18
6e6b78d
d24824f
6c5f46f
82b7ae2
81b3f4a
7c2a908
b85d39f
8ed36fa
6dd53eb
74a424f
02e9f95
1f8ee19
baa902e
65fa934
3a9120e
a31a015
2f339d9
3a3161e
0af05fe
b0114d9
513d9d8
4d55491
28bbbcc
c236835
9bebc8b
2784ae7
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently we are not testing that the lint rules
dart_frog_entrypoint
works as expected. In other words, if theDartFrogEntrypoint
implementation is altered to have an incorrect behaviour or no behaviour at all, the CI will not complain about it.We might need another testing strategy for this lint rule? Since we can't really have two
main.dart
under the same directory?In here we're using an actual test alongside the
example/
testing (note that is very WIP). Despite this, I would still likeexample/
to include examples of the lint rule failing and being catched byexpect_lint
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about changing
filesToAnalyze
to:Then we could have example/dart_frog_entrypoint/whatever.dart with expect_lint in it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That sounds good to me! However, if someone has a route named
dart_frog_entrypoint/index.dart
would they get the lint warning? Is there a way to only allowdart_frog_entrypoint/**.dart
as a file to analyse only during testing?