Skip to content

Commit c2371bf

Browse files
committed
dev: clean deprecated options
1 parent 54bfac8 commit c2371bf

File tree

2 files changed

+0
-78
lines changed

2 files changed

+0
-78
lines changed

.golangci.next.reference.yml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -279,23 +279,11 @@ linters-settings:
279279
# Default: false
280280
check-blank: true
281281

282-
# DEPRECATED comma-separated list of pairs of the form pkg:regex
283-
#
284-
# the regex is used to ignore names within pkg. (default "fmt:.*").
285-
# see https://github.com/kisielk/errcheck#the-deprecated-method for details
286-
ignore: fmt:.*,io/ioutil:^Read.*
287-
288282
# To disable the errcheck built-in exclude list.
289283
# See `-excludeonly` option in https://github.com/kisielk/errcheck#excluding-functions for details.
290284
# Default: false
291285
disable-default-exclusions: true
292286

293-
# DEPRECATED use exclude-functions instead.
294-
#
295-
# Path to a file containing a list of functions to exclude from checking.
296-
# See https://github.com/kisielk/errcheck#excluding-functions for details.
297-
exclude: /path/to/file.txt
298-
299287
# List of functions to exclude from checking, where each entry is a single function to exclude.
300288
# See https://github.com/kisielk/errcheck#excluding-functions for details.
301289
exclude-functions:
@@ -431,9 +419,6 @@ linters-settings:
431419
ignore-comments: true
432420

433421
gci:
434-
# DEPRECATED: use `sections` and `prefix(github.com/org/project)` instead.
435-
local-prefixes: github.com/org/project
436-
437422
# Section configuration to compare against.
438423
# Section names are case-insensitive and may contain parameters in ().
439424
# The default order of sections is `standard > default > custom > blank > dot > alias > localmodule`,
@@ -637,9 +622,6 @@ linters-settings:
637622
# The option is passed to the ruleguard 'debug-group' argument.
638623
# Default: ""
639624
debug: 'emptyDecl'
640-
# Deprecated, use 'failOn' param.
641-
# If set to true, identical to failOn='all', otherwise failOn=''
642-
failOnError: false
643625
# Determines the behavior when an error occurs while parsing ruleguard files.
644626
# If flag is not set, log error and skip rule files that contain an error.
645627
# If flag is set, the value must be a comma-separated list of error conditions.
@@ -724,9 +706,6 @@ linters-settings:
724706
replacement: 'a[b:]'
725707

726708
gofumpt:
727-
# Deprecated: use the global `run.go` instead.
728-
lang-version: "1.17"
729-
730709
# Module path which contains the source code being formatted.
731710
# Default: ""
732711
module-path: github.com/org/project
@@ -830,8 +809,6 @@ linters-settings:
830809
local_replace_directives: false
831810

832811
gosimple:
833-
# Deprecated: use the global `run.go` instead.
834-
go: "1.15"
835812
# Sxxxx checks in https://staticcheck.io/docs/configuration/options/#checks
836813
# Default: ["*"]
837814
checks: [ "all" ]
@@ -2059,15 +2036,11 @@ linters-settings:
20592036
extra-start-span-signatures:
20602037
- "github.com/user/repo/telemetry/trace.Start:opentelemetry"
20612038
staticcheck:
2062-
# Deprecated: use the global `run.go` instead.
2063-
go: "1.15"
20642039
# SAxxxx checks in https://staticcheck.io/docs/configuration/options/#checks
20652040
# Default: ["*"]
20662041
checks: [ "all" ]
20672042

20682043
stylecheck:
2069-
# Deprecated: use the global `run.go` instead.
2070-
go: "1.15"
20712044
# STxxxx checks in https://staticcheck.io/docs/configuration/options/#checks
20722045
# Default: ["*"]
20732046
checks: [ "all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022" ]
@@ -2291,9 +2264,6 @@ linters-settings:
22912264
# Suggest the use of rpc.DefaultXXPath.
22922265
# Default: false
22932266
default-rpc-path: true
2294-
# DEPRECATED Suggest the use of os.DevNull.
2295-
# Default: false
2296-
os-dev-null: true
22972267
# Suggest the use of sql.LevelXX.String().
22982268
# Default: false
22992269
sql-isolation-level: true
@@ -2303,9 +2273,6 @@ linters-settings:
23032273
# Suggest the use of constant.Kind.String().
23042274
# Default: false
23052275
constant-kind: true
2306-
# DEPRECATED Suggest the use of syslog.Priority.
2307-
# Default: false
2308-
syslog-priority: true
23092276

