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
# - errchkjson # [don't see profit + I'm against of omitting errors like in the first example https://github.com/breml/errchkjson] checks types passed to the json encoding functions. Reports unsupported types and optionally reports occasions, where the check for the returned error can be omitted
396
385
# - forcetypeassert # [replaced by errcheck] finds forced type assertions
397
-
# Todo : rely on this, and skip separate go fmt check in cicd
398
386
# - gofmt # [replaced by goimports] checks whether code was gofmt-ed
399
-
# Todo : Check this
400
387
#- gofumpt # [replaced by goimports, gofumports is not available yet] checks whether code was gofumpt-ed
401
388
#- gomodguard # [use more powerful depguard] allow and block lists linter for direct Go module dependencies
402
389
- gosmopolitan # reports certain i18n/l10n anti-patterns in your Go codebase
@@ -405,14 +392,34 @@ linters:
405
392
- maintidx # measures the maintainability index of each function
406
393
- misspell # [useless] finds commonly misspelled English words in comments
407
394
# - nlreturn # [too strict and mostly code is not more readable] checks for a new line before return and branch statements to increase code clarity
408
-
# Todo : might make tests parallel
409
395
#- paralleltest # [too many false positives] detects missing usage of t.Parallel() method in your Go test
410
-
# Todo : Check this. There are some issues to be fixed
411
396
# - tagliatelle # checks the struct tags
412
397
# - tenv # [deprecated, replaced by usetesting] detects using os.Setenv instead of t.Setenv since Go1.17
413
398
#- thelper # detects golang test helpers without t.Helper() call and checks the consistency of test helpers
414
399
# - wsl # [too strict and mostly code is not more readable] whitespace linter forces you to use empty lines
415
-
400
+
exclusions:
401
+
rules:
402
+
# Stores globally accessible icon strings
403
+
- path: 'src/config/icon/icon.go'
404
+
linters:
405
+
- gochecknoglobals
406
+
# Stores prerendered styles
407
+
- path: 'src/internal/common/style.go'
408
+
linters:
409
+
- gochecknoglobals
410
+
# Some fixed variables like default config paths, version, etc.
411
+
- path: 'src/config/fixed_variable.go'
412
+
linters:
413
+
- gochecknoglobals
414
+
# Stores predefined variables, like re-used non-const strings
0 commit comments