Skip to content

Commit d2c5a6d

Browse files
committed
linting
1 parent 51447b1 commit d2c5a6d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cmd/lk/agent.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,7 @@ func createAgent(ctx context.Context, cmd *cli.Command) error {
541541

542542
projectType, err := agentfs.DetectProjectType(os.DirFS(workingDir))
543543
if err != nil {
544+
//lint:ignore ST1005 // error string intentionally capitalized as we print it to the user.
544545
return fmt.Errorf("Unable to determine agent language: %w, please navigate to a directory containing an agent written in a supported language", err)
545546
}
546547
fmt.Printf("Detected agent language [%s]\n", util.Accented(string(projectType)))
@@ -717,7 +718,8 @@ func deployAgent(ctx context.Context, cmd *cli.Command) error {
717718

718719
projectType, err := agentfs.DetectProjectType(os.DirFS(workingDir))
719720
if err != nil {
720-
return fmt.Errorf("Unable to determine agent language: %w, please make sure you are inside a directory containing an agent written in a supported language", err)
721+
//lint:ignore ST1005 // error string intentionally capitalized as we print it to the user.
722+
return fmt.Errorf("Unable to determine agent language: %w, please navigate to a directory containing an agent written in a supported language", err)
721723
}
722724
fmt.Printf("Detected agent language [%s]\n", util.Accented(string(projectType)))
723725

@@ -1438,7 +1440,8 @@ func generateAgentDockerfile(ctx context.Context, cmd *cli.Command) error {
14381440

14391441
projectType, err := agentfs.DetectProjectType(os.DirFS(workingDir))
14401442
if err != nil {
1441-
return fmt.Errorf("Unable to determine agent language: %w, please make sure you are inside a directory containing an agent written in a supported language", err)
1443+
//lint:ignore ST1005 // error string intentionally capitalized as we print it to the user.
1444+
return fmt.Errorf("Unable to determine agent language: %w, please navigate to a directory containing an agent written in a supported language", err)
14421445
}
14431446
fmt.Printf("Detected agent language [%s]\n", util.Accented(string(projectType)))
14441447

0 commit comments

Comments
 (0)