Skip to content

Commit 37df62e

Browse files
committed
Exclude vendor by default
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
1 parent 79a8771 commit 37df62e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

analyzer.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ var _ lookout.AnalyzerServer = &Analyzer{}
2525
func (a *Analyzer) NotifyReviewEvent(ctx context.Context, e *lookout.ReviewEvent) (
2626
*lookout.EventResponse, error) {
2727
changes, err := a.DataClient.GetChanges(ctx, &lookout.ChangesRequest{
28-
Head: &e.Head,
29-
Base: &e.Base,
30-
WantContents: true,
31-
WantLanguage: true,
28+
Head: &e.Head,
29+
Base: &e.Base,
30+
WantContents: true,
31+
WantLanguage: true,
32+
WantUAST: false,
33+
ExcludeVendored: true,
3234
})
3335
if err != nil {
3436
log.Errorf(err, "failed to GetChanges from a DataService")

0 commit comments

Comments
 (0)