-
Notifications
You must be signed in to change notification settings - Fork 124
Fix lints and warnings accumulated in dartdoc #1635
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
Conversation
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.
Need to update the SDK constraint to >=2.0.0-dev.9
– when the new constants were introduced...
@@ -7,7 +7,7 @@ homepage: https://github.com/dart-lang/dartdoc | |||
# For development, recommend 1.25.0-dev.0.0 or higher to allow | |||
# dartanalyzer to work on dartdoc itself. | |||
environment: | |||
sdk: '>=1.23.0-dev.11.5 <2.0.0' | |||
sdk: '>=2.0.0-dev.9.0 <3.0.0' |
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.
👍
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.
This constraint is handy to know. Thanks!
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.
👍
@@ -7,7 +7,7 @@ homepage: https://github.com/dart-lang/dartdoc | |||
# For development, recommend 1.25.0-dev.0.0 or higher to allow | |||
# dartanalyzer to work on dartdoc itself. | |||
environment: | |||
sdk: '>=1.23.0-dev.11.5 <2.0.0' | |||
sdk: '>=2.0.0-dev.9.0 <3.0.0' |
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.
This constraint is handy to know. Thanks!
@@ -224,6 +221,7 @@ typedef int LotsAndLotsOfParameters(so, many, parameters, it, should, wrap, | |||
|
|||
/// This class is cool! | |||
class Cool { | |||
// ignore: missing_return | |||
Cool returnCool() {} |
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.
Aside: why not just return null
? In general, I'm curious why all the ignores and not just fixes?
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.
The test package is intended to be a bit strange, using outdated, error-prone and/or obsolete constructions in some places. So I don't want to accidentally make the test package too "clean".
I shouldn't be doing that anywhere outside testing/ though.
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.
Makes sense. Thanks!
Most are due to recent library changes, but the rest have just been building up in dartdoc for a long time. This cleans them up.