Skip to content
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

Reports placed on wrong file #1366

Closed
simon-katz opened this issue Aug 22, 2021 · 2 comments
Closed

Reports placed on wrong file #1366

simon-katz opened this issue Aug 22, 2021 · 2 comments
Projects

Comments

@simon-katz
Copy link

version

v2021.08.06

macro usage

N/A. Not related to a macro of mine.

platform

macOS Catalina 10.15.7.
Native

editor

N/A. I get this behaviour at the command line.

problem

Some problems are reported as being in the wrong file. For details see the README in the repo in the repro section below.

repro

https://github.com/simon-katz/bug-report-clj-kondo-misplaced-reports

config

No config needed.

expected behavior

I expect to see all problems reported as being in the file dir-1/user.clj.

@borkdude borkdude added this to Needs triage in clj-kondo via automation Aug 22, 2021
@borkdude borkdude moved this from Needs triage to High priority (next release) in clj-kondo Aug 22, 2021
@borkdude
Copy link
Member

Note to self:

When first linting dir-2 and then dir-1 the results seem to be more correct:

$ clj-kondo --lint dir-2 dir-1
dir-1/user.clj:3:24: warning: use alias or :refer
dir-1/user.clj:4:5: warning: namespace clojure.string is required but never used
dir-1/user.clj:4:28: warning: #'clojure.string/blank? is referred but never used

@borkdude
Copy link
Member

Should be fixed on master.

clj-kondo automation moved this from High priority (next release) to Done Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
clj-kondo
  
Done
Development

No branches or pull requests

2 participants