Skip to content

support a NOT operator in queries #1241

@OmarTawfik

Description

@OmarTawfik

Suggestion from @0xcompose:

I've thought that queries could have logical operator NOT. It could be really cool for linters. Often linters check absence of something in source code. For example finding all mutative functions and checking that there is NO event emitted, so error/warning must be shown.

We should evaluate how this impacts other query operators, and whether it should just check for optional fields, or be able to handle more complex sub-patterns.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions