Skip to content

SYNG2002 - Invalid selector

Domain: query
Severity: USER

The selector does not have a valid identifier.

Every selector must start with a valid name (identifier). Using a non-identifier like a regex pattern or number as the first element of a list will produce this error.

Example

clojure
(/foo/)

A regex pattern cannot be a selector name.

Solution

Ensure the first element of each list is a valid selector name:

clojure
(str /foo/)

Not:

clojure
(/foo/)

SYNG2008, SYNG2004

Copyright © 2022-present Semantic Works, Inc.