Skip to content

feat(report): CSV library-triage format (v1.1.0)#36

Merged
Guillain-RDCDE merged 1 commit into
mainfrom
feat/v1.1-csv-library-report
Jun 3, 2026
Merged

feat(report): CSV library-triage format (v1.1.0)#36
Guillain-RDCDE merged 1 commit into
mainfrom
feat/v1.1-csv-library-report

Conversation

@Guillain-RDCDE
Copy link
Copy Markdown
Owner

v1.1.0 — Mode rapport bibliothèque (CSV trié par score)

Scanner une grosse collection produit maintenant une vue de triage immédiate.

--format csv

Une ligne par fichier, triée par score décroissant (les plus suspects en haut), ouvrable dans n'importe quel tableur pour trier/filtrer et traiter sa biblio du plus risqué au moins risqué. Schéma de colonnes stable :
rank, score, verdict, filename, cutoff_freq_hz, sample_rate, bit_depth, reason, filepath.
Rejoint les formats existants text (lecture) et json (automatisation).

Top suspects en console

Quand un scan trouve des fichiers suspects, le résumé affiche désormais les plus suspects classés par score — on voit quoi vérifier en premier sans rien ouvrir. La ligne de rapport est agnostique au format (Report (csv): …).

Implémentation

  • reporting/csv_reporter.py (CSVReporter, exporté depuis flac_detective.reporting)
  • tests/test_csv_reporter.py (tri, colonnes, arrondi cutoff, reason mono-ligne, entrée vide)
  • Smoke test CLI réel validé (CSV écrit + trié, console OK).

Rétro-compatible, aucun changement de détection. Version 1.0.1 → 1.1.0.

Checks gatés verts en local : black, isort, flake8=0, mypy clean (50 fichiers), tests OK.

🤖 Generated with Claude Code

… (v1.1.0)

Scanning a large collection now produces an at-a-glance triage view.

- --format csv: one row per file, sorted by descending score (most suspicious at
  the top), openable in any spreadsheet. Stable column schema: rank, score,
  verdict, filename, cutoff_freq_hz, sample_rate, bit_depth, reason, filepath.
  Joins the existing text/json formats.
- Console summary now prints the top suspicious files ranked by score (only when
  there are any), so you see what to check first without opening the report. The
  report-path line is format-aware ("Report (csv): ...").
- reporting/csv_reporter.py (CSVReporter, exported from flac_detective.reporting)
  + tests/test_csv_reporter.py (ranking, columns, cutoff rounding, single-line
  reason, empty input).

Backward compatible; no detection-logic change. Version 1.0.1 -> 1.1.0.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Guillain-RDCDE Guillain-RDCDE merged commit 7677e26 into main Jun 3, 2026
16 checks passed
@Guillain-RDCDE Guillain-RDCDE deleted the feat/v1.1-csv-library-report branch June 3, 2026 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant