@@ -22,24 +22,6 @@ func RenderScanReportAsJson(r report.ScanReport) error {
2222 return nil
2323}
2424
25- // RenderScanReportAsTable prints a human-readable table view of the ScanReport
26- // to stdout. The Path column is printed last and not truncated.
27- func RenderScanReportAsTable (r report.ScanReport ) {
28- totalRepos := len (r .RepoStates )
29- dirtyRepos := r .DirtyReposCount ()
30-
31- Warnings (r .Warnings )
32- renderReportHeader (r , totalRepos , dirtyRepos )
33-
34- if len (r .RepoStates ) > 0 {
35- RenderReposTable (r )
36- }
37-
38- if dirtyRepos > 0 {
39- renderDirtyReposDetails (r )
40- }
41- }
42-
4325func renderReportHeader (r report.ScanReport , totalRepos int , dirtyRepos int ) {
4426 fmt .Printf ("\n \n " )
4527 fmt .Printf ("%s\n " , BoldS ("Repo Scan Report" ))
@@ -53,22 +35,6 @@ func renderReportHeader(r report.ScanReport, totalRepos int, dirtyRepos int) {
5335 }
5436}
5537
56- func renderDirtyReposDetails (r report.ScanReport ) {
57- fmt .Printf ("\n %s\n " , CyanBold ("Details:" ))
58- for _ , rs := range r .RepoStates {
59- if len (rs .UncommitedFiles ) == 0 {
60- continue
61- }
62- fmt .Printf ("\n %s %s\n %s %s\n " ,
63- MagBold ("Repo:" ), rs .Repo ,
64- MagBold ("Path:" ), rs .Path ,
65- )
66- for _ , f := range rs .UncommitedFiles {
67- fmt .Printf (" %s\n " , GrayS ("- %s" , f ))
68- }
69- }
70- }
71-
7238// truncateRunes truncates to at most n visible runes (avoids breaking alignment with multibyte chars)
7339func truncateRunes (s string , n int ) string {
7440 if n <= 0 {
0 commit comments