Add comment for disabling ST1000 and package-comments

Signed-off-by: wei-chenglai <qazwsx0939059006@gmail.com>
This commit is contained in:
wei-chenglai 2025-04-13 22:42:47 -04:00
parent 45cf955fd0
commit 48bab1473c
1 changed files with 7 additions and 4 deletions

View File

@ -37,6 +37,9 @@ linters:
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#if-return # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#if-return
- name: if-return - name: if-return
disabled: true disabled: true
# Disable package-comments for now since most packages in this project are primarily for internal use.
# If we decide to provide public packages in the future, we can move them to a separate
# repository and revisit adding package-level comments at that time.
- name: package-comments - name: package-comments
disabled: true disabled: true
- name: superfluous-else - name: superfluous-else
@ -66,11 +69,11 @@ linters:
staticcheck: staticcheck:
checks: checks:
- all - all
# Disable QF1008 to retain embedded fields for better readability # Disable QF1008 to retain embedded fields for better readability.
- "-QF1008" - "-QF1008"
# Exclude the following checks temporarily. # Disable ST1000 (staticcheck) for now since most packages in this project are primarily for internal use.
# Will fix the issues in the following PRs. # If we decide to provide public packages in the future, we can move them to a separate
# Issue: https://github.com/karmada-io/karmada/issues/6273. # repository and revisit adding package-level comments at that time.
- "-ST1000" - "-ST1000"
exclusions: exclusions:
generated: lax generated: lax