Skip to content

Commit

Permalink
fixed parsing ng lint output
Browse files Browse the repository at this point in the history
  • Loading branch information
godfryd committed Mar 20, 2021
1 parent 8d6f395 commit 8154fd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion agent/kraken/agent/kraken_nglint.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import os
import json
import logging
import subprocess

from . import utils
from . import tool
Expand Down Expand Up @@ -67,7 +68,7 @@ def run_analysis(step, report_issue=None):
repo_parent = os.path.abspath(cwd) + os.path.sep

cmd = 'npx ng lint --format json --force'
ret, out = utils.execute(cmd, cwd=cwd, out_prefix='', timeout=180)
ret, out = utils.execute(cmd, cwd=cwd, out_prefix='', timeout=180, stderr=subprocess.DEVNULL)
if ret != 0:
log.error('ng list exited with non-zero retcode: %s', ret)
return ret, 'ng list exited with non-zero retcode'
Expand Down

0 comments on commit 8154fd2

Please sign in to comment.