mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-07 05:42:42 +00:00
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:
+1
-1
@@ -592,7 +592,7 @@ func (repo *RemoteRepo) Decode(input []byte) error {
|
||||
if err != nil {
|
||||
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
|
||||
var repo11 struct {
|
||||
var repo11 struct { // nolint: maligned
|
||||
UUID string
|
||||
Name string
|
||||
ArchiveRoot string
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@
|
||||
"staticcheck",
|
||||
"varcheck",
|
||||
"structcheck",
|
||||
"aligncheck",
|
||||
"maligned",
|
||||
"vetshadow",
|
||||
"goconst",
|
||||
"interfacer"
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
// ConfigStructure is structure of main configuration
|
||||
type ConfigStructure struct { // nolint: aligncheck
|
||||
type ConfigStructure struct { // nolint: maligned
|
||||
RootDir string `json:"rootDir"`
|
||||
DownloadConcurrency int `json:"downloadConcurrency"`
|
||||
DownloadLimit int64 `json:"downloadSpeedLimit"`
|
||||
|
||||
Reference in New Issue
Block a user