Skip to content

Commit

Permalink
Switch clj-kondo hook to clojure-lsp/unused-public-var config option
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahTheDuke committed Nov 15, 2024
1 parent 12f8855 commit 5117759
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 68 deletions.
6 changes: 3 additions & 3 deletions .clj-kondo/imports/io.github.noahtheduke/lazytest/config.edn
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{:lint-as {lazytest.core/given clojure.core/let
lazytest.core/around clojure.core/fn
lazytest.core/defdescribe clojure.core/def
;; clojure.test interface
lazytest.experimental.interfaces.clojure-test/deftest clojure.test/deftest
lazytest.experimental.interfaces.clojure-test/testing clojure.test/testing
Expand All @@ -8,6 +9,5 @@
;; xunit interface
lazytest.experimental.interfaces.xunit/defsuite clojure.core/def
}
:hooks {:analyze-call {lazytest.core/defdescribe hooks.lazytest-core/defdescribe
lazytest.core/defcontext hooks.lazytest-core/defdescribe
lazytest.core/defsuite hooks.lazytest-core/defdescribe}}}
:linters {:clojure-lsp/unused-public-var
{:exclude-when-defined-by #{lazytest.core/defdescribe}}}}

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
### Added

- Can now pass in paths as cli arguments, not just through repeated `--dir` flags: `clojure -M:dev:test test/unit test/integration` will look for tests in both `test/unit` and `test/integration`.
- Documentation in `docs/core.md` and in the `lazytest.core` docstring.
- Exclude `lazytest.core/defdescribe` from `:clojure-lsp/unused-public-var` linter.

### Changed

Expand All @@ -20,6 +22,10 @@ is rewritten as `(expect (int? (+ 1 1)))`.

- Switch from `:test` metadata to `:lazytest/test` metadata. It's longer, but it no longer clashes with `clojure.test`'s internals so you can run lazytest over `clojure.test` tests without them being marked as passing tests. (See [#4](https://github.com/NoahTheDuke/lazytest/issues/4).)

### Fixed

- cljdoc links in README.md. (See [#1](https://github.com/NoahTheDuke/lazytest/issues/1).)

## 1.3.0

Released `2024-10-21`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{:lint-as {lazytest.core/given clojure.core/let
lazytest.core/around clojure.core/fn
lazytest.core/defdescribe clojure.core/def
;; clojure.test interface
lazytest.experimental.interfaces.clojure-test/deftest clojure.test/deftest
lazytest.experimental.interfaces.clojure-test/testing clojure.test/testing
Expand All @@ -8,6 +9,7 @@
;; xunit interface
lazytest.experimental.interfaces.xunit/defsuite clojure.core/def
}
:hooks {:analyze-call {lazytest.core/defdescribe hooks.lazytest-core/defdescribe
lazytest.core/defcontext hooks.lazytest-core/defdescribe
lazytest.core/defsuite hooks.lazytest-core/defdescribe}}}
:linters {:clojure-lsp/unused-public-var
{:exclude-when-defined-by #{lazytest.core/defdescribe
lazytest.experimental.interfaces.xunit/defsuite
lazytest.experimental.interfaces.clojure-test/deftest}}}}

This file was deleted.

0 comments on commit 5117759

Please sign in to comment.