mirror of
https://github.com/Adembc/lazyssh.git
synced 2026-07-14 12:13:34 +02:00
fix linter config
This commit is contained in:
@@ -15,14 +15,6 @@ issues:
|
|||||||
- lll
|
- lll
|
||||||
|
|
||||||
|
|
||||||
# exclude some linters for the test directory and test files
|
|
||||||
- path: test/.*|.*_test\.go
|
|
||||||
linters:
|
|
||||||
- dupl
|
|
||||||
- errcheck
|
|
||||||
- goconst
|
|
||||||
- gocyclo
|
|
||||||
- gosec
|
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
disable-all: true
|
disable-all: true
|
||||||
@@ -76,8 +68,6 @@ linters-settings:
|
|||||||
- whyNoLint
|
- whyNoLint
|
||||||
- hugeParam
|
- hugeParam
|
||||||
|
|
||||||
goimports:
|
|
||||||
local-prefixes: github.com/kubeflow/notebooks/workspaces/backend
|
|
||||||
|
|
||||||
goheader:
|
goheader:
|
||||||
template: |-
|
template: |-
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ func (m *metadataManager) updateServer(server domain.Server) error {
|
|||||||
func (m *metadataManager) deleteServer(alias string) error {
|
func (m *metadataManager) deleteServer(alias string) error {
|
||||||
metadata, err := m.loadAll()
|
metadata, err := m.loadAll()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil // Nothing to delete if we can't load
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
delete(metadata, alias)
|
delete(metadata, alias)
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"lissene": {
|
|
||||||
"tags": [
|
|
||||||
"test"
|
|
||||||
],
|
|
||||||
"last_seen": "2025-08-18T15:16:55+01:00"
|
|
||||||
},
|
|
||||||
"smeet1": {
|
|
||||||
"last_seen": "0001-01-01T00:00:00Z"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user