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

red underline mark is out of place #7

Open
JamesSwift opened this issue Oct 30, 2013 · 11 comments
Open

red underline mark is out of place #7

JamesSwift opened this issue Oct 30, 2013 · 11 comments

Comments

@JamesSwift
Copy link

When JSLint highlights errors in my code they are always a few columns out. I suspect this might be because my tabs are set to be 8 columns instead of the default 4. If this is the case, is it possible to make JSLint reference the user's setting?

See the screenshot for details (ignore the poor code, I'm in the process of rewriting).

screenshot from 2013-10-30 16 57 15

@lomadurov
Copy link
Owner

indentation

@JamesSwift
Copy link
Author

Thanks. I Hadn't spotted that. Is there any way to automate the integration?

@JamesSwift
Copy link
Author

That doesn't work quite how I expected it to. To get my line to line up I need to set the indentation to 1. If I set it to 0 it appears in the same place as when it is set to 4.

How exactly is the Indentation used in calculating the offset?

@lomadurov
Copy link
Owner

Option "Indent": the number of spaces used for indentation in library jslint.
http://www.jslint.com/lint.html#options (Default 4)

In what environment do you test?

@JamesSwift
Copy link
Author

I'm working in netbeans 7.4 on Ubuntu gnome 13.10.
On 31 Oct 2013 04:40, "Stanislav Lomadurov" [email protected]
wrote:

Option "Indent": the number of spaces used for indentation in library
jslint.
http://www.jslint.com/lint.html#options (Default 4)

In what environment do you test?


Reply to this email directly or view it on GitHubhttps://github.com//issues/7#issuecomment-27460819
.

@lomadurov
Copy link
Owner

I don't found mistakes (latest Linux mint, Netbeans 7.4, gnome)
You can give me your settings of Netbeans (export in "Options" dialog)?

@JamesSwift
Copy link
Author

Will do, when I'm back home. Its odd behaviour, but I couldn't make up my
mind if it was a bug or not. I take it you think it is?
On 31 Oct 2013 09:46, "Stanislav Lomadurov" [email protected]
wrote:

I don't found mistakes (latest Linux mint, Netbeans 7.4, gnome)
You can give me your settings of Netbeans (export in "Options" dialog)?


Reply to this email directly or view it on GitHubhttps://github.com//issues/7#issuecomment-27473016
.

@lomadurov
Copy link
Owner

Also please install update plugin 1.0.5
http://plugins.netbeans.org/download/plugin/2754

@JamesSwift
Copy link
Author

So, now I've upgraded, JSLint gives me an error on every line: use spaces not tabs.

I didn't know JSLint enforced spaces, it never used to. I hate using them, it's just a waste of bandwidth.

Settings: https://drive.google.com/file/d/0B4OvcDwgRpmqSlpoUEcyTTNQYlU/edit?usp=sharing

@lomadurov
Copy link
Owner

Look at this jslint-org/jslint#138

@JamesSwift
Copy link
Author

So, is the behaviour I described earlier considered intended?
On 31 Oct 2013 13:58, "Stanislav Lomadurov" [email protected]
wrote:

Look at this jslint-org/jslint#138jslint-org/jslint#138


Reply to this email directly or view it on GitHubhttps://github.com//issues/7#issuecomment-27487478
.

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

No branches or pull requests

2 participants