Skip to content

Add custom lint rules #66

Open
Open

Description

@matejsemancik

Would be nice to have custom lint rules for mvvm module (eg. wrong event naming) and interactors module (eg. warning that you forgot to use init method, or warning that you are passing Pair as execute argument in future). Any opinions on this?

I already have implemented MVVM event naming rule, and need ideas for more, if that makes sense to you.

Activity

  1. skywall commented on Nov 20, 2019

    @skywall
    Contributor

    Prohibit multiple usage of same lambda in InteractorConfig:

    interactor.execute(Unit) {
        onError {}
        onError {}
    }
    

    Check order of lambdas in InteractorConfig:

    OK
    interactor.execute(Unit) {
        onSuccess {}
        onError {}
    }
    
    BAD
    interactor.execute(Unit) {
        onError {}
        onSuccess {}
    }
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions