Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

SBLint

1,347 views

Published on

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

Published in: Technology
  • Be the first to comment

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

×