Top Banner
SBLINT LISP MEETUP #45 Oct 25, 2016
21

SBLint

Jan 26, 2017

Download

Technology

fukamachi
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: SBLint

SBLINTLISP MEETUP #45 Oct 25, 2016

Page 2: SBLint

I’m Eitaro Fukamachi @nitro_idiot fukamachi

Page 3: SBLint

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

Page 4: SBLint

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

= Use SBCL

Page 5: SBLint

(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

Page 6: SBLint

This is really useful…

Page 7: SBLint

This is really useful… For human.

Page 8: SBLint

A few days ago

Page 9: SBLint

https://github.com/haya14busa/reviewdog

Page 10: SBLint
Page 11: SBLint

This looks great and wanna use with Common Lisp.

Page 12: SBLint

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

Page 13: SBLint

SBLint

Page 14: SBLint

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

Page 15: SBLint

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

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

Page 16: SBLint

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

Page 17: SBLint

(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.

Page 18: SBLint

Installation

Page 19: SBLint

ros install fukamachi/sblint

Page 20: SBLint

ros install fukamachi/sblint

Thanks to Roswell.

Page 21: SBLint

SBLinthttps://github.com/fukamachi/sblint