set exclude-use-default: false for linter

This commit is contained in:
Umputun
2020-01-27 14:17:05 -06:00
parent 22a88c579f
commit be3e5f0246
4 changed files with 5 additions and 3 deletions
+2
View File
@@ -20,3 +20,5 @@ linters:
- ineffassign
- varcheck
disable-all: true
issues:
exclude-use-default: false
+1 -1
View File
@@ -69,7 +69,7 @@ func (ic *ImportCommand) Execute(args []string) error {
// reader returns reader for file. For .gz file wraps with gunzip
func (ic *ImportCommand) reader(inp string) (reader io.Reader, err error) {
inpFile, err := os.Open(inp)
inpFile, err := os.Open(inp) // nolint
if err != nil {
return nil, errors.Wrapf(err, "import failed, can't open %s", inp)
}
+1 -1
View File
@@ -233,7 +233,7 @@ func (m *Migrator) runImport(siteID string, provider string, tmpfile string) {
}
log.Printf("[DEBUG] import request for site=%s, provider=%s", siteID, provider)
fh, err := os.Open(tmpfile)
fh, err := os.Open(tmpfile) // nolint
if err != nil {
log.Printf("[WARN] import failed, %v", err)
return
+1 -1
View File
@@ -102,7 +102,7 @@ func (f *FileSystem) Load(id string) (io.ReadCloser, int64, error) {
return nil, 0, errors.Wrapf(err, "can't get image file for %s", id)
}
fh, err := os.Open(imgFile)
fh, err := os.Open(imgFile) // nolint
if err != nil {
return nil, 0, errors.Wrapf(err, "can't load image %s", id)
}