mirror of
https://github.com/appleboy/drone-ssh.git
synced 2026-06-04 10:15:07 +08:00
chore: update and streamline linting configuration and error formatting
- Update `.golangci.yaml` to version 2 and streamline settings - Remove specific linters from `.golangci.yaml` configuration - Add exclusion and formatter settings to `.golangci.yaml` - Change error message formatting in `plugin.go` to lowercase - Use `strings.ReplaceAll` instead of `strings.Replace` for better readability and performance in `plugin.go` and `plugin_test.go` Signed-off-by: appleboy <appleboy.tw@gmail.com>
This commit is contained in:
+1
-1
@@ -638,7 +638,7 @@ func TestEnvOutput(t *testing.T) {
|
||||
}
|
||||
|
||||
func unindent(text string) string {
|
||||
return strings.TrimSpace(strings.Replace(text, "\t", "", -1))
|
||||
return strings.TrimSpace(strings.ReplaceAll(text, "\t", ""))
|
||||
}
|
||||
|
||||
func TestPlugin_scriptCommands(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user