SBLint

21
SBLINT LISP MEETUP #45 Oct 25, 2016

Transcript of SBLint

SBLINTLISP MEETUP #45 Oct 25, 2016

I’m Eitaro Fukamachi @nitro_idiot fukamachi

Common way to get STYLE-WARNINGs in Common Lisp source code:

Common way to get STYLE-WARNINGs in Common Lisp source code:

= Use SBCL

(let ((a 1)) (+ 1 2))

; file: /Users/nitro_idiot/test.lisp ; in: LET ((A 1)) ; (LET ((A 1)) ; (+ 1 2)) ; ; caught STYLE-WARNING: ; The variable A is defined but never used. ; ; compilation unit finished ; caught 1 STYLE-WARNING condition

This is really useful…

This is really useful… For human.

A few days ago

https://github.com/haya14busa/reviewdog

This looks great and wanna use with Common Lisp.

But the SBCL’s human readable error messages cannot be accepted by reviewdog.

SBLint

(let ((a 1)) (+ 1 2))

(let ((a 1)) (+ 1 2))

test.lisp:1:0: The variable A is defined but never used.

(let ((a 1)) (+ 1 ‘a))

(let ((a 1)) (+ 1 ‘a))

test.lisp:1:0: The variable A is defined but never used. test.lisp:2:2: Constant A conflicts with its asserted type NUMBER.

Installation

ros install fukamachi/sblint

ros install fukamachi/sblint

Thanks to Roswell.

SBLinthttps://github.com/fukamachi/sblint