Skip to content

Commit

Permalink
feat: use the new plugin builder inside the commands
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Mar 5, 2024
1 parent 312da97 commit 493c019
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/commands/linters.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (c *lintersCommand) preRunE(cmd *cobra.Command, _ []string) error {
}

dbManager, err := lintersdb.NewManager(c.log.Child(logutils.DebugKeyLintersDB), c.cfg,
lintersdb.NewPluginGoBuilder(c.log), lintersdb.NewLinterBuilder())
lintersdb.NewLinterBuilder(), lintersdb.NewPluginModuleBuilder(c.log), lintersdb.NewPluginGoBuilder(c.log))
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (c *runCommand) persistentPostRunE(_ *cobra.Command, _ []string) error {

func (c *runCommand) preRunE(_ *cobra.Command, _ []string) error {
dbManager, err := lintersdb.NewManager(c.log.Child(logutils.DebugKeyLintersDB), c.cfg,
lintersdb.NewPluginGoBuilder(c.log), lintersdb.NewLinterBuilder())
lintersdb.NewLinterBuilder(), lintersdb.NewPluginModuleBuilder(c.log), lintersdb.NewPluginGoBuilder(c.log))
if err != nil {
return err
}
Expand Down

0 comments on commit 493c019

Please sign in to comment.