-
Notifications
You must be signed in to change notification settings - Fork 71
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: custom linting (more than 80 lines for formatting) #21
Comments
While I personally would not recommend it, as Dart and the IDE tooling for the language always come with the Sadly there is currently no way to do this using the What do you think @felangel? |
Would greatly appreciate a feature to allow a custom line length passed to the dart/flutter format command. Something like: jobs:
verify_and_test:
name: Verify and Test
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1
with:
working_directory: packages/my_package
line_length: 100 # adding this option
min_coverage: 100 |
I forked and added the feature. My branch seems to serve me well in my private project. |
We're also using an other line length. Our default is 120 and so we're excluding generated files from formatting. Our formatting command is: find . -name "*.dart" ! -name "*.freezed.dart" ! -name "*.config.dart" ! -name "*.g.dart" ! -path '*/generated/*' | tr '\n' ' ' | xargs flutter format -l 120 --set-exit-if-changed Maybe something like this could also be added as an option? |
Any update on this issue? |
It would be nice for the build not to fail if the code is not formatted like the Dart linter suggests.
Is there any way to change this?
The text was updated successfully, but these errors were encountered: