mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-03 05:00:56 +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 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
@@ -12,7 +12,7 @@
|
|||||||
"staticcheck",
|
"staticcheck",
|
||||||
"varcheck",
|
"varcheck",
|
||||||
"structcheck",
|
"structcheck",
|
||||||
"aligncheck",
|
"maligned",
|
||||||
"vetshadow",
|
"vetshadow",
|
||||||
"goconst",
|
"goconst",
|
||||||
"interfacer"
|
"interfacer"
|
||||||
|
|||||||
+1
-1
@@ -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"`
|
||||||
|
|||||||
Reference in New Issue
Block a user