Aggregate metrics according to their language

Offen
#163 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
25/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
rust
Bereich
data

Rechercherichtung

Start by reading the repository’s Rust entry points for file analysis and thread coordination, then locate how metrics are collected and serialized. The issue proposes a HandlerTrait with merge and finalize, but names no files, output format, or acceptance criteria; clarify those before estimating completion.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

enhancement

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:

  • merge is called by each thread at the end of its execution and adds the result of each thread to a global vector called Vec
  • finalize instead is called when each thread has finished to be run and dumps the content of Vec in the required format
Vorherrschende Sprache
Rust
Sterne
469
Forks
74
Ø Merge
17 Std. 16 Min.
Gemergte PRs (30 T.)
10

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus mozilla/rust-code-analysis

Alle Issues in mozilla/rust-code-analysis

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.