code-maat
code-compass
code-maat | code-compass | |
---|---|---|
7 | 5 | |
2,320 | 140 | |
- | - | |
3.1 | 4.7 | |
11 months ago | 6 months ago | |
Clojure | Emacs Lisp | |
- | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
code-maat
-
Ask HN: Measurements of Code Quality?
Get a copy of "Your code as a crime scene", then check out two GitHub repos
https://github.com/adamtornhill/code-maat
https://github.com/smontanari/code-forensics
-
Code Red: The Business Impact of Code Quality
He also wrote Your Code as a Crime Scene and authored the open source tool, Code Maat. I've found both extremely useful in my current job where I took over a code base with immense technical debt.
https://github.com/adamtornhill/code-maat
-
Why I Write Dirty Code: Code Quality in Context
It's not as neat as that unfortunately. You use this to extract different data from the version control history: https://github.com/adamtornhill/code-maat
Then visualize it however. I have some d3 scripts that came with the book that I've modified and you can track down somewhere on github I'm pretty sure. I mostly use those for demoing it to devs unfamiliar with the techniques though, since it looks cool and is immediately obvious what it's for.
For serious use I dump it into sqlite and use a mix of different scripts and techniques to figure it out. It's been kind of a language playground for me over the years so is in a lot of different languages and is "learning code" in most of them. Cleaning them up and sharing is one of those "maybe some day" things though.
-
Find files which change together frequently
After searching a bit more, it seems like https://github.com/adamtornhill/code-maat is a great tool
- adamtornhill/code-maat: A command line tool to mine and analyze data from version-control systems
-
The #1 tip to familiarize with new JavaScript codebases
The tool code-complexity is closely coupled to JavaScript and TypeScript-based codebases. For other languages like Java, C#, Python, or PHP there are other tools, but one tool that is generic and works for most of the codebases is code-maat. It is a tool created by the author of the book mentioned in the chapter before.
-
Emacs as your code-compass: how stable is my code?
https://github.com/adamtornhill/code-maat#Usage
code-compass
- code-compass: A set of code analyses that assist you in tackling software complexity when using Emacs as IDE
-
How to install a package like code-compass?
I'm trying to install code-compass but I'm finding problems to copy scripts/ and pages/, doing this puts all the files on the same level with all *.el files, here is the recipe:
-
I'm looking for this package that suggest you files that may need modification based on the file you just modified, using the Git history as source
Okay, I had it on my GitHub stars, is https://github.com/ag91/code-compass
-
Moldable Emacs: Vega-Lite, Nyxt and Emacs Towards Sustainable Development
The idea is to create custom tools to understand what you (in the sense of your past self and your ancestors) have created so far. We need to stop to reinvent the wheel: tons of people before us were smarter and we need to be able to understand and retrieve what they did.
Since there is a lot of useful information around us, we just need to extract meaning from it in better ways (for example, I mention climate change in the blog, because this goes further than just code in my opinion).
In this blog I show how I could visualize my interests (the notes I take). This showcases how I could make a tool on the fly (still a bit too expensive for my tastes, working on that). With such an infrastructure I can easily go into code bases and see patterns via visualizations. Potentially I could even apply refactorings from pictures (since I could run code in my editor clicking an HTML file).
If you missed it, my previous work on code-compass (https://github.com/ag91/code-compass) is just the first draft of what I have in mind.
-
adamtornhill/code-maat: A command line tool to mine and analyze data from version-control systems
Hey, if you like that and by any chance you use Emacs you may want to check out my project as well: https://github.com/ag91/code-compass
What are some alternatives?
code-complexity - Measure the churn/complexity ratio. Higher values mean hotspots where refactorings should happen.
sloc - simple tool to count SLOC (source lines of code)
temporal-coupling - Explores git repositories to find files that are commonly changed together
Compiler
code-forensics - A toolset for code analysis and report visualisation
LGV_MeetingSDK - A Connector for Various Regular Recovery Meetings
dmd - dmd D Programming Language compiler