Skip to content

Commit 493c019

Browse files
committed
feat: use the new plugin builder inside the commands
1 parent 312da97 commit 493c019

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/commands/linters.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func (c *lintersCommand) preRunE(cmd *cobra.Command, _ []string) error {
6565
}
6666

6767
dbManager, err := lintersdb.NewManager(c.log.Child(logutils.DebugKeyLintersDB), c.cfg,
68-
lintersdb.NewPluginGoBuilder(c.log), lintersdb.NewLinterBuilder())
68+
lintersdb.NewLinterBuilder(), lintersdb.NewPluginModuleBuilder(c.log), lintersdb.NewPluginGoBuilder(c.log))
6969
if err != nil {
7070
return err
7171
}

pkg/commands/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func (c *runCommand) persistentPostRunE(_ *cobra.Command, _ []string) error {
177177

178178
func (c *runCommand) preRunE(_ *cobra.Command, _ []string) error {
179179
dbManager, err := lintersdb.NewManager(c.log.Child(logutils.DebugKeyLintersDB), c.cfg,
180-
lintersdb.NewPluginGoBuilder(c.log), lintersdb.NewLinterBuilder())
180+
lintersdb.NewLinterBuilder(), lintersdb.NewPluginModuleBuilder(c.log), lintersdb.NewPluginGoBuilder(c.log))
181181
if err != nil {
182182
return err
183183
}

0 commit comments

Comments
 (0)