-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit updates the previous iteration of the linter to only trigger the report if we exceed a certain number of manual unlocks. This is due to the fact that while some cases of manual unlocks are ok (and are fine passing via the nolint) there are others which should be fixed. Discerning which of those that need to be fixed and then fixing them will require considerable effort and will likely not be completed in the short term. Having the linter report over a number of manual locks will enforce future behaviour to either defer unlocks or apply the nolint. Release note: None
- Loading branch information
1 parent
0587523
commit 3904acc
Showing
6 changed files
with
14 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 0 additions & 34 deletions
34
pkg/testutils/lint/passes/deferunlockcheck/deferunlockcheck_test.go
This file was deleted.
Oops, something went wrong.
58 changes: 0 additions & 58 deletions
58
pkg/testutils/lint/passes/deferunlockcheck/testdata/src/a/a.go
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
...unlockcheck/testdata/src/github.com/cockroachdb/cockroach/pkg/util/syncutil/mutex_sync.go
This file was deleted.
Oops, something went wrong.