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

checkers: add sloppyTypeAssert checker #931

Merged
merged 1 commit into from May 26, 2020

Commits on May 26, 2020

  1. checkers: add sloppyTypeAssert checker

    Reports interface->interface type assertions that
    may be redundant.
    
    - Any type assertion to interface{} is redundant
    - Any I->I (identical) type assertion is redundant
    - I1->I2 assertion is redundant if I1 implements I2
    
    Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
    quasilyte committed May 26, 2020
    Configuration menu
    Copy the full SHA
    0ad8eaf View commit details
    Browse the repository at this point in the history