Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ linters:
msg: Keep storage and API datetimes in UTC; local conversion belongs in the UI.
- pattern: '^time\.FixedZone$'
msg: Keep storage and API datetimes in UTC; local conversion belongs in the UI.
- pattern: '^os\.Rename$'
msg: Use atomicfile.Replace from go.kenn.io/kit, or atomicfile.RenameNoReplace when the target must not exist, so a Windows reader that opened the target with share-delete can't block the rename.
analyze-types: true
exclusions:
generated: lax
Expand All @@ -61,6 +63,10 @@ linters:
- linters:
- errcheck
path: _test\.go
- linters:
- forbidigo
path: _test\.go
text: atomicfile\.Replace
paths:
- third_party$
- builtin$
Expand Down
Loading