eclipsesource / eclipsesource/jshint-eclipse
Current page error finiky
- Dominant language
- JavaScript
- Stars
- 144
- Forks
- 31
- PR merge metrics
- No merged PRs in 30d
Description
I opened a random .js file in a legacy project and every row except one threw an error.
Now, in the Problems view, which I have set to display only current selection, there are 0 items.
As you can see in my image, the first row is a comment, but there first error in the massive list, when I hover over the gutter icon, is "Expected an assignment or function call and instead saw an expression." The second one is "missing a semicolon" and so forth.
Now when I hit "Ctrl-S" for save, all but three disappear.
The comment's info is now "This character may get deleted by one or more browsers". Also, the Problems view is showing the correct 3 items.
Now this leads to me wonder if there is BOM in there. I opened the properties of the file and it says under Text file encoding, "Default (determined from content: UTF-8)" and "Byte Order Mark is UTF-8 (BOM)".
So I'm not positive, but I think the linter doesn't take into account files that contain BOM until it is saved, which I'm assuming Eclipse removes something it doesn't like.

Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.