Commit c3f1350
authored
🌱 Improve printing options (#1584)
When print options, there are two sections: "Scorecard options:" and
"Event / repo information:". However, the headers of these sections have
the same format as the options themselves (name followed by ":"). So I
initially failed to identify they were just headers, and thought they
were actual options that were empty.
I think indenting entries inside each section helps avoid this
confusion.
Before:
```console
Scorecard options:
Ref: HEAD
Repository: ossf/scorecard
Local:
Format: sarif
Policy file: /policy.yml
Event / repo information:
Event file: /testdata/fork.json
Event name: branch_protection_rule
Fork repository: true
Private repository: true
Publication enabled: false
Default branch: main
```
After:
```console
Scorecard options:
Ref: HEAD
Repository: ossf/scorecard
Local:
Format: sarif
Policy file: /policy.yml
Event / repo information:
Event file: /testdata/fork.json
Event name: branch_protection_rule
Fork repository: true
Private repository: true
Publication enabled: false
Default branch: main
```
Signed-off-by: David Rodríguez <[email protected]>1 parent 43e475b commit c3f1350
1 file changed
+11
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
0 commit comments