mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
docs: improve plugins page (#4494)
This commit is contained in:
parent
2a1afc14cb
commit
eaf3ff0741
5 changed files with 45 additions and 7 deletions
15
scripts/website/expand_templates/plugins.go
Normal file
15
scripts/website/expand_templates/plugins.go
Normal file
|
@ -0,0 +1,15 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
)
|
||||
|
||||
func getPluginReference() (string, error) {
|
||||
reference, err := os.ReadFile(".custom-gcl.reference.yml")
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("can't read .custom-gcl.reference.yml: %w", err)
|
||||
}
|
||||
|
||||
return string(reference), nil
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue