diff --git a/.golangci.yaml b/.golangci.yaml index 34321d1..e4328ea 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -58,9 +58,10 @@ linters: checks: - all - -ST1000 # Re-enable this once we have docstrings - - -ST1001 # Dot imports are good sometimes (e.g., in test packages) - -ST1003 # I like snake_case - -ST1013 # HTTP status codes are shorter and more readable than names + dot-import-whitelist: + - "git.offline-twitter.com/offline-labs/gas-stack/pkg/flowutils" exclusions: generated: lax # Don't lint generated files paths: diff --git a/doc/TODO.txt b/doc/TODO.txt index 2cc011c..5789c9d 100644 --- a/doc/TODO.txt +++ b/doc/TODO.txt @@ -1,8 +1,8 @@ TODO: auto-timestamps - SaveXyz should set created_at and updated_at; shouldn't touch is_deleted or deleted_at - if soft delete is enabled, DeleteXyz should do update (not delete) and set is_deleted and deleted_at + - ...and DeleteXyz should have pointer receiver for soft-delete - SaveXyz shouldn't set created_at in the do-update branch -- DeleteXyz should have pointer receiver - GetXyzByID should include `ErrItemIsDeleted` if item is soft-deleted TODO: primary-key