Skip to content
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

FED-3255 Allow analyzer 6.x #960

Merged
merged 8 commits into from
Oct 18, 2024
Merged

FED-3255 Allow analyzer 6.x #960

merged 8 commits into from
Oct 18, 2024

Conversation

greglittlefield-wf
Copy link
Contributor

@greglittlefield-wf greglittlefield-wf commented Oct 16, 2024

Depends on #958

Motivation

over_react currently allows analyzer 5.x, but not analyzer 6.x, which prevents newer versions of other packages from being pulled in.

We were previously blocked on supporting analyzer 6.x since it can only be used in Dart 3, but now we support Dart 3!

Changes

  • Raise analyzer upper bound to allow 6.x
  • Add 6.x to CI matrix that validates behavior under different analyzer majors
  • Fix usages of deprecated NamedType.name, which was removed in analyzer 6.0.0
    • This getter included the name and any import prefix, and was deprecated in favor of the following getters:
      • name2 (the name without the prefix)
      • importPrefix (just the prefix)

Release Notes

Review

See CONTRIBUTING.md for more details on review types (+1 / QA +1 / +10) and code review process.

Please review:

QA Checklist

  • Tests were updated and provide good coverage of the changeset and other affected code
  • Manual testing was performed if needed

Merge Checklist

While we perform many automated checks before auto-merging, some manual checks are needed:

  • A Frontend Frameworks Design member has reviewed these changes
  • There are no unaddressed comments - this check can be automated if reviewers use the "Request Changes" feature
  • For release PRs - Version metadata in Rosie comment is correct

@aviary2-wf
Copy link

Security Insights

No security relevant content was detected by automated scans.

Action Items

  • Review PR for security impact; comment "security review required" if needed or unsure
  • Verify aviary.yaml coverage of security relevant code

Questions or Comments? Reach out on Slack: #support-infosec.

expect(TypeNameHelper(parseAndGetSingleWithType('''
foo.SomeTypeName foo;
''')).nameWithPrefix, 'foo.SomeTypeName');
});
});

group('NameHelper', () {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This extension is exclusive to Identifier, and in analyzer 6 type names are no longer parsed as Identifier, so these cases needed to be updated

@rmconsole3-wf rmconsole3-wf changed the title Allow analyzer 6.x FED-3255 Allow analyzer 6.x Oct 16, 2024
@greglittlefield-wf greglittlefield-wf marked this pull request as ready for review October 16, 2024 23:12
robbecker-wf
robbecker-wf previously approved these changes Oct 17, 2024
Copy link
Member

@robbecker-wf robbecker-wf left a comment

Choose a reason for hiding this comment

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

🎊

@robbecker-wf robbecker-wf added the Hold Hold merges label Oct 17, 2024
@greglittlefield-wf greglittlefield-wf changed the base branch from dart-3-ci to master October 18, 2024 18:18
@greglittlefield-wf greglittlefield-wf dismissed robbecker-wf’s stale review October 18, 2024 18:18

The base branch was changed.

@robbecker-wf
Copy link
Member

QA+1 CI passes on all combinations. Validated that analyzer 5 and 6 are actually used and pass.

@greglittlefield-wf
Copy link
Contributor Author

@Workiva/release-management-p

Copy link

@rmconsole-wf rmconsole-wf left a comment

Choose a reason for hiding this comment

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

+1 from RM

@rmconsole5-wk rmconsole5-wk merged commit 39ae7d7 into master Oct 18, 2024
18 checks passed
@rmconsole5-wk rmconsole5-wk deleted the analyzer-6 branch October 18, 2024 18:39
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.

5 participants