Skip to content

Commit

Permalink
Remove IDEA file://$PROJECT_DIR$/ from outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
tonybaloney committed Feb 3, 2020
1 parent 7e477a0 commit 6543ffe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/actions/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@

def main():
data = json.load(sys.stdin)
cnt = 0
if 'problems' in data:
for problem in data['problems']:
fn = problem['file'].replace('file:///github/workspace/', '')
fn = problem['file'].replace('file://$PROJECT_DIR$/', '')
line = problem['line']
col = problem['offset']
description = problem['description']
print("found issue in {0}".format(fn))
print(f"::warning file={fn},line={line},col={col}::{description}")
cnt += 1
print("Found {0} issues".format(cnt))

if __name__ == "__main__":
main()

0 comments on commit 6543ffe

Please sign in to comment.