-
Notifications
You must be signed in to change notification settings - Fork 9
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
Locating clj-watson.properties
on classpath seems a bit odd
#70
Comments
At work, we use If you run it with |
Related: the cli help is a bit confusing:
Focusing in:
|
Oh... right, you were trying to tell me, now I get it. Now I wonder why I need the option to provide |
That option predates the So that means that if someone does specify |
Ah! Makes more sense when I know the jagged history of it! 🙂 |
Yes, with all the other changes around properties and env vars, that will make sense. |
I still find it surprising that a tool would search the classpath for a config file, but we don't necessarily need to fix this weirdness. I think we've documented it well enough. |
OK, then I'll close this out on the basis that we'll document the property cascade further in #66 |
Currently
Clj-watson will automatically find clj-watson's config in
clj-watson.properties
if it is on the classpath.It might be just me but..
I find this a bit odd, and although it is documented in the README:
...it did not sink in for me on the first skim of the docs.
I do realize I can specify any properties file I like on the command line, ex:
But I see clj-watson as a tool (maybe that's where I've gone wrong?).
And in my experience, a tool typically automatically finds its config relative to a project root.
When using clj-watson as a tool, I can't see myself configuring a
:replace-paths
in mydeps.edn
to locate it's config, I would instead reach for the-w
cmd line arg.Proposal
Not sure.
One idea is to automatically load
./.clj-watson/config.properties
if found.And this is where folks could also plunk their false positive suppression config (see #55)?
But since clj-watson already searches the classpath for
clj-watson.properties
, we don't want to break things for folks who are using this behavior... so maybe just some rewording in the docs to focus more on the cmd line arg and less on the classpath search?The text was updated successfully, but these errors were encountered: