Skip to content

Commit 5ea1adf

Browse files
committed
Replace all references to staticcheck.io with staticcheck.dev
1 parent 76bb609 commit 5ea1adf

File tree

25 files changed

+29
-29
lines changed

25 files changed

+29
-29
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ Staticcheck is a state of the art linter for the [Go programming
88
language](https://go.dev/). Using static analysis, it finds bugs and performance issues,
99
offers simplifications, and enforces style rules.
1010

11-
**Financial support by [private and corporate sponsors](http://staticcheck.io/sponsors) guarantees the tool's continued development.
11+
**Financial support by [private and corporate sponsors](http://staticcheck.dev/sponsors) guarantees the tool's continued development.
1212
Please [become a sponsor](https://github.com/users/dominikh/sponsorship) if you or your company rely on Staticcheck.**
1313

1414

1515
## Documentation
1616

17-
You can find extensive documentation on Staticcheck on [its website](https://staticcheck.io/docs/).
17+
You can find extensive documentation on Staticcheck on [its website](https://staticcheck.dev/docs/).
1818

1919
## Installation
2020

@@ -26,7 +26,7 @@ These releases can be found as git tags (e.g. `2022.1`).
2626
The easiest way of installing a release is by using `go install`, for example `go install honnef.co/go/tools/cmd/[email protected]`.
2727
Alternatively, we also offer [prebuilt binaries](https://github.com/dominikh/go-tools/releases).
2828

29-
You can find more information about installation and releases in the [documentation](https://staticcheck.io/docs/getting-started/).
29+
You can find more information about installation and releases in the [documentation](https://staticcheck.dev/docs/getting-started/).
3030

3131
### Master
3232

analysis/facts/nilness/nilness.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ func impl(pass *analysis.Pass, fn *ir.Function, seenFns map[*ir.Function]struct{
232232
return nilly
233233
case *ir.CompositeValue:
234234
// We can get here via composite literals of type parameters, for which typeutil.IsPointerLike doesn't
235-
// currently return false (see https://staticcheck.io/issues/1364). However, we only emit ir.CompositeValue
235+
// currently return false (see https://staticcheck.dev/issues/1364). However, we only emit ir.CompositeValue
236236
// for value types, so we know it can't be nil.
237237
return neverNil
238238
default:

cmd/staticcheck/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ See [the main README](https://github.com/dominikh/go-tools#installation) for ins
1111
## Documentation
1212

1313
Detailed documentation can be found on
14-
[staticcheck.io](https://staticcheck.io/docs/).
14+
[staticcheck.dev](https://staticcheck.dev/docs/).
1515

doc/run.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ <h3>Explaining checks</h3>
3535
2020.1
3636

3737
Online documentation
38-
https://staticcheck.io/docs/checks#S1039</code></pre>
38+
https://staticcheck.dev/docs/checks#S1039</code></pre>
3939

4040
<p>
4141
The output includes a one-line summary,

lintcmd/cmd.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ func (cmd *Command) explain() int {
376376
return 1
377377
}
378378
fmt.Println(check.Doc)
379-
fmt.Println("Online documentation\n https://staticcheck.io/docs/checks#" + check.Analyzer.Name)
379+
fmt.Println("Online documentation\n https://staticcheck.dev/docs/checks#" + check.Analyzer.Name)
380380
return 0
381381
}
382382

@@ -662,7 +662,7 @@ func (cmd *Command) printDiagnostics(cs []*lint.Analyzer, diagnostics []diagnost
662662
}
663663
if cmd.name == "staticcheck" {
664664
f.(*sarifFormatter).driverName = "Staticcheck"
665-
f.(*sarifFormatter).driverWebsite = "https://staticcheck.io"
665+
f.(*sarifFormatter).driverWebsite = "https://staticcheck.dev"
666666
}
667667
case "binary":
668668
fmt.Fprintln(os.Stderr, "'-f binary' not supported in this context")

lintcmd/sarif.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ func (o *sarifFormatter) Format(checks []*lint.Analyzer, diagnostics []diagnosti
259259
Text: c.Doc.Title,
260260
Markdown: c.Doc.TitleMarkdown,
261261
},
262-
HelpURI: "https://staticcheck.io/docs/checks#" + c.Analyzer.Name,
262+
HelpURI: "https://staticcheck.dev/docs/checks#" + c.Analyzer.Name,
263263
// We use our markdown as the plain text version, too. We
264264
// use very little markdown, primarily quotations,
265265
// indented code blocks and backticks. All of these are

staticcheck/lint.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3105,7 +3105,7 @@ func CheckDeprecated(pass *analysis.Pass) (interface{}, error) {
31053105
if !ok && isStdlibPath(pkgPath) {
31063106
// Deprecated object in the standard library, but we don't know the details of the deprecation.
31073107
// Don't flag it at all, to avoid flagging an object that was deprecated in 1.N when targeting 1.N-1.
3108-
// See https://staticcheck.io/issues/1108 for the background on this.
3108+
// See https://staticcheck.dev/issues/1108 for the background on this.
31093109
return
31103110
}
31113111
if ok {
@@ -3125,7 +3125,7 @@ func CheckDeprecated(pass *analysis.Pass) (interface{}, error) {
31253125
// is only applied to seriously flawed API, such as broken cryptography, users may wish to ignore those
31263126
// warnings.
31273127
//
3128-
// See also https://staticcheck.io/issues/1318.
3128+
// See also https://staticcheck.dev/issues/1318.
31293129
if !code.IsGoVersion(pass, std.DeprecatedSince) {
31303130
return
31313131
}

unused/testdata/src/example.com/constexpr/constexpr.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"unsafe"
66
)
77

8-
// https://staticcheck.io/issues/812
8+
// https://staticcheck.dev/issues/812
99

1010
var (
1111
w io.Writer //@ used("w", true)

unused/testdata/src/example.com/generated/generated.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unused/testdata/src/example.com/generated/normal.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package pkg
22

3-
// https://staticcheck.io/issues/1333
3+
// https://staticcheck.dev/issues/1333
44

55
func normal1() {} //@ used("normal1", false)
66
func normal2() {} //@ used("normal2", true)

unused/testdata/src/example.com/implicit-conversion/implicit-conversion.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package pkg
22

3-
// https://staticcheck.io/issues/810
3+
// https://staticcheck.dev/issues/810
44

55
type Thing struct { //@ used("Thing", true)
66
has struct { //@ used("has", true)
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package pkg
22

3-
// https://staticcheck.io/issues/507
3+
// https://staticcheck.dev/issues/507
44

55
var x = [3]int{1, 2, 3} //@ used("x", false)

unused/testdata/src/example.com/instantiated-functions/instantiated-functions.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package pkg
22

3-
// https://staticcheck.io/issues/1199
3+
// https://staticcheck.dev/issues/1199
44

55
type c1 struct{} //@ used("c1", false)
66

unused/testdata/src/example.com/local-type-param-sink/typeparam.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package tparamsource
22

3-
// https://staticcheck.io/issues/1282
3+
// https://staticcheck.dev/issues/1282
44

55
import "reflect"
66

unused/testdata/src/example.com/local-type-param-source/typeparam.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package tparamsource
22

3-
// https://staticcheck.io/issues/1282
3+
// https://staticcheck.dev/issues/1282
44

55
import (
66
"testing"

unused/testdata/src/example.com/skipped-test/skipped_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package pkg
22

3-
// https://staticcheck.io/issues/633
3+
// https://staticcheck.dev/issues/633
44

55
import "testing"
66

unused/testdata/src/example.com/unsafe-recursive/conversion.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package pkg
22

3-
// https://staticcheck.io/issues/1249
3+
// https://staticcheck.dev/issues/1249
44

55
import "unsafe"
66

unused/unused.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ func (g *graph) write(node ast.Node, by types.Object) {
961961

962962
case *ast.SelectorExpr:
963963
if g.opts.FieldWritesAreUses {
964-
// Writing to a field constitutes a use. See https://staticcheck.io/issues/288 for some discussion on that.
964+
// Writing to a field constitutes a use. See https://staticcheck.dev/issues/288 for some discussion on that.
965965
//
966966
// This code can also get triggered by qualified package variables, in which case it doesn't matter what we do,
967967
// because the object is in another package.

website/config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
baseURL = "https://staticcheck.io"
1+
baseURL = "https://staticcheck.dev"
22
languageCode = 'en-us'
33
title = 'Staticcheck'
44
theme = 'docsy'

website/content/changes/2019.2.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ a new way of supporting developers, directly on GitHub.
284284
GitHub Sponsors allows you to easily support developers by sponsoring them on a monthly basis, [via a few simple clicks.](https://github.com/users/dominikh/sponsorship)
285285
It is fully integrated with the platform and can use your existing billing information, making it an effortless process.
286286
**To encourage more company sponsorships I offer to display your company's logo prominently on
287-
[Staticcheck's website](https://staticcheck.io/)**
287+
[Staticcheck's website](https://staticcheck.dev/)**
288288
for
289289
[$250 USD a month](https://github.com/users/dominikh/sponsorship?utf8=%E2%9C%93&tier_id=MDIyOk1hcmtldHBsYWNlTGlzdGluZ1BsYW4yNTAy&editing=false),
290290
to show my appreciation for your contribution and to show to the world how much you care about code quality.

website/content/changes/2021.1.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ The following checks have been improved:
4848

4949
## Restructured documentation {#documentation}
5050

51-
The documentation on [the website](https://staticcheck.io) has been restructured and hopefully made more approachable.
51+
The documentation on [the website](https://staticcheck.dev) has been restructured and hopefully made more approachable.
5252
Instead of being one long document, it is now split into multiple smaller articles.
5353
In the future, more articles that look at specific aspects of Staticcheck will be added.
5454

website/content/docs/running-staticcheck/ci/github-actions/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ avoiding suggestions that are not applicable to older versions of Go.
9393

9494
If unset, this will default to the Go version specified in your go.mod.
9595

96-
See https://staticcheck.io/docs/running-staticcheck/cli/#go for more information.
96+
See https://staticcheck.dev/docs/running-staticcheck/cli/#go for more information.
9797

9898
### `build-tags`
9999

website/content/docs/running-staticcheck/cli/_index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Available since
3737
2020.1
3838
3939
Online documentation
40-
https://staticcheck.io/docs/checks#S1039
40+
https://staticcheck.dev/docs/checks#S1039
4141
```
4242

4343
The output includes a one-line summary, one or more paragraphs of helpful text, the first version of Staticcheck that the check appeared in, and a link to online documentation, which contains the same information as the output of `staticcheck -explain`.

website/layouts/shortcodes/issue.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{ with .Get 0 }}<a title="issue {{ . }}" href="https://staticcheck.io/issues/{{ . }}">issue {{ . }}</a>{{ end -}}
1+
{{ with .Get 0 }}<a title="issue {{ . }}" href="https://staticcheck.dev/issues/{{ . }}">issue {{ . }}</a>{{ end -}}
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
https://staticcheck.io/issues/{{ .Get 0 }}
1+
https://staticcheck.dev/issues/{{ .Get 0 }}

0 commit comments

Comments
 (0)