Skip to content

Commit

Permalink
Add a no-op reporter, useful for testing
Browse files Browse the repository at this point in the history
Or where you just want a pass/fail, without any output.
  • Loading branch information
danielcompton committed Jul 26, 2017
1 parent 5651e37 commit 17d69cc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion kibit/src/kibit/reporters.clj
Expand Up @@ -49,5 +49,11 @@
(println "```")
(newline)))

(defn no-op-reporter
"Prints nothing to `*out*`."
[check-map]
nil)

(def name-to-reporter {"markdown" gfm-reporter
"text" cli-reporter})
"text" cli-reporter
"no-op" no-op-reporter})

0 comments on commit 17d69cc

Please sign in to comment.