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

feat: update class-methods-use-this for class static blocks #15298

Merged
merged 1 commit into from Nov 15, 2021

Commits on Nov 12, 2021

  1. feat: update class-methods-use-this for class static blocks

    Updates the `class-methods-use-this` rule to account for class static blocks.
    
    This only fixes false negatives where use of `this` in a class static block mistakenly counts as used `this` in the enclosing context.
    
    The rule still correctly does not require that class static blocks use `this`.
    
    Refs #15016
    mdjermanovic committed Nov 12, 2021
    Copy the full SHA
    0e2eebd View commit details
    Browse the repository at this point in the history