Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the lisp-critic Reference Manual, version 1.1, generated automatically by Declt version 4.0 beta 2 "William Riker" on Mon Aug 15 05:00:00 2022 GMT+0.
Next: Systems, Previous: The lisp-critic Reference Manual, Up: The lisp-critic Reference Manual [Contents][Index]
* LISP-CRITIC - A Lisp code critiquing package. see https://courses.cs.northwestern.edu/325/exercises/critic.php#critic - Author: Chris Riesbeck - Licence: MIT Licence Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Load: #+BEGIN_SRC lisp (asdf:load-system :lisp-critic) #+END_SRC Example call: #+BEGIN_SRC lisp (critique (defun count-a (lst) (setq n 0) (dolist (x lst) (if (equal x 'a) (setq n (+ n 1)))) n)) #+END_SRC Example output: #+BEGIN_EXAMPLE ---------------------------------------------------------------------- SETS-GLOBALS: GLOBALS!! Don't use global variables, i.e., N N ---------------------------------------------------------------------- DOLIST-SETF: Don't use SETQ inside DOLIST to accumulate values for N. Use DO. Make N a DO variable and don't use SETQ etc at all. ---------------------------------------------------------------------- USE-EQL: Unless something special is going on, use EQL, not EQUAL. ---------------------------------------------------------------------- X-PLUS-1: Don't use (+ N 1), use (1+ N) for its value or (INCF N) to change N, whichever is appropriate here. ---------------------------------------------------------------------- #+END_EXAMPLE See the lisp-critic.lisp file for more information. To load LISP-CRITIC to the REPL, Type (USE-PACKAGE :LISP-CRITIC). To run the Lisp Critic on an entire file of code: #+BEGIN_SRC lisp (critique-file pathname) #+END_SRC lisp For example, #+BEGIN_SRC lisp (critique-file "~/riesbeck/cs325/chap9-exs.lisp") #+END_SRC lisp
Next: Files, Previous: Introduction, Up: The lisp-critic Reference Manual [Contents][Index]
The main system appears first, followed by any subsystem dependency.
Next: ckr-tables, Previous: Systems, Up: Systems [Contents][Index]
LISP-CRITIC - A Lisp code critiquing package.
CHIBA Masaomi
Chris Riesbeck
MIT Licence
The Lisp Critic scans your code for instances of bad Lisp programming practice. The Lisp Critic works for all Lisp code, even if there are no test cases. Use the Critic with all your code, whether it’s an exercise, an assignment, or something you invented on your own. see more - https://courses.cs.northwestern.edu/325/exercises/critic.php#critic
1.1
ckr-tables (system).
Previous: lisp-critic, Up: Systems [Contents][Index]
A utility library to ease the use of hash-tables
CHIBA Masaomi
Chris Riesbeck
MIT License
1.0
tables.lisp (file).
Next: Packages, Previous: Systems, Up: The lisp-critic Reference Manual [Contents][Index]
Files are sorted by type and then listed depth-first from the systems components trees.
Next: ckr-tables/ckr-tables.asd, Previous: Lisp, Up: Lisp [Contents][Index]
lisp-critic (system).
Next: lisp-critic/extend-match.lisp, Previous: lisp-critic/lisp-critic.asd, Up: Lisp [Contents][Index]
ckr-tables (system).
Next: lisp-critic/write-wrap.lisp, Previous: ckr-tables/ckr-tables.asd, Up: Lisp [Contents][Index]
lisp-critic (system).
Next: lisp-critic/lisp-critic.lisp, Previous: lisp-critic/extend-match.lisp, Up: Lisp [Contents][Index]
extend-match.lisp (file).
lisp-critic (system).
write-wrap (function).
Next: lisp-critic/lisp-rules.lisp, Previous: lisp-critic/write-wrap.lisp, Up: Lisp [Contents][Index]
write-wrap.lisp (file).
lisp-critic (system).
Next: ckr-tables/tables.lisp, Previous: lisp-critic/lisp-critic.lisp, Up: Lisp [Contents][Index]
lisp-critic.lisp (file).
lisp-critic (system).
Previous: lisp-critic/lisp-rules.lisp, Up: Lisp [Contents][Index]
ckr-tables (system).
Next: Definitions, Previous: Files, Up: The lisp-critic Reference Manual [Contents][Index]
Packages are listed by definition order.
Next: extend-match, Previous: Packages, Up: Packages [Contents][Index]
common-lisp.
write-wrap (function).
Next: lisp-critic, Previous: write-wrap, Up: Packages [Contents][Index]
common-lisp.
Next: tables, Previous: extend-match, Up: Packages [Contents][Index]
Previous: lisp-critic, Up: Packages [Contents][Index]
common-lisp.
Next: Indexes, Previous: Packages, Up: The lisp-critic Reference Manual [Contents][Index]
Definitions are sorted by export status, category, package, and then by lexicographic order.
Next: Internals, Previous: Definitions, Up: Definitions [Contents][Index]
Next: Setf expanders, Previous: Public Interface, Up: Public Interface [Contents][Index]
Next: Ordinary functions, Previous: Macros, Up: Public Interface [Contents][Index]
get-pattern (function).
t1 (function).
get-response (function).
t2 (function).
Previous: Setf expanders, Up: Public Interface [Contents][Index]
Previous: Public Interface, Up: Definitions [Contents][Index]
Next: Special variables, Previous: Internals, Up: Internals [Contents][Index]
Next: Setf expanders, Previous: Constants, Up: Internals [Contents][Index]
Table of DEFTABLE functions.
Next: Ordinary functions, Previous: Special variables, Up: Internals [Contents][Index]
get-assigned-vars-fn (function).
t4 (function).
get-local-vars-fn (function).
t3 (function).
Previous: Setf expanders, Up: Internals [Contents][Index]
Return a copy of SEQUENCE which is EQUAL to SEQUENCE but not EQ.
copy-seq.
Return a copy of SEQUENCE which is EQUAL to SEQUENCE but not EQ.
copy-seq.
Previous: Definitions, Up: The lisp-critic Reference Manual [Contents][Index]
Jump to: | (
A B C D E F G I L M N P R S T V W |
---|
Jump to: | (
A B C D E F G I L M N P R S T V W |
---|
Next: Data types, Previous: Functions, Up: Indexes [Contents][Index]
Jump to: | *
C S V |
---|
Jump to: | *
C S V |
---|
Jump to: | C E F L P S T W |
---|
Jump to: | C E F L P S T W |
---|