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

Remove clj-kondo warning that := is an unused value #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vedang
Copy link

@vedang vedang commented Jun 18, 2023

clj-kondo does not understand that := is special in rcf/tests. This commit adds a clj-kondo.exports folder as explained in their documentation. Users can use this to import the config in their projects and remove the warning.

References:

  1. Exporting and importing clj-kondo configuration: https://github.com/clj-kondo/clj-kondo/blob/74be7d29696c08e188d10c64b045403b21302a0b/doc/config.md?plain=1#L524
  2. An explanation of the :config-in-call option: https://github.com/clj-kondo/clj-kondo/blob/74be7d29696c08e188d10c64b045403b21302a0b/doc/config.md#config-in-call
  3. An explanation of the :unused-value warning that we see: https://github.com/clj-kondo/clj-kondo/blob/74be7d29696c08e188d10c64b045403b21302a0b/doc/linters.md#unused-value

`clj-kondo` does not understand that `:=` is special in `rcf/tests`.
This commit adds a `clj-kondo.exports` folder as explained in their
documentation. Users can use this to import the config in their
projects and remove the warning.

References:
1. Exporting and importing clj-kondo configuration:
https://github.com/clj-kondo/clj-kondo/blob/74be7d29696c08e188d10c64b045403b21302a0b/doc/config.md?plain=1#L524
2. An explanation of the `:config-in-call` option:
https://github.com/clj-kondo/clj-kondo/blob/74be7d29696c08e188d10c64b045403b21302a0b/doc/config.md#config-in-call
3. An explanation of the `:unused-value` warning that we see: https://github.com/clj-kondo/clj-kondo/blob/74be7d29696c08e188d10c64b045403b21302a0b/doc/linters.md#unused-value
@dustingetz
Copy link
Member

Slack discussion

@dustingetz dustingetz force-pushed the master branch 5 times, most recently from 6ceb253 to 5d81fde Compare August 5, 2023 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants