apigee / apigeelint

Static code analysis for Apigee proxy bundles to encourage API developers to use best practices and avoid anti-patterns.
Apache License 2.0
91 stars 71 forks source link

CC007 Incorrectly Flags IsNot conditions #422

Closed valentine195 closed 6 months ago

valentine195 commented 6 months ago

I believe this is due to the grammar checking against Is first, which causes a failure due to an unexpected character:

{
        "source": "request.verb IsNot \"GET\"",
        "line": 327,
        "column": 17,
        "message": "Condition expression is invalid. Position 16, SyntaxError: Expected [ \\t\\n] but \"N\" found.",
        "ruleId": "CC007",
        "severity": 2,
        "nodeType": "Condition"
}
ssvaidyanathan commented 6 months ago

Ack. Until we push a fix, can you use != until then?

valentine195 commented 6 months ago

@ssvaidyanathan I just reversed the equality/inequality grammar locally, no worries.

ssvaidyanathan commented 6 months ago

fixed and released in v2.48.0