Comments (5)
The tabular output would be difficult to read because rust-code-analysis
has lots of metrics compared to Tokei
. The json
output is already implemented.
from rust-code-analysis.
Having a table per-metric should solve the problem of having way too many columns I guess.
I do not have strong opinions in this regard, but would be nice to have a way to see the data from the cli w/out piping the json to something that formats it though.
from rust-code-analysis.
I do not have strong opinions in this regard, but would be nice to have a way to see the data from the cli w/out piping the json to something that formats it though.
Right, but for now the tabular option has low-priority compared to your third item :)
from rust-code-analysis.
The tabular format presents a series of problems.
Let m
be the number of files in a directory, n
the number of function spaces and k
the number of tables. Let also suppose that each struct is represented by a table.
The final number of tables is then equal to: m * n * k
if the values of the three variables are pretty large, we would get an enormous output, difficult to analyze.
Possible approaches could be the following ones:
- Print only global metrics for each file
- Print only determined metrics for each file and function space
- Do not implement the tabular approach for
rust-code-analysis
from rust-code-analysis.
Closed in favor of #163
from rust-code-analysis.
Related Issues (20)
- Add a LICENSE file HOT 2
- Empty output when calculating metrics for this function in C HOT 5
- Are `Java` and `C#` metrics still pending? HOT 1
- Update docs mentioning that some metrics are supported for Java
- Implement metrics for Kotlin language
- Create a GitHub action which runs rust-code-analysis HOT 4
- empty function name for cpp
- Evaluate using Profile-Guided Optimization (PGO) and LLVM BOLT HOT 1
- Convert grammars checkers scripts and grammars updaters into `cargo-xtask` tasks
- Use git submodules instead of calling the git cli from the integration tests. HOT 1
- Make insta more verbose
- Make insta not stop at the first failure HOT 4
- Fix Windows insta tests HOT 1
- Add documentation on how to upgrade a grammar version to the Developers Guide HOT 1
- Crate publication failing because the version of cargo in the task-boot image is too old
- After publishing a crate and before publishing the next that depends on it, wait until crates.io processes the upload
- Cargo.lock is not uploaded as it can't be found at the specified path
- Number of comment lines should be independent from the presence of CRLF vs LF
- Add metrics explanation to the documentation HOT 1
- Duplicate short option names for --host and --help makes debug build panic
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust-code-analysis.