Comments (6)
I found the error: run! doesn't work if there is no .clj-kondo folder in classpath or root directory
In my case the solution was to add:
RUN mkdir /app/.clj-kondo
in my Dockerfile
from clj-kondo.
Have you checked that /tmp/project/src
exists in your docker image? Perhaps execute ls /tmp/project/src
to see what it outputs?
from clj-kondo.
Yes, I checked in the docker container that /tmp/project contains the project to be analysed. The application is a web based one, and I could connect to the container with docker exec
from clj-kondo.
Can you run with the --debug
flag? clj-kondo will print which files are linted:
$ clj-kondo --lint src --debug
[clj-kondo] Linting file: src/twge.cljc
[clj-kondo] Linting file: src/doc.cljs
from clj-kondo.
I don't know what's going on. I added :debug true to the run! map and the container worked correctly. To check I removed the option and now the container works correctly. The same code was not working yesterday!
from clj-kondo.
Glad it's solved!
from clj-kondo.
Related Issues (20)
- Request: support the concept of "closedness" for Maps HOT 4
- clj-kondo fails to report unresolved var name referenced inside the hook HOT 2
- Remove scratch.clj from the jar file
- False positive: unused import when using macroexpand HOT 4
- Trigger :type-mismatch when accessing members of nil HOT 3
- `:unused-value` can't be disabled with `:config-in-call`
- Metadata configuration sometimes fails to apply on the first Kondo run HOT 10
- clj-kondo no longer lints directories if there isn't already a .clj-kondo directory
- :exclude-files isn't honored when linting via stdin (editor mode)
- assert doesn't work HOT 1
- ignore hint doesn't work on invalid symbol
- Static usage of ns-unmap not recognized HOT 1
- (Class/field) should warn HOT 2
- clojure.core/subs positions HOT 1
- Support a gitlab CI friendly output natively HOT 2
- Improved var-usages analysis for multimethods HOT 1
- Support clojure-lsp/unused-public-var for custom macros HOT 1
- False positive from not-a-function when using reader to read a record HOT 3
- Report var usage in `if`/`when` condition as always truthy
- Clojure 1.12 Alpha 7 param-tags placeholder not recognized HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clj-kondo.