Skip to content

Commit

Permalink
Linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hk21702 committed Jan 14, 2025
1 parent f313b3c commit 6f306e8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cmd/insights/commands/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/ubuntu/ubuntu-insights/internal/constants"
)

Expand Down Expand Up @@ -49,7 +50,7 @@ func TestSetVerbosity(t *testing.T) {

func TestUsageError(t *testing.T) {
app, err := New()
assert.NoError(t, err)
require.NoError(t, err)

// Test when SilenceUsage is true
app.rootCmd.SilenceUsage = true
Expand Down
2 changes: 1 addition & 1 deletion cmd/insights/commands/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func installUploadCmd(app *App) {
app.uploadConfig = defaultUploadConfig

uploadCmd := &cobra.Command{
Use: "upload upload [sources](optional arguments)",
Use: "upload [sources](optional arguments)",
Short: "Upload metrics to the Ubuntu Insights server",
Long: "Upload metrics to the Ubuntu Insights server",
Args: cobra.ArbitraryArgs,
Expand Down
2 changes: 2 additions & 0 deletions internal/collector/collector.go
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
// Package collector is the implementation of the collector component.
// The collector component is responsible for collecting data from sources, merging it into a report, and then writing the report to disk.
package collector
2 changes: 2 additions & 0 deletions internal/consent/consent.go
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
// Package consent is the implementation of the consent manager component.
// The consent manager is responsible for managing consent files, which are used to store the consent state for a source or the global consent state.
package consent
2 changes: 2 additions & 0 deletions internal/uploader/uploader.go
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
// Package uploader implements the uploader component.
// The uploader component is responsible for uploading reports to the Ubuntu Insights server.
package uploader

0 comments on commit 6f306e8

Please sign in to comment.