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
92 stars 71 forks source link

PO026 incorrectly flags correct AssignVariable tample as incorrect #387

Closed LukaszGrochal closed 11 months ago

LukaszGrochal commented 11 months ago

Problem is that correctly assigned variable is tagged as incorrect. It looks like issue is with curly brackets. As an error I got: ║ Line │ Column │ Type │ Message │ Rule ID ║ ╟──────────┼──────────┼──────────┼────────────────────────────────────────────────────────┼──────────────────────╢ ║ 17 │ 17 │ error │ undefined │ PO026 `

timeStamp

`

the whole policy looks like that and on beginning of the month it was working correctly: ` <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

true errorId code401 timeStamp UNAUTHORIZED401UNAUTHORIZED

`

ssvaidyanathan commented 11 months ago

@LukaszGrochal - which version are you using?

LukaszGrochal commented 11 months ago

I think I am using the latest. Before each use I am installing it with npm install -g apigeelint

ssvaidyanathan commented 11 months ago

Can you try with the latest version we just pushed v2.43.0? Pls reopen if the issue still exist