Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ linters:
staticcheck:
checks:
- all
- '-ST1005' # disable rule 'Incorrectly formatted error string'
- '-ST1023' # disable rule 'Redundant type in variable declaration'
- '-QF1001' # disable rule 'Apply De Morgan’s law'
- '-QF1012' # disable rule 'Use fmt.Fprintf instead of x.Write(fmt.Sprintf(...))'
Expand Down
2 changes: 1 addition & 1 deletion internal/api/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ func (c *Client) DoWithRetry(ctx context.Context, request *http.Request, span op
span.SetTag("status_code", r.StatusCode)

if r.StatusCode != http.StatusOK {
return nil, errors.WithStack(fmt.Errorf("Slack API unexpected status code %d returned from url %s", r.StatusCode, sURL))
return nil, errors.WithStack(fmt.Errorf("unexpected status code %d returned from url %s", r.StatusCode, sURL))
}

var bytes []byte
Expand Down
2 changes: 1 addition & 1 deletion internal/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ func (c *Client) SetAuth(ctx context.Context, auth types.SlackAuth) (types.Slack

allAuths, err := c.auths(ctx)
if err != nil {
return types.SlackAuth{}, "", fmt.Errorf("Failed to fetch user authorizations %s", err)
return types.SlackAuth{}, "", fmt.Errorf("failed to fetch user authorizations %s", err)
}
allAuths[auth.TeamID] = auth

Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/create/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func getAppDirName(appName string) (string, error) {

// name cannot be a reserved word
if goutils.Contains(reserved, appName, false) {
return "", fmt.Errorf("The app name you entered is reserved. Please try a different name.")
return "", fmt.Errorf("the app name you entered is reserved")
}
return appName, nil
}
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/platform/localserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ type SocketEvent struct {
func sendWebSocketMessage(c WebSocketConnection, linkResponse *LinkResponse) error {
// Validate the response
if linkResponse == nil {
return slackerror.Wrap(fmt.Errorf("Websocket response message cannot be empty"), slackerror.ErrSocketConnection)
return slackerror.Wrap(fmt.Errorf("websocket response message cannot be empty"), slackerror.ErrSocketConnection)
}

// Prepare response for websocket
Expand Down
2 changes: 1 addition & 1 deletion internal/style/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func getTemplateFuncs() template.FuncMap {
func PrintTemplate(w io.Writer, tmpl string, data any) (err error) {
defer func() {
if r := recover(); r != nil {
err = fmt.Errorf("Failed to create the template! %+v", r)
err = fmt.Errorf("failed to create the template: %+v", r)
}
}()
t := template.New("template")
Expand Down
2 changes: 1 addition & 1 deletion internal/update/cli_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (md *Metadata) httpClientRequest(method string, host string, data interface
}

if res.StatusCode != http.StatusOK {
return errors.WithStack(fmt.Errorf("Slack CLI metadata responded with an unexpected status code %d from url %s", res.StatusCode, host))
return errors.WithStack(fmt.Errorf("CLI metadata responded with an unexpected status code %d from url %s", res.StatusCode, host))
}

var bytes []byte
Expand Down
Loading