Commit 64551f8
committed
Simplify non-verbose rule output
Previously, the output resulting from rule violations was always prefaced with the rule ID and result:
Rule SD001 result: fail
This is necessary in verbose output mode because in that mode the result of every rule applied to the project is printed.
This is the only way to identify the rule and result when a rule passes.
The situation is different non-verbose mode, where output is only printed when a rule is violated. This means that:
- The rule is identified by the rule message
- The rule result is implicit
So this preface doesn't really serve any purpose in non-verbose mode. It is somewhat cryptic, so may make the output less
approachable to the users. Because the rule ID is still sometimes of value as a succinct and unequivocal way to refer to
a specific rule, it is printed in a less prominent location at the end of the rule message.1 parent a8641c3 commit 64551f8
3 files changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
121 | 125 | | |
122 | 126 | | |
123 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| |||
0 commit comments