diff options
author | James McCoy <jamessan@jamessan.com> | 2022-07-05 09:53:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-05 09:53:41 -0400 |
commit | 41785b1b0cd8b54700110d0c83f599126b38a8c9 (patch) | |
tree | 5496f7cd86dd4b54cff90b754a8916466569a44c /src/clint.py | |
parent | a4801b803439d0bfa412383462af69f8d7e56835 (diff) | |
parent | 5b609bbefbd6aa237b187901f68723014c9abf78 (diff) | |
download | rneovim-41785b1b0cd8b54700110d0c83f599126b38a8c9.tar.gz rneovim-41785b1b0cd8b54700110d0c83f599126b38a8c9.tar.bz2 rneovim-41785b1b0cd8b54700110d0c83f599126b38a8c9.zip |
Merge pull request #19223 from lewis6991/ghaction
build: add github action annotations for clint
Diffstat (limited to 'src/clint.py')
-rwxr-xr-x | src/clint.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/clint.py b/src/clint.py index 944946bd16..28f6031a57 100755 --- a/src/clint.py +++ b/src/clint.py @@ -651,6 +651,9 @@ def Error(filename, linenum, category, confidence, message): elif _cpplint_state.output_format == 'eclipse': sys.stdout.write('%s:%s: warning: %s [%s] [%d]\n' % ( filename, linenum, message, category, confidence)) + elif _cpplint_state.output_format == 'gh_action': + sys.stdout.write('::error file=%s,line=%s::%s [%s] [%d]\n' % ( + filename, linenum, message, category, confidence)) else: sys.stdout.write('%s:%s: %s [%s] [%d]\n' % ( filename, linenum, message, category, confidence)) @@ -3053,7 +3056,7 @@ def ParseArguments(args): if opt == '--help': PrintUsage(None) elif opt == '--output': - if val not in ('emacs', 'vs7', 'eclipse'): + if val not in ('emacs', 'vs7', 'eclipse', 'gh_action'): PrintUsage('The only allowed output formats are emacs,' ' vs7 and eclipse.') output_format = val |