Successfully reported this slideshow.

SBLint

2

Share

Loading in …3
×
1 of 21
1 of 21

More Related Content

Related Books

Free with a 14 day trial from Scribd

See all

SBLint

  1. 1. SBLINT LISP MEETUP #45 Oct 25, 2016
  2. 2. I’m Eitaro Fukamachi @nitro_idiot fukamachi
  3. 3. Common way to get STYLE-WARNINGs in Common Lisp source code:
  4. 4. Common way to get STYLE-WARNINGs in Common Lisp source code: = Use SBCL
  5. 5. (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
  6. 6. This is really useful…
  7. 7. This is really useful… For human.
  8. 8. A few days ago
  9. 9. https://github.com/haya14busa/reviewdog
  10. 10. This looks great and wanna use with Common Lisp.
  11. 11. But the SBCL’s human readable error messages cannot be accepted by reviewdog.
  12. 12. SBLint
  13. 13. (let ((a 1)) (+ 1 2))
  14. 14. (let ((a 1)) (+ 1 2)) test.lisp:1:0: The variable A is defined but never used.
  15. 15. (let ((a 1)) (+ 1 ‘a))
  16. 16. (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.
  17. 17. Installation
  18. 18. ros install fukamachi/sblint
  19. 19. ros install fukamachi/sblint Thanks to Roswell.
  20. 20. SBLinthttps://github.com/fukamachi/sblint

×