SBLint

737 views

Published on

Talk about SBLint, a linter for Common Lisp source code, at Lisp Meetup #45

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
737
On SlideShare
0
From Embeds
0
Number of Embeds
132
Actions
Shares
0
Downloads
2
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

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

×