Skip to content

Conversation

@ueman
Copy link
Collaborator

@ueman ueman commented Mar 15, 2021

📜 Description

I moved the class SentryFlutterWeb from src/sentry_flutter_web.dart to sentry_flutter_web.dart.
I also enabled this lint to prevent this kind of errors in
the future.

I'm not sure if this is considered a breaking change or not. Technically it is, because the imports changed I guess.

💡 Motivation and Context

See #314

💚 How did you test it?

I've enabled the lint and it didn't show any warnings.

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • I updated the docs if needed
  • All tests passing
  • No breaking changes

🔮 Next steps

@codecov-io
Copy link

codecov-io commented Mar 15, 2021

Codecov Report

Merging #358 (a6a3e53) into main (9c16664) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #358   +/-   ##
=======================================
  Coverage   89.79%   89.79%           
=======================================
  Files          51       51           
  Lines        1636     1636           
=======================================
  Hits         1469     1469           
  Misses        167      167           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9c16664...a6a3e53. Read the comment docs.

@ueman ueman marked this pull request as ready for review March 15, 2021 07:15
rules:
prefer_relative_imports: true
unnecessary_brace_in_string_interps: true
implementation_imports: true
Copy link
Contributor

@marandaneto marandaneto Mar 15, 2021

Choose a reason for hiding this comment

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

currently, we're using package:pedantic, is there a more aggressive solution? often I see us enabling new rules that should be avoided in the 1st place :D (not for this PR though)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

As per https://dart-lang.github.io/linter/lints/ there are three official rule sets: pedantic, effective_dart and flutter.
There's also https://pub.dev/packages/lint which describes itself as very strict.

Copy link
Contributor

Choose a reason for hiding this comment

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

thanks, I'll have a look at this one (lint) later this week.

CHANGELOG.md Outdated
* Fix: Multiple FlutterError.onError calls in FlutterErrorIntegration (#345)
* Fix: Pass hint to EventProcessors (#356)
* Fix: EventProcessors were not dropping events when returning null (#353)
* Fix: Plugin Registrant class moved to barrel file (#314)
Copy link
Contributor

Choose a reason for hiding this comment

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

by Danger, requires PRs id

@marandaneto
Copy link
Contributor

I'm not sure if this is considered a breaking change or not. Technically it is, because the imports changed I guess.

theoretically, no as the import as code generated right, but technically yes, mmm, we could take the same approach as https://github.com/getsentry/sentry-dart/pull/357/files#r594101972
adding a break changes section and explaining what to do shortly.
we are in a pre-release stage as well, so it'd be fine.

Copy link
Contributor

@marandaneto marandaneto left a comment

Choose a reason for hiding this comment

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

LGTM

@marandaneto marandaneto merged commit b6aeb74 into main Mar 15, 2021
@marandaneto marandaneto deleted the fix/plugin-registrant branch March 15, 2021 08:38
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.

4 participants