8000 [go_router] Applies flutter package lints by chunhtai · Pull Request #1017 · flutter/packages · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[go_router] Applies flutter package lints #1017

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 3 commits into from
Mar 4, 2022

Conversation

chunhtai
Copy link
Contributor
@chunhtai chunhtai commented Mar 2, 2022

fixes flutter/flutter#98711

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/packages repo does use dart format.)
  • I signed the CLA.
  • The title of the PR starts with the name of the package surrounded by square brackets, e.g. [shared_preferences]
  • I listed at least one issue that this PR fixes in the description above.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
  • I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@chunhtai chunhtai requested a review from stuartmorgan-g March 3, 2022 00:02
@chunhtai chunhtai mentioned this pull request Mar 4, 2022
11 tasks
@stuartmorgan-g stuartmorgan-g changed the title Applies flutter package lints to go_router [go_router] Applies flutter package lints Mar 4, 2022
Copy link
Contributor
@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

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

LGTM with one nit (and one question)

@@ -1,6 +1,10 @@
## 3.0.4

- Applies flutter package lints.
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure "flutter package lints" really describes what's happening here; the lints aren't coming from a package (and not flutter_lints which is what this sort of sounds like). How about "Updates code for stricter analysis options."

@@ -7,6 +7,8 @@ import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';

import 'src/auth.dart';
import 'src/data/author.dart';
import 'src/data/book.dart';
Copy link
Contributor

Choose a reason for hiding this comment

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

Why were new imports needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Something like this

var abc = getAuthor();

does not require importing package that contains the return type.

@fluttergithubbot fluttergithubbot merged commit 24d8322 into flutter:main Mar 4, 2022
stuartmorgan-g pushed a commit that referenced this pull request Oct 31, 2024
Object.operator== takes an `Object`, and no Dart runtime passes a `null` value to an `==` implementation. SvgTheme's implementation should not have an expanded parameter type of `dynamic`.

See flutter/flutter#117838 for the overarching issue for Flutter.

Co-authored-by: Dan Field <dnfield@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[go_router] go_router should follow flutter/package lint
3 participants
0