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 {
|
for _, name := range fix.FixerOrder {
|
||||||
helpText += fmt.Sprintf(
|
helpText += fmt.Sprintf(
|
||||||
"\t%-30s\t%s\n",name, fix.Fixers[name].Synopsis())
|
" %-27s%s\n", name, fix.Fixers[name].Synopsis())
|
||||||
}
|
}
|
||||||
|
|
||||||
helpText += `
|
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))
|
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
|
found := false
|
||||||
|
|
||||||
for _, orderedFixer := range(o) {
|
for _, orderedFixer := range o {
|
||||||
if orderedFixer == fixer {
|
if orderedFixer == fixer {
|
||||||
found = true
|
found = true
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue