Skip to content

Commit ca832f7

Browse files
committed
docs: update reference and schema
1 parent f57a088 commit ca832f7

File tree

2 files changed

+53
-53
lines changed

2 files changed

+53
-53
lines changed

.golangci.next.reference.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -28,31 +28,6 @@ run:
2828
build-tags:
2929
- mytag
3030

31-
# Which dirs to skip: issues from them won't be reported.
32-
# Can use regexp here: `generated.*`, regexp is applied on full path,
33-
# including the path prefix if one is set.
34-
# Default dirs are skipped independently of this option's value (see skip-dirs-use-default).
35-
# "/" will be replaced by current OS file path separator to properly work on Windows.
36-
# Default: []
37-
skip-dirs:
38-
- src/external_libs
39-
- autogenerated_by_my_lib
40-
41-
# Enables skipping of directories:
42-
# - vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
43-
# Default: true
44-
skip-dirs-use-default: false
45-
46-
# Which files to skip: they will be analyzed, but issues from them won't be reported.
47-
# There is no need to include all autogenerated files,
48-
# we confidently recognize autogenerated files.
49-
# If it's not, please let us know.
50-
# "/" will be replaced by current OS file path separator to properly work on Windows.
51-
# Default: []
52-
skip-files:
53-
- ".*\\.my\\.go$"
54-
- lib/bad.go
55-
5631
# If set, we pass it to "go list -mod={option}". From "go help modules":
5732
# If invoked with -mod=readonly, the go command is disallowed from the implicit
5833
# automatic updating of go.mod described above. Instead, it fails when any changes
@@ -2810,10 +2785,35 @@ issues:
28102785
# Default: true
28112786
exclude-use-default: false
28122787

2813-
# If set to true exclude and exclude-rules regular expressions become case-sensitive.
2788+
# If set to true `exclude` and `exclude-rules` regular expressions become case-sensitive.
28142789
# Default: false
28152790
exclude-case-sensitive: false
28162791

2792+
# Which dirs to exclude: issues from them won't be reported.
2793+
# Can use regexp here: `generated.*`, regexp is applied on full path,
2794+
# including the path prefix if one is set.
2795+
# Default dirs are skipped independently of this option's value (see skip-dirs-use-default).
2796+
# "/" will be replaced by current OS file path separator to properly work on Windows.
2797+
# Default: []
2798+
exclude-dirs:
2799+
- src/external_libs
2800+
- autogenerated_by_my_lib
2801+
2802+
# Enables exclude of directories:
2803+
# - vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
2804+
# Default: true
2805+
exclude-dirs-use-default: false
2806+
2807+
# Which files to exclude: they will be analyzed, but issues from them won't be reported.
2808+
# There is no need to include all autogenerated files,
2809+
# we confidently recognize autogenerated files.
2810+
# If it's not, please let us know.
2811+
# "/" will be replaced by current OS file path separator to properly work on Windows.
2812+
# Default: []
2813+
exclude-files:
2814+
- ".*\\.my\\.go$"
2815+
- lib/bad.go
2816+
28172817
# To follow strict Go autogenerated file convention.
28182818
# https://go.dev/s/generatedcode
28192819
# By default a lax pattern is applied.

jsonschema/golangci.next.jsonschema.json

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -422,33 +422,6 @@
422422
"default": [],
423423
"examples": [["mytag"]]
424424
},
425-
"skip-dirs": {
426-
"description": "Which directories to skip: issues from them won't be reported.",
427-
"type": "array",
428-
"items": {
429-
"description": "You can use regexp here. The regexp is applied on the full path.\n\"/\" will be replaced by current OS file path separator to properly work on Windows.",
430-
"type": "string",
431-
"examples": ["generated.*"]
432-
},
433-
"default": [],
434-
"examples": [["src/external_libs", "autogenerated_by_my_lib"]]
435-
},
436-
"skip-dirs-use-default": {
437-
"description": "Enable skipping of directories \"vendor\", \"third_party\", \"testdata\", \"examples\", \"Godeps\", and \"builtin\".",
438-
"type": "boolean",
439-
"default": true
440-
},
441-
"skip-files": {
442-
"description": "Which files to skip: they will be analyzed, but issues from them will not be reported.",
443-
"type": "array",
444-
"items": {
445-
"description": "You can use regexp here. There is no need to include all autogenerated files, we confidently recognize them. If that is not the case, please let us know.\n\"/\" will be replaced by current OS file path separator to properly work on Windows.",
446-
"type": "string",
447-
"examples": [".*\\.my\\.go$"]
448-
},
449-
"default": [],
450-
"examples": [[".*\\.my\\.go$", "lib/bad.go"]]
451-
},
452425
"modules-download-mode": {
453426
"description": "Option to pass to \"go list -mod={option}\".\nSee \"go help modules\" for more information.",
454427
"enum": ["mod", "readonly", "vendor"]
@@ -3347,6 +3320,33 @@
33473320
"type": "boolean",
33483321
"default": false
33493322
},
3323+
"exclude-dirs": {
3324+
"description": "Which directories to exclude: issues from them won't be reported.",
3325+
"type": "array",
3326+
"items": {
3327+
"description": "You can use regexp here. The regexp is applied on the full path.\n\"/\" will be replaced by current OS file path separator to properly work on Windows.",
3328+
"type": "string",
3329+
"examples": ["generated.*"]
3330+
},
3331+
"default": [],
3332+
"examples": [["src/external_libs", "autogenerated_by_my_lib"]]
3333+
},
3334+
"exclude-dirs-use-default": {
3335+
"description": "Enable exclusion of directories \"vendor\", \"third_party\", \"testdata\", \"examples\", \"Godeps\", and \"builtin\".",
3336+
"type": "boolean",
3337+
"default": true
3338+
},
3339+
"exclude-files": {
3340+
"description": "Which files to exclude: they will be analyzed, but issues from them will not be reported.",
3341+
"type": "array",
3342+
"items": {
3343+
"description": "You can use regexp here. There is no need to include all autogenerated files, we confidently recognize them. If that is not the case, please let us know.\n\"/\" will be replaced by current OS file path separator to properly work on Windows.",
3344+
"type": "string",
3345+
"examples": [".*\\.my\\.go$"]
3346+
},
3347+
"default": [],
3348+
"examples": [[".*\\.my\\.go$", "lib/bad.go"]]
3349+
},
33503350
"include": {
33513351
"description": "The list of ids of default excludes to include or disable.",
33523352
"type": "array",

0 commit comments

Comments
 (0)