Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: debug: add test code #1

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ jobs:
steps:
- name: Check out code.
uses: actions/checkout@v1
with:
ref: test
- name: vimlint
uses: tsuyoshicho/action-vimlint@master
uses: tsuyoshicho/action-vimlint@test
with:
github_token: ${{ secrets.github_token }}
- name: vimlint-pr-review
uses: tsuyoshicho/action-vimlint@master
uses: tsuyoshicho/action-vimlint@test
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ git clone --depth 1 https://github.com/ynkdir/vim-vimlparser ${VIMLPARSER_PATH}
# - "%f:%l:%c:%m"

sh "${VIMLINT_PATH}/bin/vimlint.sh" -l "${VIMLINT_PATH}" -p "${VIMLPARSER_PATH}" \
-e EVL102.l:_=1 -c func_abort=1 autoload \
-e EVL102.l:_=1 -c func_abort=1 testdata \
| reviewdog -efm="%f:%l:%c:%trror: %m" -efm="%f:%l:%c:%tarning: %m" -efm="%f:%l:%c:%m" \
-name="vimlint" -reporter="${INPUT_REPORTER:-'github-pr-check'}" \
-level="${INPUT_LEVEL}"
6 changes: 3 additions & 3 deletions testdata/test.vim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

function s:test()
echo "Hello from reviewdog!"
endfunction
while 0
echo "test"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[vimlint] reported by reviewdog 🐶
EVL201: unreachable code: while

endwhile