• Stars
    star
    120
  • Rank 295,983 (Top 6 %)
  • Language
    Common Lisp
  • Created about 8 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A linter for Common Lisp source code using SBCL

SBLint

SBLint is a linter for Common Lisp source code using SBCL.

Usage

Just run sblint command in your project directory, then it loads all ASD files and runs lint for all CL source files of those.

$ sblint -h
Usage:
    $ sblint # runs on all ASD files in current directory
    $ sblint [directories or files...]

Installation

As SBLint requires SBCL, make sure it is installed via Roswell:

$ ros install sbcl
# if it's already installed
$ ros use sbcl
$ ros install cxxxr/sblint

Using with reviewdog

reviewdog is an automated code review tool which provides a way to see review comments of diff before publishing it.

$ sblint | reviewdog -efm="%f:%l:%c: %m" -diff="git diff master"

cf. reviewdog — A code review dog who keeps your codebase healthy – Medium

Run before 'git commit'

It can be done by using git-hook's pre-commit. Just add the following script to ~/.git/hooks/pre-commit:

#!/bin/sh

# Copy this file to ./.git/hooks/pre-commit

if [ -z "$(which sblint)" ]; then
    echo "WARNING! sblint not found. Given up to run it."
    exit 0
fi

error_count=$(sblint | wc -l | tr -d '[[:space:]]')

if [ "$error_count" -gt "0" ]; then
    echo "Failed to commit because $error_count errors are found by SBLint."
    exit 1
fi

Author

Copyright

Copyright (c) 2016 Eitaro Fukamachi ([email protected])

License

Licensed under the BSD 2-Clause License.

More Repositories

1

valtan

Common Lisp to JavaScript compiler
Common Lisp
237
star
2

cl-lsp

An implementation of the Language Server Protocol for Common Lisp
TypeScript
184
star
3

jsonrpc

JSON-RPC 2.0 server/client for Common Lisp.
Common Lisp
66
star
4

apispec

A Common Lisp library for handling Web API requests and responses.
Common Lisp
33
star
5

lisp-preprocessor

Common lisp embedded template engine
Common Lisp
16
star
6

cl-toml

TOML v0.4.0 parser and encoder
Common Lisp
10
star
7

sizimi

シェル
Common Lisp
7
star
8

cl-mastodon

Common Lisp
6
star
9

aozora

emacsで青空文庫の縦書き表示
Emacs Lisp
6
star
10

cl-source-map

Porting mozilla/source-map to Common Lisp
Common Lisp
6
star
11

uemacs

uEmacs/PKの日本語化とか
C
6
star
12

lemshot

Common Lisp
6
star
13

cl-lua

Lua
6
star
14

clep

S式のgrep
Common Lisp
6
star
15

cc

Common Lisp
5
star
16

window-manager

Common Lisp
5
star
17

islisp

islisp to c translator の予定
Common Lisp
5
star
18

cl-gimei

Common Lisp
4
star
19

match

common lispでパターンマッチコンパイラ
Common Lisp
4
star
20

stumpwm-config

Common Lisp
4
star
21

searty

source code search engine (for common lisp)
Go
4
star
22

repl

common lispのrepl
Common Lisp
3
star
23

cl-mecab

Common Lisp
3
star
24

cl-deepl

DeepL API client for Common Lisp
Common Lisp
3
star
25

my-libvterm-example

C
2
star
26

lem-lsp

Common Lisp
2
star
27

forth--

Implementing forth as a rehabilitation of go
Go
2
star
28

search-files

Common Lisp
2
star
29

lisp-meetup-slide

Common Lisp
2
star
30

msgpack

Common Lisp
2
star
31

password-manager

Common Lisp
2
star
32

cl-regex

正規表現エンジン
Common Lisp
1
star
33

lw-project

Common Lisp
1
star
34

lw-repository

Common Lisp
1
star
35

fd-streams

Common Lisp
1
star
36

lw-shell

Common Lisp
1
star
37

lisp

Rust
1
star
38

lun

lispworks launcher
Common Lisp
1
star
39

symbol-map

Common Lisp
1
star
40

mygame

Experimental project to create a game on lem
Common Lisp
1
star
41

simple-http-server

Common Lisp
1
star
42

lem-shen-mode

Common Lisp
1
star