Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saulshanabrook/lein-check-stdin
https://github.com/saulshanabrook/lein-check-stdin
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/saulshanabrook/lein-check-stdin
- Owner: saulshanabrook
- License: epl-1.0
- Created: 2016-02-29T16:05:29.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-17T13:00:27.000Z (over 7 years ago)
- Last Synced: 2024-07-10T19:41:16.981Z (4 months ago)
- Language: Clojure
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `lein-check-stdin`
A Leiningen plugin that prints erros when parsing some clojure code.
It's output is in the form ` ` if it encounters
an error.## Usage
Put `[lein-check-stdin "0.2.0"]` into the `:plugins` vector of your `:user`
profile. For example, to do this for all projects, you can set `~/.lein/profiles.clj` to:```clojure
{:user {:plugins [[lein-check-stdin "0.2.0"]]}}
```Then you can use it to manually check any Clojure code, or use it to [lint Atom](https://github.com/saulshanabrook/linter-lein).
```bash
$ echo '(+ 1 1)' | lein check-stdin
# no output on good file
$ echo '(+ 1 1)\n(+ true false)' | lein check-stdin
{"file":"","line":1,"message":"java.lang.Boolean cannot be cast to java.lang.Number"}
```## Releaseing
```bash
env LEIN_USERNAME=saul LEIN_PASSWORD= lein release :minor
```