forked from camsaul/methodical
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.clj
139 lines (108 loc) · 4.42 KB
/
project.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
(defproject methodical "0.10.0-alpha"
:url "https://github.com/camsaul/methodical"
:min-lein-version "2.5.0"
:license {:name "Eclipse Public License"
:url "https://raw.githubusercontent.com/camsaul/methodical/master/LICENSE"}
:aliases
{"repl" ["with-profile" "+repl" "repl"]
;; run lein deps with all dependencies from all the various profiles merged in. Useful for CI so we can cache
;; everything
"deploy" ["with-profile" "+deploy" "deploy"]
"all-deps" ["with-profile" "-user,+all-profiles" "deps"]
"test" ["with-profile" "+test" "test"]
"cloverage" ["with-profile" "+cloverage" "cloverage"]
"profile" ["with-profile" "+profile" "run"]
"eastwood" ["with-profile" "+eastwood" "eastwood"]
"bikeshed" ["with-profile" "+bikeshed" "bikeshed" "--max-line-length" "120"]
"kibit" ["with-profile" "+kibit" "kibit"]
"check-namespace-decls" ["with-profile" "+check-namespace-decls" "check-namespace-decls"]
"docstring-checker" ["with-profile" "+docstring-checker" "docstring-checker"]
"check-reflection-warnings" ["with-profile" "+reflection-warnings" "check"]
;; `lein lint` will run all linters. Except for reflecion warnings, use the script for that
"lint" ["do" ["eastwood"] ["bikeshed"] ["kibit"] ["check-namespace-decls"] ["cloverage"]
["docstring-checker"]]}
:dependencies
[[pretty "1.0.4"]
[potemkin "0.4.5"]]
:aot [methodical.interface methodical.impl.standard]
:jvm-opts ["-Dclojure.compiler.direct-linking=true"]
:profiles
{:dev
{:dependencies
[[org.clojure/clojure "1.10.1"]
[criterium "0.4.5"]
[pjstadig/humane-test-output "0.10.0"]]
:injections
[(require 'pjstadig.humane-test-output)
(pjstadig.humane-test-output/activate!)]
:jvm-opts ["-Xverify:none"]
:source-paths ["dev"]}
:repl
{:global-vars {*warn-on-reflection* true}}
:test
{}
:cloverage
{:dependencies
;; Cloverage dependency is normally injected when the plugin is ran. By explicitly specifying it here we can
;; cache it in CI
[[cloverage "1.1.2"]
;; Required by both Potemkin and Cloverage, but Potemkin uses an older version that breaks Cloverage's ablity to
;; understand certain forms. Explicitly specify newer version here.
[riddley "0.2.0"]]
:plugins
[[lein-cloverage "1.1.2"]]
;; don't count ./dev stuff for code coverage calcualations.
:source-paths ^:replace ["src"]
:cloverage
{:fail-threshold 92}}
:profile
{:main ^:skip-aot methodical.profile}
:eastwood
{:plugins
[[jonase/eastwood "0.3.11" :exclusions [org.clojure/clojure]]]
:eastwood
{:config-files
["./.eastwood-config.clj"]
:exclude-namespaces [:test-paths]
;; disabled for now until I figure out how to disable it in the one place it's popping up
#_:remove-linters
#_[:unused-ret-vals]
:add-linters
[:unused-private-vars
:unused-locals]}}
:bikeshed
{:dependencies
;; use latest tools.namespace instead of older version so we only need to fetch it once for all plugins.
[[org.clojure/tools.namespace "1.0.0"]]
:plugins
[[lein-bikeshed "0.5.2"
:exclusions [org.clojure/tools.namespace]]]}
:kibit
{:plugins
[[lein-kibit "0.1.8"
:exclusions [org.clojure/clojure]]]}
:check-namespace-decls
{:plugins [[lein-check-namespace-decls "1.0.2"
:exclusions [org.clojure/clojure]]]
:source-paths ["test"]
:check-namespace-decls {:prefix-rewriting true}}
:docstring-checker
{:plugins
[[docstring-checker "1.1.0"]]
:docstring-checker
{:include [#"^methodical"]
:exclude [#"test" #"^methodical\.profile$"]}}
;; run `lein check-reflection-warnings` to check for reflection warnings
:reflection-warnings
{:global-vars {*warn-on-reflection* true}}
:all-profiles
[:test :cloverage :profile :eastwood :bikeshed :kibit :check-namespace-decls :docstring-checker :reflection-warnings
{}]
:deploy
{:dependencies [[org.clojure/clojure "1.10.1"]]}}
:deploy-repositories
[["clojars"
{:url "https://clojars.org/repo"
:username :env/clojars_username
:password :env/clojars_password
:sign-releases false}]])