readme: fix typo in sample config.
Should be `max-same-issues`, not `max-same`. Also adds a trailing newline to files, which is good form, and updates the generator to handle that cleanly. Fixes #216.
This commit is contained in:
parent
1759c57577
commit
9f0dcd6e34
@ -175,7 +175,7 @@ issues:
|
|||||||
max-per-linter: 0
|
max-per-linter: 0
|
||||||
|
|
||||||
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
|
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
|
||||||
max-same: 0
|
max-same-issues: 0
|
||||||
|
|
||||||
# Show only new issues: if there are unstaged changes or untracked files,
|
# Show only new issues: if there are unstaged changes or untracked files,
|
||||||
# only those changes are analyzed, else only changes in HEAD~ are analyzed.
|
# only those changes are analyzed, else only changes in HEAD~ are analyzed.
|
||||||
|
@ -612,7 +612,7 @@ issues:
|
|||||||
max-per-linter: 0
|
max-per-linter: 0
|
||||||
|
|
||||||
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
|
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
|
||||||
max-same: 0
|
max-same-issues: 0
|
||||||
|
|
||||||
# Show only new issues: if there are unstaged changes or untracked files,
|
# Show only new issues: if there are unstaged changes or untracked files,
|
||||||
# only those changes are analyzed, else only changes in HEAD~ are analyzed.
|
# only those changes are analyzed, else only changes in HEAD~ are analyzed.
|
||||||
|
@ -76,8 +76,8 @@ func buildTemplateContext() (map[string]interface{}, error) {
|
|||||||
shortHelp := bytes.Join(helpLines[2:], []byte("\n"))
|
shortHelp := bytes.Join(helpLines[2:], []byte("\n"))
|
||||||
|
|
||||||
return map[string]interface{}{
|
return map[string]interface{}{
|
||||||
"GolangciYaml": string(golangciYaml),
|
"GolangciYaml": strings.TrimSpace(string(golangciYaml)),
|
||||||
"GolangciYamlExample": string(golangciYamlExample),
|
"GolangciYamlExample": strings.TrimSpace(string(golangciYamlExample)),
|
||||||
"LintersCommandOutputEnabledOnly": string(lintersOutParts[0]),
|
"LintersCommandOutputEnabledOnly": string(lintersOutParts[0]),
|
||||||
"LintersCommandOutputDisabledOnly": string(lintersOutParts[1]),
|
"LintersCommandOutputDisabledOnly": string(lintersOutParts[1]),
|
||||||
"EnabledByDefaultLinters": getLintersListMarkdown(true),
|
"EnabledByDefaultLinters": getLintersListMarkdown(true),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user