Closed Malivil closed 2 years ago
Hey!
If I'm understanding right, you have some code like this:
function foo(a)
print(a+1)
end
function bar()
print(self)
end
Which would normally result in two warnings with the default config, but a glualint.json in the same folder to disable some:
{
"lint_whitespaceStyle": false
}
With this example it seems to work fine for me, both in the regular editor:
and the diff:
Do you have some other example I can reproduce it with?
I noticed one small oversight in the code where it would not correctly set the working directory, but this shouldn't cause a difference between text mode and git mode.
I'm not sure what exactly could be going wrong, as my extension basically doesn't handle the configuration part at all. This is all handled by glualint itself, as documented here. It will try to find a glualint.json in the current folder of your project, all the way to the root of the drive. If none is found there it will try for a .glualint.json in your home folder. I could add support for the --config
parameter as well but that's not really related either.
Hi!
Thanks for getting back to me. I got a a couple screenshots to show what's happening on my side and it might only be happening on the "old" side of the diff which wouldn't happen in your example.
Here's what it looks like in the live file:
Versus what it looks like in the diff:
You can see on left of the diff there are sections underlined based on a setting I have disabled
Gotcha, I see what you mean now. I managed to reproduce it and just put out version 0.7.0 which should fix your issue.
I can verify it is fixed.
Thanks a lot for the quick turnaround =)
Hi,
I'm using your extension while working on some GMod addons and I'm really liking it One thing I've noticed, though, is that when I look at the diff between files using the standard Git diff window on the Source Control tab, it doesn't appear to follow the glualint.json settings
For example, I open a file to edit it and there are no warnings. I then look at the diff on the Source Control tab before committing and it shows a bunch of warnings for things I have disabled in my glualint.json
Let me know if you need more information from me =) Thanks in advance