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

fix: get-installed-path needs direction on where to look #464

Closed DinoChiesa closed 1 month ago

DinoChiesa commented 1 month ago

apigeelint uses get-installed-path to get the path of xmldom/xmldom , in order to read the constants that are exported in the v0.8.x version of that package. Later versions of the package export the constants, but they're not yet released.

ANYWAY, the get-installed-path looks in the wrong place if you run apigeelint from a directory that is not its home, and that causes the apigeelint cli to just throw an error and exit. This change fixes that.