Skip to content

Commit

Permalink
Config to suppress some common unused-ret-vals warnings in schema.cor…
Browse files Browse the repository at this point in the history
…e/defrecord
  • Loading branch information
jafingerhut committed Dec 12, 2014
1 parent b587874 commit 07b9475
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions resource/config.clj
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,13 @@
:within-depth 2
:reason "schema.core/defrecord expands to code with multiple def's for the same Var."})

(disable-warning
{:linter :unused-ret-vals
:for-value nil
:if-inside-macroexpansion-of #{'schema.core/defrecord}
:within-depth 2
:reason "schema.core/defrecord often macro expands to code containing an unused nil value."})

(disable-warning
{:linter :suspicious-expression
;; specifically, those detected in function suspicious-macro-invocations
Expand Down

0 comments on commit 07b9475

Please sign in to comment.