mapbox-maps-android icon indicating copy to clipboard operation
mapbox-maps-android copied to clipboard

Most expression now show lint error "Incorrect number of expressions"

Open SamYStudiO opened this issue 9 months ago • 12 comments

Since mapbox Android 11.4.0

For example

circleColor(
    switchCase {
        eq {
            get { literal("type") }
            literal(RouteShapeWaypointType.AUTO.name)
        }
        color(Color.RED)

        color(Color.YELLOW)
    },
)

Here both switchCase and eq expression are concerned !!!

image

Incorrect number of expressions within switchCase Expression: expected an odd number, but 2 was found. More... (Ctrl+F1)

Incorrect number of expressions within eq Expression: expected 2 or 3, but 1 was found. More... (Ctrl+F1)

SamYStudiO avatar May 13 '24 15:05 SamYStudiO