Skip to content

Commit

Permalink
apply linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Myzel394 committed Sep 28, 2024
1 parent b1a5898 commit ac1d14d
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion handlers/sshd_config/analyzer/analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,3 @@ func Analyze(

return nil
}

1 change: 0 additions & 1 deletion handlers/sshd_config/analyzer/match_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,3 @@ Match User
t.Errorf("Expected 1 error, got %v", len(errors))
}
}

1 change: 0 additions & 1 deletion handlers/sshd_config/fields/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ var AllowedDuplicateOptions = map[string]struct{}{
"Match": {},
"Port": {},
}

6 changes: 3 additions & 3 deletions root-handler/lsp-utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ var valueToLanguageMap = map[string]SupportedLanguage{
"sshd_config": LanguageSSHDConfig,
"sshdconfig": LanguageSSHDConfig,

"ssh_config": LanguageSSHConfig,
"sshconfig": LanguageSSHConfig,
"ssh_config": LanguageSSHConfig,
"sshconfig": LanguageSSHConfig,

".ssh/config": LanguageSSHConfig,
".ssh/config": LanguageSSHConfig,
"~/.ssh/config": LanguageSSHConfig,

"fstab": LanguageFstab,
Expand Down
2 changes: 1 addition & 1 deletion root-handler/text-document-did-change.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
aliases "config-lsp/handlers/aliases/lsp"
fstab "config-lsp/handlers/fstab/lsp"
hosts "config-lsp/handlers/hosts/lsp"
sshdconfig "config-lsp/handlers/sshd_config/lsp"
sshconfig "config-lsp/handlers/ssh_config/lsp"
sshdconfig "config-lsp/handlers/sshd_config/lsp"
wireguard "config-lsp/handlers/wireguard/lsp"

"github.com/tliron/glsp"
Expand Down

0 comments on commit ac1d14d

Please sign in to comment.