chore: disable some rules.

This commit is contained in:
Fernandez Ludovic 2019-04-20 16:56:17 +02:00
parent e4e6c37cb5
commit 886ee86eec
5 changed files with 10 additions and 1 deletions

View File

@ -39,3 +39,7 @@
[[issues.exclude-rules]]
path = "version.go"
text = "`(version|commit|date)` is a global variable"
[[issues.exclude-rules]] ## FIXME temporary for dev
path = "cmd/"
linters = ["gochecknoglobals", "gochecknoinits"]

View File

@ -14,11 +14,13 @@ const (
keysSubDir = "private"
)
// FileInfo FIXME
type FileInfo struct {
Name string
Ext string
}
// Dump FIXME
func Dump(data *StoredData, dumpPath string, crtInfo, keyInfo FileInfo, domainSubDir bool) error {
if err := os.RemoveAll(dumpPath); err != nil {
return err

View File

@ -7,6 +7,7 @@ import (
"github.com/ldez/traefik-certs-dumper/dumper"
)
// Dump FIXME
func Dump(acmeFile, dumpPath string, crtInfo, keyInfo dumper.FileInfo, domainSubDir bool) error {
data, err := readFile(acmeFile)
if err != nil {

View File

@ -39,7 +39,7 @@ type Account struct {
KeyType certcrypto.KeyType
}
// FIXME move
// Tree FIXME move
func Tree(root, indent string) error {
fi, err := os.Stat(root)
if err != nil {

View File

@ -14,12 +14,14 @@ import (
// FIXME prefix
const storeKey = "traefik/acme/account/object"
// BaseConfig FIXME
type BaseConfig struct {
Backend store.Backend
Endpoints []string
Options *store.Config
}
// Dump FIXME
func Dump(config *BaseConfig, dumpPath string, crtInfo, keyInfo dumper.FileInfo, domainSubDir bool) error {
kvStore, err := valkeyrie.NewStore(config.Backend, config.Endpoints, config.Options)
if err != nil {