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 #4103

Merged
merged 1 commit into from
Sep 19, 2023

Commits on Sep 19, 2023

  1. Add support for specifying exemptPrefixes/exemptNames for UnusedVaria…

    …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
    
    COPYBARA_INTEGRATE_REVIEW=#2753 from bezmax:unused-variable-parameters 36b9502
    PiperOrigin-RevId: 566708313
    Maksim Bezsaznyj authored and Error Prone Team committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    a8a64b6 View commit details
    Browse the repository at this point in the history