We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35ce85b commit 77282dcCopy full SHA for 77282dc
scripts/go-copyright/main.go
@@ -13,7 +13,6 @@
13
package main
14
15
import (
16
- "encoding/json"
17
"fmt"
18
"go/ast"
19
"go/parser"
@@ -137,23 +136,6 @@ func isGenerated(fset *token.FileSet, file *ast.File) bool {
137
136
return false
138
}
139
140
-func loadIgnoreFiles() []string {
141
- const cfgfile = ".licenserc.json"
142
- byts, err := os.ReadFile(cfgfile)
143
- if err != nil {
144
- return nil
145
- }
146
- var config struct {
147
- Ignore []string `json:"ignore"`
148
149
- err = json.Unmarshal(byts, &config)
150
151
- fmt.Println(fmt.Errorf("fail to parse %s", cfgfile))
152
- os.Exit(1)
153
154
- return config.Ignore
155
-}
156
-
157
func main() {
158
files, err := checkCopyright()
159
if err != nil {
0 commit comments