Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit50f2fca

Browse files
authored
chore: Add comment explaining why testpackage is enabled (#774)
A discussion (linked below) was had that touched on why this linteris enabled. To avoid losing that history, adding the comment inline withour linting rules can avoid duplicating this discussion!#741 (comment)
1 parent0d53795 commit50f2fca

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎.golangci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,13 @@ linters:
251251
-staticcheck
252252
-structcheck
253253
-tenv
254+
# In Go, it's possible for a package to test it's internal functionality
255+
# without testing any exported functions. This is enabled to promote
256+
# decomposing a package before testing it's internals. A function caller
257+
# should be able to test most of the functionality from exported functions.
258+
#
259+
# There are edge-cases to this rule, but they should be carefully considered
260+
# to avoid structural inconsistency.
254261
-testpackage
255262
-tparallel
256263
-typecheck

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp