chore: disable some rules.
This commit is contained in:
parent
e4e6c37cb5
commit
886ee86eec
@ -39,3 +39,7 @@
|
|||||||
[[issues.exclude-rules]]
|
[[issues.exclude-rules]]
|
||||||
path = "version.go"
|
path = "version.go"
|
||||||
text = "`(version|commit|date)` is a global variable"
|
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"
|
keysSubDir = "private"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// FileInfo FIXME
|
||||||
type FileInfo struct {
|
type FileInfo struct {
|
||||||
Name string
|
Name string
|
||||||
Ext string
|
Ext string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Dump FIXME
|
||||||
func Dump(data *StoredData, dumpPath string, crtInfo, keyInfo FileInfo, domainSubDir bool) error {
|
func Dump(data *StoredData, dumpPath string, crtInfo, keyInfo FileInfo, domainSubDir bool) error {
|
||||||
if err := os.RemoveAll(dumpPath); err != nil {
|
if err := os.RemoveAll(dumpPath); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
@ -7,6 +7,7 @@ import (
|
|||||||
"github.com/ldez/traefik-certs-dumper/dumper"
|
"github.com/ldez/traefik-certs-dumper/dumper"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Dump FIXME
|
||||||
func Dump(acmeFile, dumpPath string, crtInfo, keyInfo dumper.FileInfo, domainSubDir bool) error {
|
func Dump(acmeFile, dumpPath string, crtInfo, keyInfo dumper.FileInfo, domainSubDir bool) error {
|
||||||
data, err := readFile(acmeFile)
|
data, err := readFile(acmeFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@ -39,7 +39,7 @@ type Account struct {
|
|||||||
KeyType certcrypto.KeyType
|
KeyType certcrypto.KeyType
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME move
|
// Tree FIXME move
|
||||||
func Tree(root, indent string) error {
|
func Tree(root, indent string) error {
|
||||||
fi, err := os.Stat(root)
|
fi, err := os.Stat(root)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@ -14,12 +14,14 @@ import (
|
|||||||
// FIXME prefix
|
// FIXME prefix
|
||||||
const storeKey = "traefik/acme/account/object"
|
const storeKey = "traefik/acme/account/object"
|
||||||
|
|
||||||
|
// BaseConfig FIXME
|
||||||
type BaseConfig struct {
|
type BaseConfig struct {
|
||||||
Backend store.Backend
|
Backend store.Backend
|
||||||
Endpoints []string
|
Endpoints []string
|
||||||
Options *store.Config
|
Options *store.Config
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Dump FIXME
|
||||||
func Dump(config *BaseConfig, dumpPath string, crtInfo, keyInfo dumper.FileInfo, domainSubDir bool) error {
|
func Dump(config *BaseConfig, dumpPath string, crtInfo, keyInfo dumper.FileInfo, domainSubDir bool) error {
|
||||||
kvStore, err := valkeyrie.NewStore(config.Backend, config.Endpoints, config.Options)
|
kvStore, err := valkeyrie.NewStore(config.Backend, config.Endpoints, config.Options)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user