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

single line files without newline show findings as global message #76

Open
firewave opened this issue Jul 25, 2022 · 2 comments
Open

single line files without newline show findings as global message #76

firewave opened this issue Jul 25, 2022 · 2 comments
Labels

Comments

@firewave
Copy link
Collaborator

int f(int*p){return *p;}

image

If you add the newline at the end of the line it shows up in the Problems tab as expected.

@firewave
Copy link
Collaborator Author

I tried using DocumentUtil.getLineTextRange() for the TextRange generation instead but it lead to the same result. So it appears this is an upstream issue. Needs more investigating.

We should still use the simplified calculation though.

@firewave firewave added the bug label Jul 25, 2022
@firewave
Copy link
Collaborator Author

I tried using DocumentUtil.getLineTextRange() for the TextRange generation instead but it lead to the same result. So it appears this is an upstream issue. Needs more investigating.

We should still use the simplified calculation though.

This actually leads to the whole line (including leading whitespaces) being highlighted. So that should not be used at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant