fix linting by using new maligned linter instead of aligncheck

upstream switched the alignment check backend and in doing so fails to run
if the old backend is defined in the config.

also skip alignment linting on a struct we use for byte decoding as we have
no choice in its member order.
This commit is contained in:
Harald Sitter
2017-10-31 12:24:31 +01:00
parent 5ef45bddda
commit 46c2182ade
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -592,7 +592,7 @@ func (repo *RemoteRepo) Decode(input []byte) error {
if err != nil { if err != nil {
if strings.HasPrefix(err.Error(), "codec.decoder: readContainerLen: Unrecognized descriptor byte: hex: 80") { if strings.HasPrefix(err.Error(), "codec.decoder: readContainerLen: Unrecognized descriptor byte: hex: 80") {
// probably it is broken DB from go < 1.2, try decoding w/o time.Time // probably it is broken DB from go < 1.2, try decoding w/o time.Time
var repo11 struct { var repo11 struct { // nolint: maligned
UUID string UUID string
Name string Name string
ArchiveRoot string ArchiveRoot string
+1 -1
View File
@@ -12,7 +12,7 @@
"staticcheck", "staticcheck",
"varcheck", "varcheck",
"structcheck", "structcheck",
"aligncheck", "maligned",
"vetshadow", "vetshadow",
"goconst", "goconst",
"interfacer" "interfacer"
+1 -1
View File
@@ -7,7 +7,7 @@ import (
) )
// ConfigStructure is structure of main configuration // ConfigStructure is structure of main configuration
type ConfigStructure struct { // nolint: aligncheck type ConfigStructure struct { // nolint: maligned
RootDir string `json:"rootDir"` RootDir string `json:"rootDir"`
DownloadConcurrency int `json:"downloadConcurrency"` DownloadConcurrency int `json:"downloadConcurrency"`
DownloadLimit int64 `json:"downloadSpeedLimit"` DownloadLimit int64 `json:"downloadSpeedLimit"`