A linter for Common Lisp source code using SBCL
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
git-hooks Add git pre-commit hook. Oct 26, 2016
roswell Run sblint.ros under SBCL, even after `ros use ccl-bin` Oct 26, 2018
src Tweak (and muffle) warnings. Nov 17, 2018
.gitignore Add sblint-reviewdog. Oct 27, 2016
README.markdown Add git pre-commit hook. Oct 26, 2016
sblint.asd v0.1.4 May 24, 2018



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


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
    $ sblint # runs on all ASD files in current directory
    $ sblint [directories or files...]


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

$ ros install sbcl
# if it's already installed
$ ros use sbcl
$ ros install fukamachi/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:


# 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

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



Copyright (c) 2016 Eitaro Fukamachi (e.arrows@gmail.com)


Licensed under the BSD 2-Clause License.