Skip to content

Commit

Permalink
lint: add ignores for staticcheck errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jul 19, 2024
1 parent 368933e commit 5f9a275
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/twittermeow/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ func (c *Client) SetProxy(proxyAddr string) error {
if err != nil {
return err
}
//lint:ignore SA1019 TODO fix deprecated method
c.http.Transport.(*http.Transport).Dial = c.socksProxy.Dial
contextDialer, ok := c.socksProxy.(proxy.ContextDialer)
if ok {
Expand Down
2 changes: 2 additions & 0 deletions pkg/twittermeow/client_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//lint:file-ignore U1000 -

package twittermeow_test

import (
Expand Down
3 changes: 3 additions & 0 deletions pkg/twittermeow/crypto/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func encodeXOR(plainArr []byte) []byte {
return encodedArr
}

//lint:ignore U1000 TODO fix unused method
func decodeSVGStr(svgStr string) [][]int {
segmentStrings := strings.Split(strings.TrimSpace(svgStr), "C")[1:]
byteArrays := [][]int{}
Expand Down Expand Up @@ -115,6 +116,7 @@ func decodeSVGStr(svgStr string) [][]int {
return byteArrays
}

//lint:ignore U1000 TODO fix unused method
func buildColorStr(arr []int) []string {
colors := []string{}
s := ""
Expand All @@ -136,6 +138,7 @@ func buildColorStr(arr []int) []string {
return colors
}

//lint:ignore U1000 TODO fix unused method
func buildEasingStr(arr []int) []float64 {
nums := []float64{}
t := 1.0
Expand Down
2 changes: 2 additions & 0 deletions pkg/twittermeow/onboarding_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ import (
)

type OnboardingClient struct {
//lint:ignore U1000 TODO fix unused field
client *Client
flowToken string
currentTasks *types.TaskResponse
}

//lint:ignore U1000 TODO fix unused method
func (c *Client) newOnboardingClient() *OnboardingClient {
return &OnboardingClient{
client: c,
Expand Down
1 change: 1 addition & 0 deletions pkg/twittermeow/polling.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func (pc *PollingClient) SetCurrentCursor(cursor string) {
pc.currentCursor = cursor
}

//lint:ignore U1000 TODO fix unused method
func (pc *PollingClient) stopPolling() error {
if pc.ticker == nil {
return ErrNotPollingUpdates
Expand Down

0 comments on commit 5f9a275

Please sign in to comment.