Fix linter warnings & set fixed linter version (#21852)

This commit is contained in:
Ivan 2022-08-07 07:20:55 +03:00 committed by GitHub
parent 1176e0823e
commit 1286aac411
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ fmt:
lint-install: lint-install:
ifeq (,$(wildcard test -f bin/golangci-lint)) ifeq (,$(wildcard test -f bin/golangci-lint))
@echo " > Installing golint" @echo " > Installing golint"
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/v1.45.2/install.sh | sh -s
endif endif
lint: lint-install lint: lint-install

View File

@ -43,7 +43,7 @@ type (
) )
// Default is a configuration instance. // Default is a configuration instance.
var Default = Config{} // nolint:gochecknoglobals // config must be global var Default = Config{} //nolint:gochecknoglobals // config must be global
// SetConfig reads a config file and returs an initialized config instance. // SetConfig reads a config file and returs an initialized config instance.
func SetConfig(confPath string) error { func SetConfig(confPath string) error {

View File

@ -75,7 +75,7 @@ func (s *Service) FixLogo(f *file.AssetFile) error {
} }
err = validation.ValidateLogoFileSize(f.Path()) err = validation.ValidateLogoFileSize(f.Path())
if err != nil { // nolint:staticcheck if err != nil { //nolint:staticcheck
// TODO: Compress images. // TODO: Compress images.
} }