-
-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[analysis] Support analyze not full parseable code #1146
Labels
Comments
@ericdallo Fixed with 6dab88f $ clojure -M:clj-kondo/dev --config '{:output {:analysis true :format :edn}}' --lint "a.clj:b_bug.clj" | jet --query ':analysis' | puget
{:namespace-definitions [{:col 1,
:filename "a.clj",
:name a,
:name-col 5,
:name-end-col 6,
:name-end-row 1,
:name-row 1,
:row 1}
{:col 1,
:filename "b_bug.clj",
:name b,
:name-col 5,
:name-end-col 6,
:name-end-row 1,
:name-row 1,
:row 1}],
:namespace-usages [{:alias foo,
:alias-col 20,
:alias-end-col 23,
:alias-end-row 2,
:alias-row 2,
:col 14,
:filename "b_bug.clj",
:from b,
:name-col 14,
:name-end-col 15,
:name-end-row 2,
:name-row 2,
:row 2,
:to a}],
:var-definitions [{:col 1,
:end-col 14,
:end-row 3,
:filename "a.clj",
:name bar,
:name-col 6,
:name-end-col 9,
:name-end-row 3,
:name-row 3,
:ns a,
:row 3}],
:var-usages [{:arity 2,
:col 2,
:filename "a.clj",
:fixed-arities #{1 2 3},
:from a,
:macro true,
:name def,
:name-col 2,
:name-end-col 5,
:name-end-row 3,
:name-row 3,
:row 3,
:to clojure.core}]} |
borkdude
added a commit
that referenced
this issue
Feb 18, 2021
Thank you @borkdude, I'll try with clojure-lsp soon! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
version
2021.01.21-20210122.104321-2
platform
via
clj -Sdeps '{:deps {clj-kondo {:mvn/version "2021.01.21-20210122.104321-2"}}}
problem
when the file is not parseable, clj-kondo seems to ignore the lints for that file, it'd be great if tries to fix the code to parse.
repro
repro.zip
Working
output
Not working
output
config
[ Is your bug related to
.clj-kondo/config.edn
? Paste your entireconfiguration here. Also check if the bug still occurs without using a
configuration, as the bug may be a result of malformed configuration. ]
expected behavior
Expect to parse at least the parseable code from the file, like the ns, alias requires and other valid functions
The text was updated successfully, but these errors were encountered: