Skip to content

Warn if the user did not specify a language on the fenced code block #2559

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

Merged
merged 5 commits into from
Mar 9, 2021

Conversation

parlough
Copy link
Member

@parlough parlough commented Mar 7, 2021

Warn users when they don't specify a language after the ``` or ~~~ in a fenced code block.

@google-cla google-cla bot added the cla: yes Google CLA check succeeded. label Mar 7, 2021
@parlough parlough force-pushed the misc/warn-on-no-language branch from 5ea9e62 to cc04427 Compare March 7, 2021 22:04
@coveralls
Copy link

coveralls commented Mar 8, 2021

Coverage Status

Coverage increased (+0.02%) to 91.749% when pulling 65e2759 on parlough:misc/warn-on-no-language into 48b0149 on dart-lang:master.

@parlough
Copy link
Member Author

parlough commented Mar 8, 2021

As a note, I will follow up on the SDK repo with fixes for the few warnings this currently produces there.

@parlough parlough requested a review from jcollins-g March 9, 2021 02:44
Copy link
Contributor

@jcollins-g jcollins-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved; we'll disable this warning if it turns out to be too much.

Out of curiosity, have you used the compare-flutter-warnings grinder to get a sense for how many new warnings this introduces?

@jcollins-g jcollins-g merged commit 5eb8c9a into dart-lang:master Mar 9, 2021
dart-bot pushed a commit to dart-lang/sdk that referenced this pull request Mar 10, 2021
A warning to catch these situations was added in dart-lang/dartdoc#2559 so this adds tags to the code blocks in the SDK which were missing them as caught by the new warning.

Change-Id: Iaadbb6e1b811ecac3b95a6c6f64cb689d2eb2d26
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/190200
Reviewed-by: Janice Collins <[email protected]>
Reviewed-by: Lasse R.H. Nielsen <[email protected]>
Commit-Queue: Janice Collins <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google CLA check succeeded.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants