How to tell Linter to ignore a line

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
rodneyt
Posts: 128
Joined: Wed Oct 17, 2018 7:32 am

How to tell Linter to ignore a line

Post by rodneyt » Fri Oct 19, 2018 8:28 am

I've setup Levure, LiveCode Community Server and Sublime text following the wiki instructions, all pretty straightforward and working well.

The scripts in my project contain quite a lot of short Javascript snippets, and even though these are correctly escaped and work fine in LC, the Linter is throwing exceptions on these.

Is there a way to tell the Linter to ignore a specific line?

~ Rodney

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: How to tell Linter to ignore a line

Post by bogs » Fri Oct 19, 2018 1:35 pm

As far as I know there isn't, but I'm hardly an expert on Sublime and the linter your talking about. Hope someone that knows chimes in.
Image

rodneyt
Posts: 128
Joined: Wed Oct 17, 2018 7:32 am

Re: How to tell Linter to ignore a line

Post by rodneyt » Fri Oct 19, 2018 9:33 pm

I sorted it out. The linter didn't like the formatting (even though Livecode was fine with executing it), changed it a little and all was well...

~ R

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: How to tell Linter to ignore a line

Post by bogs » Fri Oct 19, 2018 11:11 pm

Thats good, I like happy endings :)
Image

capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: How to tell Linter to ignore a line

Post by capellan » Fri Oct 19, 2018 11:29 pm

rodneyt wrote:
Fri Oct 19, 2018 9:33 pm
I sorted it out. The linter didn't like the formatting (even though Livecode was fine with executing it), changed it a little and all was well...

~ R
Hi Rodney,

Could you provide specifics details of the wrong formatting
and the changes that you did to make it work?

Thanks in advance!

Al

Post Reply

Return to “Talking LiveCode”