Add check for Also See for READMEs (#4261)
Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
parent
8759d00edd
commit
fb5efa203d
1 changed files with 4 additions and 0 deletions
|
@ -141,6 +141,10 @@ func sectionsFromReadme(readme string) error {
|
|||
s := bufio.NewScanner(f)
|
||||
for s.Scan() {
|
||||
line := s.Text()
|
||||
if strings.HasPrefix(line, "## Also See") {
|
||||
return fmt.Errorf("Please use %q instead of %q", "See Also", "Also See")
|
||||
}
|
||||
|
||||
switch section {
|
||||
case 0:
|
||||
if strings.HasPrefix(line, "## Name") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue