diff --git a/.golangci.next.reference.yml b/.golangci.next.reference.yml index 5e9afbb1eb74..db69b27822b8 100644 --- a/.golangci.next.reference.yml +++ b/.golangci.next.reference.yml @@ -1396,7 +1396,7 @@ linters-settings: local_replace_directives: false gosimple: - # Sxxxx checks in https://staticcheck.io/docs/configuration/options/#checks + # Sxxxx checks in https://staticcheck.dev/docs/configuration/options/#checks # Default: ["*"] checks: # Use plain channel send or receive instead of single-case select. @@ -2854,7 +2854,7 @@ linters-settings: extra-start-span-signatures: - "github.com/user/repo/telemetry/trace.Start:opentelemetry" staticcheck: - # SAxxxx checks in https://staticcheck.io/docs/configuration/options/#checks + # SAxxxx checks in https://staticcheck.dev/docs/configuration/options/#checks # Example (to disable some checks): [ "all", "-SA1000", "-SA1001"] # Default: ["*"] checks: @@ -3145,17 +3145,17 @@ linters-settings: - SA9009 stylecheck: - # https://staticcheck.io/docs/configuration/options/#dot_import_whitelist + # https://staticcheck.dev/docs/configuration/options/#dot_import_whitelist # Default: ["github.com/mmcloughlin/avo/build", "github.com/mmcloughlin/avo/operand", "github.com/mmcloughlin/avo/reg"] dot-import-whitelist: - fmt - # https://staticcheck.io/docs/configuration/options/#initialisms + # https://staticcheck.dev/docs/configuration/options/#initialisms # Default: ["ACL", "API", "ASCII", "CPU", "CSS", "DNS", "EOF", "GUID", "HTML", "HTTP", "HTTPS", "ID", "IP", "JSON", "QPS", "RAM", "RPC", "SLA", "SMTP", "SQL", "SSH", "TCP", "TLS", "TTL", "UDP", "UI", "GID", "UID", "UUID", "URI", "URL", "UTF8", "VM", "XML", "XMPP", "XSRF", "XSS", "SIP", "RTP", "AMQP", "DB", "TS"] initialisms: [ "ACL", "API", "ASCII", "CPU", "CSS", "DNS", "EOF", "GUID", "HTML", "HTTP", "HTTPS", "ID", "IP", "JSON", "QPS", "RAM", "RPC", "SLA", "SMTP", "SQL", "SSH", "TCP", "TLS", "TTL", "UDP", "UI", "GID", "UID", "UUID", "URI", "URL", "UTF8", "VM", "XML", "XMPP", "XSRF", "XSS", "SIP", "RTP", "AMQP", "DB", "TS" ] - # https://staticcheck.io/docs/configuration/options/#http_status_code_whitelist + # https://staticcheck.dev/docs/configuration/options/#http_status_code_whitelist # Default: ["200", "400", "404", "500"] http-status-code-whitelist: [ "200", "400", "404", "500" ] - # STxxxx checks in https://staticcheck.io/docs/configuration/options/#checks + # STxxxx checks in https://staticcheck.dev/docs/configuration/options/#checks # Example (to disable some checks): [ "all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022" ] # Default: ["*"] checks: diff --git a/.golangci.reference.yml b/.golangci.reference.yml index 6e761820e7f3..e135b3e4f912 100644 --- a/.golangci.reference.yml +++ b/.golangci.reference.yml @@ -969,7 +969,7 @@ linters-settings: local_replace_directives: false gosimple: - # Sxxxx checks in https://staticcheck.io/docs/configuration/options/#checks + # Sxxxx checks in https://staticcheck.dev/docs/configuration/options/#checks # Default: ["*"] checks: [ "all" ] @@ -2253,22 +2253,22 @@ linters-settings: extra-start-span-signatures: - "github.com/user/repo/telemetry/trace.Start:opentelemetry" staticcheck: - # SAxxxx checks in https://staticcheck.io/docs/configuration/options/#checks + # SAxxxx checks in https://staticcheck.dev/docs/configuration/options/#checks # Default: ["*"] checks: [ "all" ] stylecheck: - # STxxxx checks in https://staticcheck.io/docs/configuration/options/#checks + # STxxxx checks in https://staticcheck.dev/docs/configuration/options/#checks # Default: ["*"] checks: [ "all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022" ] - # https://staticcheck.io/docs/configuration/options/#dot_import_whitelist + # https://staticcheck.dev/docs/configuration/options/#dot_import_whitelist # Default: ["github.com/mmcloughlin/avo/build", "github.com/mmcloughlin/avo/operand", "github.com/mmcloughlin/avo/reg"] dot-import-whitelist: - fmt - # https://staticcheck.io/docs/configuration/options/#initialisms + # https://staticcheck.dev/docs/configuration/options/#initialisms # Default: ["ACL", "API", "ASCII", "CPU", "CSS", "DNS", "EOF", "GUID", "HTML", "HTTP", "HTTPS", "ID", "IP", "JSON", "QPS", "RAM", "RPC", "SLA", "SMTP", "SQL", "SSH", "TCP", "TLS", "TTL", "UDP", "UI", "GID", "UID", "UUID", "URI", "URL", "UTF8", "VM", "XML", "XMPP", "XSRF", "XSS", "SIP", "RTP", "AMQP", "DB", "TS"] initialisms: [ "ACL", "API", "ASCII", "CPU", "CSS", "DNS", "EOF", "GUID", "HTML", "HTTP", "HTTPS", "ID", "IP", "JSON", "QPS", "RAM", "RPC", "SLA", "SMTP", "SQL", "SSH", "TCP", "TLS", "TTL", "UDP", "UI", "GID", "UID", "UUID", "URI", "URL", "UTF8", "VM", "XML", "XMPP", "XSRF", "XSS", "SIP", "RTP", "AMQP", "DB", "TS" ] - # https://staticcheck.io/docs/configuration/options/#http_status_code_whitelist + # https://staticcheck.dev/docs/configuration/options/#http_status_code_whitelist # Default: ["200", "400", "404", "500"] http-status-code-whitelist: [ "200", "400", "404", "500" ] diff --git a/assets/linters-info.json b/assets/linters-info.json index 3971cde5a1ef..7366356b78e6 100644 --- a/assets/linters-info.json +++ b/assets/linters-info.json @@ -1125,7 +1125,7 @@ "alternativeNames": [ "megacheck" ], - "originalURL": "https://staticcheck.io/", + "originalURL": "https://staticcheck.dev/", "internal": false, "isSlow": true, "since": "v1.0.0" diff --git a/pkg/lint/lintersdb/builder_linter.go b/pkg/lint/lintersdb/builder_linter.go index 3db2ca393cfc..00178075e5b4 100644 --- a/pkg/lint/lintersdb/builder_linter.go +++ b/pkg/lint/lintersdb/builder_linter.go @@ -713,7 +713,7 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) { WithLoadForGoAnalysis(). WithPresets(linter.PresetBugs, linter.PresetMetaLinter). WithAlternativeNames(megacheckName). - WithURL("https://staticcheck.io/"), + WithURL("https://staticcheck.dev/"), linter.NewConfig(linter.NewNoopDeprecated("structcheck", cfg, linter.DeprecationError)). WithSince("v1.0.0").