DerTimonius / DerTimonius/code-peek
[FEAT] add file complexity
- Vorherrschende Sprache
- Rust
- Sterne
- 6
- Forks
- 0
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
## Description
The output with the `-a` or `-t` flag collects information about both file length and number of commits. Both could be combined to calculate the complexity or importance of a file. A smaller file that is changed often might be more important to a project than a large file that is only changed once per year.
## Technical Details
- [ ] add a function in `impl File` in `file.rs` that calculates the complexity
- [ ] add the complexity to the tables in the `grouped_info` function
- [ ] possibly also add an option to only display the complexity (needs a new flag in the clap command, and a new display function)
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Beginne in file.rs bei impl File und verfolge, wie die Ausgaben von -a und -t gesammelt und an grouped_info übergeben werden. Ermittle, wie die angeforderte Komplexitätsberechnung Dateilänge und Commit-Anzahl kombinieren sollte, und prüfe anschließend den clap-Befehl sowie die Anzeigefunktionen, falls das optionale Flag nur für die Komplexität implementiert wird. Als erledigt gilt die Aufgabe, wenn die Komplexität in den gruppierten Tabellen erscheint und die eigenständige Option enthalten ist, falls ihr Umfang ausgewählt wurde.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- rust
- Bereich
- cli
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100