Back to list
JamesPrial

staticcheck

by JamesPrial

WIP - collection of various Claude stuff i make/use/have_Claude_hallucinate

2🍴 0📅 Jan 23, 2026

SKILL.md


name: staticcheck description: Fix staticcheck issues

staticcheck

Advanced static analyzer with comprehensive checks.

Install

go install honnef.co/go/tools/cmd/staticcheck@latest

Usage

staticcheck ./...
staticcheck -checks=all ./...

Common Issues

SA1019: Deprecated Function

// Bad
ioutil.ReadFile("file.txt")

// Good
os.ReadFile("file.txt")

SA4006: Unused Value

// Bad
value := compute()
value = other()

// Good
_ = compute()
value := other()

SA9003: Empty Branch

// Bad
if err != nil {
    // TODO
}

// Good - remove or implement
if err != nil {
    return err
}

S1002: Simplify Condition

// Bad
if x == true {
    return true
}

// Good
return x

ST1003: Naming Convention

// Bad
func GetHTTPSUrl() string

// Good
func GetHTTPSURL() string

SA1006: Printf on os.Stderr

// Bad
fmt.Printf("error: %v\n", err)

// Good
fmt.Fprintf(os.Stderr, "error: %v\n", err)

SA4010: Result Not Used

// Bad
append(slice, item)

// Good
slice = append(slice, item)

Configuration

# .staticcheck.conf
checks = ["all", "-ST1000"]

Score

Total Score

65/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon