Skip to content

Commit

Permalink
Disable the linter
Browse files Browse the repository at this point in the history
None of these lints are good suggestions in this circumstance, because
the intention of this pull request is maximum preservation of behavior.
These lints can be addressed in a future PR.
  • Loading branch information
timraymond committed Mar 15, 2024
1 parent fada5b1 commit 9abe653
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/plugin/linuxutil/netstat_stats_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func (nr *NetstatReader) readAndUpdate() error {
return nil
}

//nolint:gomnd // magic numbers are sufficiently explained in this function
func (nr *NetstatReader) readConnectionStats(path string) error {
// Read the contents of the file into a string
data, err := os.ReadFile(path)
Expand Down Expand Up @@ -112,6 +113,7 @@ func (nr *NetstatReader) readConnectionStats(path string) error {
continue
}

//nolint:gocritic // this should be rewritten, but won't be at time of this writing
// knowing that there are two well-formed sets of statistics, it's now
// possible to examine the signifier and process the statistics into a
// semantic collection:
Expand Down
1 change: 1 addition & 0 deletions pkg/plugin/linuxutil/netstat_stats_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func TestNewNetstatReader(t *testing.T) {
assert.NotNil(t, nr)
}

//nolint:testifylint // not making linter changes to preserve exact behavior
func TestReadConnStats(t *testing.T) {
log.SetupZapLogger(log.GetDefaultLogOpts())
opts := &NetstatOpts{
Expand Down

0 comments on commit 9abe653

Please sign in to comment.