Skip to content

Commit

Permalink
Ignore deprecated lints
Browse files Browse the repository at this point in the history
  • Loading branch information
justinvp committed Dec 27, 2023
1 parent e0244d9 commit a7e9c6d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/cmd/pulumi-language-java/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func (host *javaLanguageHost) GetRequiredPlugins(
ctx context.Context,
req *pulumirpc.GetRequiredPluginsRequest,
) (*pulumirpc.GetRequiredPluginsResponse, error) {
logging.V(5).Infof("GetRequiredPlugins: program=%v", req.GetProgram())
logging.V(5).Infof("GetRequiredPlugins: program=%v", req.GetProgram()) //nolint:staticcheck

// now, introspect the user project to see which pulumi resource packages it references.
pulumiPackages, err := host.determinePulumiPackages(ctx)
Expand Down Expand Up @@ -279,7 +279,7 @@ func (host *javaLanguageHost) runJavaCommand(

// Run is an RPC endpoint for LanguageRuntimeServer::Run
func (host *javaLanguageHost) Run(ctx context.Context, req *pulumirpc.RunRequest) (*pulumirpc.RunResponse, error) {

Check warning on line 281 in pkg/cmd/pulumi-language-java/main.go

View workflow job for this annotation

GitHub Actions / Lint pkg

unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
logging.V(5).Infof("Run: program=%v", req.GetProgram())
logging.V(5).Infof("Run: program=%v", req.GetProgram()) //nolint:staticcheck

config, err := host.constructConfig(req)
if err != nil {
Expand Down Expand Up @@ -407,11 +407,11 @@ func (host *javaLanguageHost) InstallDependencies(req *pulumirpc.InstallDependen

// Executor may not support the build command (for example, jar executor).
if executor.BuildArgs == nil {
logging.V(5).Infof("InstallDependencies(Directory=%s): skipping", req.Directory)
logging.V(5).Infof("InstallDependencies(Directory=%s): skipping", req.Directory) //nolint:staticcheck
return nil
}

logging.V(5).Infof("InstallDependencies(Directory=%s): starting", req.Directory)
logging.V(5).Infof("InstallDependencies(Directory=%s): starting", req.Directory) //nolint:staticcheck

closer, stdout, stderr, err := rpcutil.MakeInstallDependenciesStreams(server, req.IsTerminal)
if err != nil {
Expand All @@ -428,11 +428,11 @@ func (host *javaLanguageHost) InstallDependencies(req *pulumirpc.InstallDependen
cmd.Stderr = stderr

if err := runCommand(cmd); err != nil {
logging.V(5).Infof("InstallDependencies(Directory=%s): failed", req.Directory)
logging.V(5).Infof("InstallDependencies(Directory=%s): failed", req.Directory) //nolint:staticcheck
return err
}

logging.V(5).Infof("InstallDependencies(Directory=%s): done", req.Directory)
logging.V(5).Infof("InstallDependencies(Directory=%s): done", req.Directory) //nolint:staticcheck
return nil
}

Expand Down

0 comments on commit a7e9c6d

Please sign in to comment.