mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-12 06:24:10 +01:00
build: fix linting issues introduced by latest revive release
This commit is contained in:
2
Makefile
2
Makefile
@@ -148,7 +148,7 @@ test-coverage: | $(GOCOV) $(GOCOVXML) $(GOTESTSUM) ; $(info $(M) running coverag
|
||||
.PHONY: lint
|
||||
lint: .lint-go~ .lint-js~ ## Run linting
|
||||
.lint-go~: $(shell $(LSFILES) '*.go' 2> /dev/null) | $(REVIVE) ; $(info $(M) running golint…)
|
||||
$Q $(REVIVE) -formatter friendly -set_exit_status $?
|
||||
$Q $(REVIVE) -formatter friendly -set_exit_status ./...
|
||||
$Q touch $@
|
||||
.lint-js~: $(shell $(LSFILES) '*.js' '*.vue' '*.html' 2> /dev/null)
|
||||
.lint-js~: console/frontend/node_modules ; $(info $(M) running jslint…)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// SPDX-FileCopyrightText: 2022 Free Mobile
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
// Package mocks contains mocks for clickhousedb package.
|
||||
package mocks
|
||||
|
||||
// This is empty to ensure the package exists to help Dependabot.
|
||||
|
||||
@@ -160,6 +160,7 @@ func SubnetMapUnmarshallerHook[V any]() mapstructure.DecodeHookFunc {
|
||||
}
|
||||
}
|
||||
|
||||
// MarshalYAML turns a subnet into a map that can be marshaled.
|
||||
func (sm SubnetMap[V]) MarshalYAML() (interface{}, error) {
|
||||
return sm.ToMap(), nil
|
||||
}
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
|
||||
//go:build !release
|
||||
|
||||
// Package helpers contains small functions usable by any other
|
||||
// package, both for testing or not.
|
||||
package helpers
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
// SPDX-FileCopyrightText: 2022 Free Mobile
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
// Package kafka exposes some common helpers for Kafka, including the
|
||||
// configuration struture.
|
||||
package kafka
|
||||
|
||||
import "github.com/Shopify/sarama"
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// SPDX-FileCopyrightText: 2022 Free Mobile
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
// Package mocks contains mocks for conntrackfixer package.
|
||||
package mocks
|
||||
|
||||
// This is empty to ensure the package exists to help Dependabot.
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// SPDX-FileCopyrightText: 2022 Free Mobile
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
// Package authentication handles user authentication for the console.
|
||||
package authentication
|
||||
|
||||
import "akvorado/common/reporter"
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
// SPDX-FileCopyrightText: 2022 Free Mobile
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
// Package database handles connection to a persistent database to
|
||||
// save console settings.
|
||||
package database
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// SPDX-FileCopyrightText: 2022 Free Mobile
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
// Package filter parses and transforms a user filter.
|
||||
package filter
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
// SPDX-FileCopyrightText: 2022 Free Mobile
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
// Package decoder handles the protocol-independent part of flow
|
||||
// decoding.
|
||||
package decoder
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// SPDX-FileCopyrightText: 2022 Free Mobile
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
// Package input defines the interface of an input module for inlet.
|
||||
package input
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// SPDX-FileCopyrightText: 2022 Free Mobile
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
// Package kafka handles Kafka-related configuration for the orchestrator.
|
||||
package kafka
|
||||
|
||||
import (
|
||||
|
||||
Reference in New Issue
Block a user