Skip to content

Commit

Permalink
ignore licence for misspell linter
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen committed Sep 22, 2023
1 parent e1170d7 commit aad7837
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ linters-settings:
min-occurrences: 3
misspell:
locale: US
ignore-words:
- licence
gosec:
excludes:
- G101
Expand Down
2 changes: 1 addition & 1 deletion pkg/fanal/analyzer/licensing/license.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var (
}

acceptedFileNames = []string{
"license", "licence", "copyright", // nolint: misspell
"license", "licence", "copyright",
}
)

Expand Down

0 comments on commit aad7837

Please sign in to comment.