Ensure help output is consistently formatted
Signed-off-by: Brendan Devenney <brendan.devenney@form3.tech>
This commit is contained in:
parent
75d8d7fce5
commit
6520814a6c
|
@ -126,7 +126,7 @@ Fixes that are run (in order):
|
|||
|
||||
for _, name := range fix.FixerOrder {
|
||||
helpText += fmt.Sprintf(
|
||||
"\t%-30s\t%s\n",name, fix.Fixers[name].Synopsis())
|
||||
" %-27s%s\n", name, fix.Fixers[name].Synopsis())
|
||||
}
|
||||
|
||||
helpText += `
|
||||
|
|
|
@ -71,10 +71,10 @@ func TestFix_allFixersEnabled(t *testing.T) {
|
|||
t.Fatalf("Fixers length (%d) does not match FixerOrder length (%d)", len(f), len(o))
|
||||
}
|
||||
|
||||
for fixer, _ := range(f) {
|
||||
for fixer, _ := range f {
|
||||
found := false
|
||||
|
||||
for _, orderedFixer := range(o) {
|
||||
for _, orderedFixer := range o {
|
||||
if orderedFixer == fixer {
|
||||
found = true
|
||||
break
|
||||
|
|
Loading…
Reference in New Issue