Skip to content

Commit 1417bef

Browse files
authored
Merge pull request #6299 from seanlaii/disable-ST1000-p-comm
Add comment for disabling ST1000 and package-comments
2 parents 45cf955 + 48bab14 commit 1417bef

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.golangci.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ linters:
3737
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#if-return
3838
- name: if-return
3939
disabled: true
40+
# Disable package-comments for now since most packages in this project are primarily for internal use.
41+
# If we decide to provide public packages in the future, we can move them to a separate
42+
# repository and revisit adding package-level comments at that time.
4043
- name: package-comments
4144
disabled: true
4245
- name: superfluous-else
@@ -66,11 +69,11 @@ linters:
6669
staticcheck:
6770
checks:
6871
- all
69-
# Disable QF1008 to retain embedded fields for better readability
72+
# Disable QF1008 to retain embedded fields for better readability.
7073
- "-QF1008"
71-
# Exclude the following checks temporarily.
72-
# Will fix the issues in the following PRs.
73-
# Issue: https://github.com/karmada-io/karmada/issues/6273.
74+
# Disable ST1000 (staticcheck) for now since most packages in this project are primarily for internal use.
75+
# If we decide to provide public packages in the future, we can move them to a separate
76+
# repository and revisit adding package-level comments at that time.
7477
- "-ST1000"
7578
exclusions:
7679
generated: lax

0 commit comments

Comments
 (0)