Skip to content

Commit

Permalink
Version 0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiodomingues committed Apr 8, 2024
1 parent 0e41c62 commit 4978ab2
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Unreleased

## 0.10.0 (2024-04-08)
* [#51](https://github.com/fabiodomingues/clj-depend/issues/51): Namespace rule analyzer.
* [#55](https://github.com/fabiodomingues/clj-depend/issues/55): Split analyzers into separate namespaces for better code organization and consequently simplify testing.
* [#48](https://github.com/fabiodomingues/clj-depend/issues/48): Fix analyzing files outside of configured source-paths.
Expand Down
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Add clj-depend as a dependency, preferably under an alias in `deps.edn`.

```clojure
{:deps { ,,, }
:aliases {:clj-depend {:extra-deps {com.fabiodomingues/clj-depend {:mvn/version "0.9.2"}}
:aliases {:clj-depend {:extra-deps {com.fabiodomingues/clj-depend {:mvn/version "0.10.0"}}
:main-opts ["-m" "clj-depend.main"]}}}
```

Expand Down Expand Up @@ -59,6 +59,17 @@ Configuration file (`.clj-depend/config.edn`) for diagram above:
:accesses-layers #{}}}}
```

### Rule Checks

Example configuration file (`.clj-depend/config.edn`):

```clojure
{,,,
:rules [{:defined-by ".*\\.logic\\..*"
:should-not-depend-on #{".*\\.controller\\..*"}}]
,,,}
```

### Circular Dependency Checks

Diagram to exemplify the circular dependency between namespaces:
Expand Down
4 changes: 2 additions & 2 deletions lein-clj-depend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ A Leiningen plugin to run [clj-depend](https://github.com/fabiodomingues/clj-dep
Add the plugin to your `project.clj`:

```clojure
:plugins [[com.fabiodomingues/lein-clj-depend "0.9.2"]]
:plugins [[com.fabiodomingues/lein-clj-depend "0.10.0"]]
```

## Usage
## Usage

```
$ lein clj-depend
Expand Down
4 changes: 2 additions & 2 deletions lein-clj-depend/project.clj
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(defproject com.fabiodomingues/lein-clj-depend "0.9.3-SNAPSHOT"
(defproject com.fabiodomingues/lein-clj-depend "0.10.0"
:description "Lein plugin to run clj-depend"
:url "https://github.com/fabiodomingues/clj-depend"
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
:url "https://www.eclipse.org/legal/epl-2.0/"}
:eval-in-leiningen true
:dependencies [[com.fabiodomingues/clj-depend "0.9.2"]]
:dependencies [[com.fabiodomingues/clj-depend "0.10.0"]]
:deploy-repositories [["releases" {:url "https://repo.clojars.org"
:creds :gpg}]])
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject com.fabiodomingues/clj-depend "0.9.3-SNAPSHOT"
(defproject com.fabiodomingues/clj-depend "0.10.0"
:description "A Clojure namespace dependency analyzer"
:url "https://github.com/fabiodomingues/clj-depend"
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
Expand Down
2 changes: 1 addition & 1 deletion sample/project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
:url "http://example.com/FIXME"
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
:url "https://www.eclipse.org/legal/epl-2.0/"}
:plugins [[com.fabiodomingues/lein-clj-depend "0.9.2"]]
:plugins [[com.fabiodomingues/lein-clj-depend "0.10.0"]]
:dependencies [[org.clojure/clojure "1.11.1"]]
:repl-options {:init-ns sample.core})

0 comments on commit 4978ab2

Please sign in to comment.