Skip to content

Commit ef975ed

Browse files
authored
docs: improve description for unparam.check-exported (#6210)
1 parent aaf5837 commit ef975ed

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.golangci.next.reference.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3969,11 +3969,11 @@ linters:
39693969

39703970
unparam:
39713971
# Inspect exported functions.
3972-
#
39733972
# Set to true if no external program/library imports your code.
3974-
# XXX: if you enable this setting, unparam will report a lot of false-positives in text editors:
3975-
# if it's called for subdir of a project it can't find external interfaces. All text editor integrations
3976-
# with golangci-lint call it on a directory with the changed file.
3973+
#
3974+
# IMPORTANT: If you enable this setting, unparam reports many false positives in text editors:
3975+
# when run on a subdirectory it cannot find external interfaces.
3976+
# Most editor integrations invoke golangci-lint on the directory containing the changed file.
39773977
#
39783978
# Default: false
39793979
check-exported: true

.golangci.reference.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3942,11 +3942,11 @@ linters:
39423942

39433943
unparam:
39443944
# Inspect exported functions.
3945-
#
39463945
# Set to true if no external program/library imports your code.
3947-
# XXX: if you enable this setting, unparam will report a lot of false-positives in text editors:
3948-
# if it's called for subdir of a project it can't find external interfaces. All text editor integrations
3949-
# with golangci-lint call it on a directory with the changed file.
3946+
#
3947+
# IMPORTANT: If you enable this setting, unparam reports many false positives in text editors:
3948+
# when run on a subdirectory it cannot find external interfaces.
3949+
# Most editor integrations invoke golangci-lint on the directory containing the changed file.
39503950
#
39513951
# Default: false
39523952
check-exported: true

0 commit comments

Comments
 (0)