Open stylewarning opened 4 years ago
(I think we should make a new system for this.)
A new system?
Something like a linter would be cool.
I'm still advocating for a Rigetti-specific version of the lisp-critic.
I wrote a new program to dig up this kind of info. Here's a report it can produce, with additional remarks added manually in italics.
Many of these are easy fixes. Two exceptions stand out:
<class>-<slot>
accessors need documented protocols, with defgenericsA final issue to consider: sometimes external symbols are just syntax, and do not have a natural place to hang documentation. Consider it
in anaphoric libraries, or otherwise
in CL. It would take some extra thought to exclude them from a report on problematic symbols.
The report:
These are self-evident, to me, but a missing docstring is a missing docstring.
These arise from adt:defdata.
These generally arise from class-slot style of working with classes, rather than protocol-oriented style.
These are all due to adt:defdata.
@rigettizach Cool!
(Same with QVM and MAGICL.)