mapbox / mapbox-maps-android

Interactive, thoroughly customizable maps in native Android powered by vector tiles and OpenGL.
https://www.mapbox.com/mobile-maps-sdk
Other
478 stars 134 forks source link

IncorrectNumberOfArgumentsInExpression lint rule shows error for 2 expressions #2388

Closed jsoberg closed 5 months ago

jsoberg commented 6 months ago

Environment

Observed behavior and steps to reproduce

The IncorrectNumberOfArgumentsInExpression states that in an Expression, 2-3 expressions should be added instead of 1. However, using 2 expressions results in a Lint error. See this for an example of the Lint rule showing error for 2 expressions.

Expected behavior

IncorrectNumberOfArgumentsInExpression should not signal a lint error when using 2 expressions in eq.

Notes / preliminary analysis

IllegalNumberOfArgumentsDetector may not be detecting as expected.

Additional links and references

Example repository: https://github.com/jsoberg/Mapbox-Android-App-Test-Template/pull/1/files

ittna commented 5 months ago

Same as #2373

jsoberg commented 5 months ago

Thanks @ittna! Closing this as a duplicate of #2373