You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The version of godoclint has removed extra configuration parameters, and
introduced a new `default` parameter to control the default set of enabled
rules.
Signed-off-by: Babak K. Shandiz <[email protected]>
Copy file name to clipboardExpand all lines: jsonschema/golangci.next.jsonschema.json
+7-16Lines changed: 7 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -1863,9 +1863,15 @@
1863
1863
"godoclintSettings": {
1864
1864
"type": "object",
1865
1865
"properties": {
1866
+
"default": {
1867
+
"type": "string",
1868
+
"enum": ["all", "basic", "none"],
1869
+
"default": "basic",
1870
+
"description": "Default set of rules to enable."
1871
+
},
1866
1872
"enable": {
1867
1873
"default": null,
1868
-
"description": "List of rules to enable.",
1874
+
"description": "List of rules to enable in addition to the default set.",
1869
1875
"oneOf": [
1870
1876
{
1871
1877
"type": "array",
@@ -1909,16 +1915,6 @@
1909
1915
}
1910
1916
}
1911
1917
},
1912
-
"pkg-doc": {
1913
-
"type": "object",
1914
-
"properties": {
1915
-
"start-with": {
1916
-
"type": "string",
1917
-
"description": "The start of a valid package godoc (e.g., \"Package <NAME>...\").",
1918
-
"default": "Package"
1919
-
}
1920
-
}
1921
-
},
1922
1918
"require-doc": {
1923
1919
"type": "object",
1924
1920
"properties": {
@@ -1941,11 +1937,6 @@
1941
1937
"type": "boolean",
1942
1938
"description": "Include unexported symbols when applying the `start-with-name` rule.",
1943
1939
"default": false
1944
-
},
1945
-
"pattern": {
1946
-
"type": "string",
1947
-
"description": "Acceptable start pattern (regexp) for godoc starte when applying the `start-with-name` rule. The `%` placeholder is where the corresponding symbol name should should appear. An omitted placeholder means the symbol name should appear at the end of the pattern.",
Copy file name to clipboardExpand all lines: pkg/golinters/godoclint/testdata/godoclint_full_fail.go
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
4
4
// Asserting rule "pkg-doc"
5
5
6
-
// bad godoc // want `package godoc should start with "PACKAGE testdata "`
6
+
// bad godoc // want `package godoc should start with "Package testdata "`
7
7
package testdata
8
8
9
9
// This is a special stdlib import because the package itself has issues that
@@ -79,7 +79,7 @@ func (BarType) barFunc() {} //foo:bar // want `symbol should have a godoc \("bar
79
79
80
80
// Asserting rule "no-unused-link"
81
81
82
-
// GODOC constWithUnusedLink point to [used] and unused links. // want `godoc has unused link \("unused"\)`
82
+
// constWithUnusedLink point to [used] and unused links. // want `godoc has unused link \("unused"\)`
83
83
//
84
84
// [used]: https://example.com
85
85
//
@@ -88,5 +88,5 @@ const constWithUnusedLink = 1
88
88
89
89
// Asserting rule "max-len"
90
90
91
-
// GODOC constWithTooLongGodoc has a very long godoc that exceeds the maximum allowed length for godoc comments in this test setup. // want `godoc line is too long \(175 > 127\)`
91
+
// constWithTooLongGodoc has a very long godoc that exceeds the maximum allowed length for godoc comments in this test setup. // want `godoc line is too long \(169 > 127\)`
0 commit comments