made a code metrics tool with help from @agilecreativity which analyzes Clojure code for stuff like cyclomatic complexity, Halstead metrics, nesting depths, and so on, to create a report of code quality and maintainability, it’s built with Jolt but works on any Clojure codebase, and compiles into a standalone executable, can be grabbed from releases https://github.com/jlt-commons/jolt-metrics
Very cool! Way back in the day—early ’90s—I worked at a QA software tools company and we wrote metrics analysis tools for FORTRAN, C, and C++ so it is great to see this for Clojure! Thank you!
It’s a bit of funny story, I was reading this article https://www.softwareimprovementgroup.com/blog/artcraft-adobe-clone-ai-code-quality/ and it mentioned Sigrid Core which is commercial, but then I got curious about the idea and did a bit of digging on what common code quality metrics exist, and then ended up with this tool.
ooo this is great. i've considered adding a cyclomatic complexity measurement/rule to #C04SCGV2ATX but it seemed really annoying to write so i never did it lol. relying on this library will be sick
https://scicloj.github.io/plotje/ - composable plotting - https://clojars.org/org.scicloj/plotje
Plots that look different after upgrading
• A pose returned from the body of pj/with-config is drawn without the configuration given to pj/with-config. To keep the configuration, end the body in pj/plot.
• A pj/lay-* call naming columns on a composite pose adds its layer to every cell that fits it. A cell fits the layer when the cell draws no other column on the axes the layer names. In each cell, the layer is drawn under the cell’s own layers.
• A pj/lay-* call that fits no cell of a composite pose adds its layer to every cell. A pj/lay-* call never adds a cell; pj/arrange adds cells.
• Cells of a composite that colour by the same column share one legend, also when some cells write a colour or an opacity. Cells that map no column reserve no room for a legend.
• pj/lay-contour lines are drawn where the density equals the line’s level, so they do not step along the grid. Reported on Zulip - thanks, @tsulej
• Filled rectangles in SVG -- heatmap tiles, panel backgrounds, and the steps of a continuous colour bar -- are drawn with crisp edges, so neighbouring tiles meet with no seam. Reported on Zulip - thanks, @tsulej
Added
• :cols wraps a facet into rows of that many panels. When a facet has too many panels to fit, the error suggests :cols.
Warnings and errors
• The Notes about 0.16.1 are removed, and so is the Note for a layer drawn in only some panels.
• :panel-size and :margin-multi are retired. Each warns and names what to write instead, and the plot draws without it.
Fixed
• pj/lay-line and pj/lay-smooth under (pj/coord :flip) join their points in order of the data’s :x.