chore: disable some rules.
This commit is contained in:
parent
e4e6c37cb5
commit
886ee86eec
@ -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"]
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user