23102277
unconvert:
23112278
# Remove conversions that force intermediate rounding.

jsonschema/golangci.next.jsonschema.json

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -749,16 +749,6 @@
749749
"type": "boolean",
750750
"default": false
751751
},
752-
"ignore": {
753-
"description": "DEPRECATED: use `exclude-functions` instead. Comma-separated list of pairs of the form \"pkg:regex\".",
754-
"type": "string",
755-
"default": "fmt:.*"
756-
},
757-
"exclude": {
758-
"description": "DEPRECATED: use `exclude-functions` instead. Path to a file containing a list of functions to exclude from checking.",
759-
"type": "string",
760-
"examples": ["/path/to/file.txt"]
761-
},
762752
"exclude-functions": {
763753
"description": "List of functions to exclude from checking, where each entry is a single function to exclude",
764754
"type": "array",
@@ -961,11 +951,6 @@
961951
"type": "object",
962952
"additionalProperties": false,
963953
"properties": {
964-
"local-prefixes": {
965-
"description": "DEPRECATED: use 'sections' and 'prefix(github.com/org/project)' instead.",
966-
"type": "string",
967-
"examples": ["github.com/org/project"]
968-
},
969954
"sections": {
970955
"description": "Section configuration to compare against.",
971956
"type": "array",
@@ -1276,11 +1261,6 @@
12761261
"type": "boolean",
12771262
"default": false
12781263
},
1279-
"lang-version": {
1280-
"description": "Select the Go version to target.",
1281-
"type": "string",
1282-
"default": "1.15"
1283-
},
12841264
"module-path": {
12851265
"description": " Module path which contains the source code being formatted.",
12861266
"type": "string"
@@ -1480,11 +1460,6 @@
14801460
"type": "object",
14811461
"additionalProperties": false,
14821462
"properties": {
1483-
"go": {
1484-
"description": "Targeted Go version",
1485-
"type": "string",
1486-
"default": "1.13"
1487-
},
14881463
"checks": {
14891464
"type": "array",
14901465
"items": {
@@ -2351,11 +2326,6 @@
23512326
"type": "object",
23522327
"additionalProperties": false,
23532328
"properties": {
2354-
"go": {
2355-
"description": "Targeted Go version",
2356-
"type": "string",
2357-
"default": "1.13"
2358-
},
23592329
"checks": {
23602330
"type": "array",
23612331
"items": {
@@ -2375,11 +2345,6 @@
23752345
"type": "object",
23762346
"additionalProperties": false,
23772347
"properties": {
2378-
"go": {
2379-
"description": "Targeted Go version",
2380-
"type": "string",
2381-
"default": "1.13"
2382-
},
23832348
"checks": {
23842349
"type": "array",
23852350
"items": {
@@ -2877,11 +2842,6 @@
28772842
"type": "boolean",
28782843
"default": false
28792844
},
2880-
"os-dev-null": {
2881-
"description": "Suggest the use of os.DevNull.",
2882-
"type": "boolean",
2883-
"default": false
2884-
},
28852845
"sql-isolation-level": {
28862846
"description": "Suggest the use of sql.LevelXX.String().",
28872847
"type": "boolean",
@@ -2896,11 +2856,6 @@
28962856
"description": "Suggest the use of constant.Kind.String().",
28972857
"type": "boolean",
28982858
"default": false
2899-
},
2900-
"syslog-priority": {
2901-
"description": "Suggest the use of syslog.Priority.",
2902-
"type": "boolean",
2903-
"default": false
29042859
}
29052860
}
29062861
},

0 commit comments

Comments
 (0)