E5FD Uncommented nolintlint, now comment is a must while adding a nolint directive. by Akshay2191 · Pull Request #1215 · nginx/agent · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
worked on PR review comments
  • Loading branch information
Akshay2191 committed Aug 18, 2025
commit f25ca7eb8130780a02fb4c8d8d4ce857bbb54c0a
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (nls *NginxLogScraper) ID() component.ID {
return component.NewID(metadata.Type)
}

//nolint:unparam //// Result is always nil
//nolint:unparam // Result is always nil
func (nls *NginxLogScraper) Start(parentCtx context.Context, _ component.Host) error {
nls.logger.Info("NGINX access log scraper started")
ctx, cancel := context.WithCancel(parentCtx)
Expand Down
2 changes: 1 addition & 1 deletion pkg/files/file_stream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (

var letters = []byte("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")

//nolint:gosec // random number generater if fine for test case.
//nolint:gosec // random number generater is fine for test case.
func randBytes(n int) []byte {
b := make([]byte, n)
for i := range b {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/utils/grpc_management_plane_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func SetupConnectionTest(tb testing.TB, expectNoErrorsInLogs, nginxless, auxilia

// setupContainerEnvironment sets up the container environment for testing.
//
//nolint:revive // flag is required for container
//nolint:revive // "auxiliaryServer" flag is required for container
func setupContainerEnvironment(ctx context.Context, tb testing.TB, nginxless, auxiliaryServer bool,
agentConfig string,
) {
Expand Down
2 changes: 1 addition & 1 deletion test/model/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func ConfigContext() *model.NginxConfigContext {
}
}

//nolint:revive // all the aruments are necessary.
//nolint:revive // all the arguments are necessary.
func ConfigContextWithNames(
accessLogName,
combinedAccessLogName,
Expand Down
Loading
0