Ensure help output is consistently formatted

Signed-off-by: Brendan Devenney <brendan.devenney@form3.tech>
This commit is contained in:
Brendan Devenney 2019-07-24 17:40:05 +01:00
parent 75d8d7fce5
commit 6520814a6c
No known key found for this signature in database
GPG Key ID: 71615073631A01E5
2 changed files with 4 additions and 4 deletions

View File

@ -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 += `

View File

@ -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
@ -85,4 +85,4 @@ func TestFix_allFixersEnabled(t *testing.T) {
t.Fatalf("Did not find Fixer %s in FixerOrder", fixer)
}
}
}
}