Workiva / react-dart

Dart Bindings for React JS
BSD 2-Clause "Simplified" License
412 stars 67 forks source link

FED-1569 Prepare for null safety: fix lints and implicit casts #366

Closed greglittlefield-wf closed 1 year ago

greglittlefield-wf commented 1 year ago

Motivation

A while back @aaronlademann-wf started a branch to update react-dart's to use workiva_analysis_options and updated lints, and clean things up.

I then based off that branch, made some adjustments, and enabled implicit casts to improve type safety and make things easier when migrating to null safety. I then used that as a base for a null safety branch.

As a result, all of the null safety changes are dependent on these unmerged lint and implicit cast changes.

To get this repo in a better state, and to enable the merge of null safety changes, let's land these lint and implicit cast changes.

Changes

The original commits also ended up getting pretty messy, with some larger commits and quite a few merge commits in between. The changes also were based on workiva_analysis_options v1 instead of v2.

So, I ended up redoing/rebasing most of these changes, splitting them up into very granular and easy-to-review commits, and rebasing the null safety branch on top of those. Shoutout to @aaronlademann-wf for your original work on this! ❤️

For review, I highly recommend reviewing the changes commit-by-commit since there are so many different lint fixes that touch a lot of code. There's a lot of commits, but most of them are either small or dart fix --apply ones that are very easy to review.

Summary of changes:

Testing

aviary-wf commented 1 year ago

Security Insights

No security relevant content was detected by automated scans.

Action Items

aaronlademann-wf commented 1 year ago

QA +1

@Workiva/release-management-pp