mozilla / rust-code-analysis

Library to analyze and collect metrics on source code
https://mozilla.github.io/rust-code-analysis/
262 stars 47 forks source link

Aggregate metrics according to their language #163

Open Luni-4 opened 4 years ago

Luni-4 commented 4 years ago

It would be helpful to aggregate metrics produced by rust-code-analysis on different files in a single global file. The aggregation should be done according to the languages contained in a determined directory. To do so, a possible approach with threads could be the following one:

Each thread computes the metrics for a single file and then sends the result to a handler which implements a specific trait called HandlerTrait.

HandlerTrait contains two functions:

calixteman commented 4 years ago

The trait could be more general:

Luni-4 commented 4 years ago

It would be helpful to dump the aggregate metrics through the Tokei tabular output