Skip to content

Add the ability to ignore lines depending on comments - #58656

Merged
jonahwilliams merged 4 commits into
flutter:masterfrom
pasindud:master
Jun 18, 2020
Merged

jonahwilliams merged 4 commits into
flutter:masterfrom
pasindud:master

Conversation

@pasindud

@pasindud pasindud commented Jun 4, 2020 •

Copy link
Copy Markdown
Contributor

Description

https://github.com/dart-lang/coverage - 0.14.0 added the ability to be able to ignore coverage depending on comments.

// coverage:ignore-line to ignore one line.
// coverage:ignore-start and // coverage:ignore-end to ignore range of lines inclusive.
// coverage:ignore-file to ignore the whole file.

Related Issues

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • I signed the [CLA].
  • I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
  • I read the [Tree Hygiene] wiki page, which explains my responsibilities.
  • I updated/added relevant documentation (doc comments with ///).
  • All existing and new tests are passing.
  • The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
  • I am willing to follow-up on review comments in a timely manner.

@fluttergithubbot fluttergithubbot added c: contributor-productivity Team-specific productivity, code health, technical debt. tool Affects the "flutter" command-line tool. See also t: labels. labels Jun 4, 2020
@fluttergithubbot

Copy link
Copy Markdown
Contributor

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@jonahwilliams
jonahwilliams self-requested a review June 4, 2020 03:31
@jonahwilliams

Copy link
Copy Markdown
Contributor

This will be easier to land after #58658 updates the versions (we do it in a weird, lockstep kind of way)

@jonahwilliams

Copy link
Copy Markdown
Contributor

@pasindud the version fixes have landed, you should be able to update and get this working now. Sorry for the delay!

@pasindud

Copy link
Copy Markdown
Contributor Author

No problem, I have sync'd the PR

Comment thread packages/flutter_tools/lib/src/test/coverage_collector.dart Outdated

@jonahwilliams jonahwilliams left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@jonahwilliams

Copy link
Copy Markdown
Contributor

Thanks @pasindud , sorry this took a while to get though

@jonahwilliams
jonahwilliams merged commit df02518 into flutter:master Jun 18, 2020
@pasindud

Copy link
Copy Markdown
Contributor Author

👍 Thanks for the help

jonahwilliams pushed a commit that referenced this pull request Jun 18, 2020
jonahwilliams pushed a commit that referenced this pull request Jun 19, 2020
zljj0818 pushed a commit to zljj0818/flutter that referenced this pull request Jun 22, 2020
https://github.com/dart-lang/coverage - 0.14.0 added the ability to be able to ignore coverage depending on comments.

// coverage:ignore-line to ignore one line.
// coverage:ignore-start and // coverage:ignore-end to ignore range of lines inclusive.
// coverage:ignore-file to ignore the whole file.
zljj0818 pushed a commit to zljj0818/flutter that referenced this pull request Jun 22, 2020
mingwandroid pushed a commit to mingwandroid/flutter that referenced this pull request Sep 6, 2020
https://github.com/dart-lang/coverage - 0.14.0 added the ability to be able to ignore coverage depending on comments.

// coverage:ignore-line to ignore one line.
// coverage:ignore-start and // coverage:ignore-end to ignore range of lines inclusive.
// coverage:ignore-file to ignore the whole file.
mingwandroid pushed a commit to mingwandroid/flutter that referenced this pull request Sep 6, 2020
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

c: contributor-productivity Team-specific productivity, code health, technical debt. tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants