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

Add support for specifying exemptPrefixes/exemptNames for UnusedVariable via flags #2753

Closed
wants to merge 1 commit into from

Conversation

bezmax
Copy link

@bezmax bezmax commented Dec 13, 2021

In some cases projects have conventions about use of custom arguments/variables that are not meant to be deleted even if unused. One of such examples could be keeping an ORMs Session session argument in the method arguments signifying that the method happens within the boundaries of provided session and is doing calls to the underlying datastore.

This PR would allow to provide custom values for exemptPrefixes and exemptNames via error-prone flags.

copybara-service bot pushed a commit that referenced this pull request Sep 19, 2023
…ble via flags

In some cases projects have conventions about use of custom arguments/variables that are not meant to be deleted even if unused. One of such examples could be keeping an ORMs `Session session` argument in the method arguments signifying that the method happens within the boundaries of provided session and is doing calls to the underlying datastore.

This PR would allow to provide custom values for exemptPrefixes and exemptNames via error-prone flags.

Fixes #2753

FUTURE_COPYBARA_INTEGRATE_REVIEW=#2753 from bezmax:unused-variable-parameters 36b9502
PiperOrigin-RevId: 566671352
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.

None yet

2 participants