Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

fix(semantic_analyzers): fix the false positive for noConstAssign #3747

Merged
merged 13 commits into from
Nov 18, 2022
Merged

fix(semantic_analyzers): fix the false positive for noConstAssign #3747

merged 13 commits into from
Nov 18, 2022

Conversation

mzbac
Copy link
Contributor

@mzbac mzbac commented Nov 15, 2022

Summary

This PR is for fixing #3728. The current implementation of noConstAssign did not skip function assignment that caused a false error for the lint rule.

Test Plan

I added two new test cases to cover this edge case.

@netlify
Copy link

netlify bot commented Nov 15, 2022

Deploy Preview for docs-rometools canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit 7d921b4
🔍 Latest deploy log https://app.netlify.com/sites/docs-rometools/deploys/637756adf4e3ff000937d2e3

Copy link
Contributor

@ematipico ematipico left a comment

Choose a reason for hiding this comment

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

Thank you! Looks good to me. Please fix the CI (it should pass once you apply my suggestion) and we can merge it!

@mzbac mzbac requested a review from a team November 17, 2022 12:28
@MichaReiser MichaReiser linked an issue Nov 17, 2022 that may be closed by this pull request
1 task
mzbac and others added 2 commits November 18, 2022 20:52
…_assign.rs

Co-authored-by: Micha Reiser <micha@reiser.io>
@ematipico
Copy link
Contributor

@xunilrj @leops can any of you review the PR and merge it if you see fit, please?

@MichaReiser MichaReiser changed the title fix(semantic_analyzers): fix the false error for noConstAssign fix(semantic_analyzers): fix the false positive for noConstAssign Nov 18, 2022
@MichaReiser MichaReiser merged commit 0bbf70d into rome:main Nov 18, 2022
@mzbac mzbac deleted the fix-noConstAssign branch December 16, 2022 14:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 noConstAssign incorrectly flags argument assignment
5 participants