You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Clojure starts, it searches for files named data_readers.clj at the root of the classpath. Each such file must contain a Clojure map of symbols, like this:
clj-kondo warns for unresolved namespaces and suggest adding a require.
repro
echo '{foo/bar my.project.foo/bar
foo/baz my.project/baz}' > data_readers.clj
clj-kondo --lint data_readers.clj
data_readers.clj:1:2: warning: Unresolved namespace foo. Are you missing a require?
data_readers.clj:1:10: warning: Unresolved namespace my.project.foo. Are you missing a require?
data_readers.clj:2:10: warning: Unresolved namespace my.project. Are you missing a require?
linting took 8ms, errors: 0, warnings: 3
expected behavior
No errors/warnings about the foo namespace.
I'm not sure what's the expected behaviour for my.project.foo and my.project warnings. Either a) don't report them or b) check if those vars exist in the project and warn if they don't.
Or maybe just simply disable unresolved namespace linter if the file name is data_readers.clj?
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
version
clj-kondo v2020.05.09
platform
Native, docker and JVM
problem
From https://clojure.org/reference/reader#tagged_literals
clj-kondo warns for unresolved namespaces and suggest adding a
require
.repro
expected behavior
No errors/warnings about the
foo
namespace.I'm not sure what's the expected behaviour for
my.project.foo
andmy.project
warnings. Either a) don't report them or b) check if those vars exist in the project and warn if they don't.Or maybe just simply disable unresolved namespace linter if the file name is
data_readers.clj
?The text was updated successfully, but these errors were encountered: