Open didibus opened 5 months ago
@didibus Thanks for your report!
In the build.edn, the required configurations are different for each task, and in the lint
task, it checks for required settings that can be identified from the configuration file.
java-paths
is only required in the java-compile
task, so currently it is not checked in the lint
task because it would cause errors for users who do not use the java-compile
task.
However, I understand the inconvenience, so I would like to consider making adjustments to issue warnings like "There are no required settings for this task" in the future.
Ah, that makes sense. You can't tell if that's a task the user will run or not, so you can't fail the lint, because if they are not going to use the task it makes sense for them not to have the required fields for it.
I'm thinking here as well, maybe the build.edn can take options of the list of tasks to lint for ? That way I know I'm using java-compile and want to make sure it gets linted?
I ran
clojure -T:build lint
and gotOK
.But when I ran
clojure -T:build java-compile
I got:Full report: