Skip to content

Commit df71166

Browse files
committed
docs: fix wrong default
1 parent 52bc92f commit df71166

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.golangci.reference.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,17 +1353,19 @@ linters-settings:
13531353
gomoddirectives:
13541354
# Allow local `replace` directives.
13551355
# Default: false
1356-
replace-local: false
1356+
replace-local: true
1357+
13571358
# List of allowed `replace` directives.
13581359
# Default: []
13591360
replace-allow-list:
13601361
- launchpad.net/gocheck
13611362
# Allow to not explain why the version has been retracted in the `retract` directives.
13621363
# Default: false
1363-
retract-allow-no-explanation: false
1364+
retract-allow-no-explanation: true
1365+
13641366
# Forbid the use of the `exclude` directives.
13651367
# Default: false
1366-
exclude-forbidden: false
1368+
exclude-forbidden: true
13671369

13681370
gomodguard:
13691371
allowed:

jsonschema/golangci.jsonschema.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1638,7 +1638,7 @@
16381638
"replace-local": {
16391639
"description": "Allow local `replace` directives.",
16401640
"type": "boolean",
1641-
"default": true
1641+
"default": false
16421642
},
16431643
"replace-allow-list": {
16441644
"description": "List of allowed `replace` directives.",
@@ -1650,12 +1650,12 @@
16501650
"retract-allow-no-explanation": {
16511651
"description": "Allow to not explain why the version has been retracted in the `retract` directives.",
16521652
"type": "boolean",
1653-
"default": true
1653+
"default": false
16541654
},
16551655
"exclude-forbidden": {
16561656
"description": "Forbid the use of the `exclude` directives.",
16571657
"type": "boolean",
1658-
"default": true
1658+
"default": false
16591659
}
16601660
}
16611661
},

0 commit comments

Comments
 (0)