SBLint

1.153 visualizaciones

Publicado el

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

Publicado en: Tecnología
0 comentarios
2 recomendaciones
Estadísticas
Notas
  • Sé el primero en comentar

Sin descargas
Visualizaciones
Visualizaciones totales
1.153
En SlideShare
0
De insertados
0
Número de insertados
141
Acciones
Compartido
0
Descargas
6
Comentarios
0
Recomendaciones
2
Insertados 0
No insertados

No hay notas en la diapositiva.

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

×