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

chore: api snippet formatting #92

Merged
merged 6 commits into from
Jan 11, 2024
Merged

chore: api snippet formatting #92

merged 6 commits into from
Jan 11, 2024

Conversation

pgautier404
Copy link
Contributor

The dart format command is enforcing formatting that isn't compatible with the API snippet parser for the API docs examples file. For the parser, I need all my method declarations to be either one or two lines but not both. The dart formatter wants them to be wrapped contingent on line length so keeps mixing 1- and 2-line signatures in the same file. The dart format command doesn't use an exclude list like dart analyze so I'm excluding the file by using find instead of letting dart format find the relevant files itself.

dart format and the API snippet parser haver incompatible requirements and I'm trying to satisfy both
The dart format utility keeps munging my api examples file such that it iss incompatible with the API snippet parser, so am using find to gather dart files to format and excluding the snippets explicitly.
@pgautier404 pgautier404 merged commit fbbd3d3 into main Jan 11, 2024
2 checks passed
@pgautier404 pgautier404 deleted the api-snippet-formatting branch January 11, 2024 00:39
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.

None yet

2 participants