Skip to main content
Aleksei_Segodin
Inspiring
October 24, 2017
Answered

How to exclude/ignore specific errors in Dreamweaver output panel?

  • October 24, 2017
  • 3 replies
  • 2087 views

Hi!

I have a problem which looks like this:

50+ errors found in JavaScript.

But these are actually not errors, because I'm defining the TweenMax class in the other .js file before loading the current script.

The question #1 is: how to get Dreamweaver know that I'm actually defining the variable?

If it is not possible, then question #2: how to exlude, set to ignore or hide these specific errors from the panel?

I'm using Dreamweaver v18.0

Thanks in advance!

This topic has been closed for replies.
Correct answer B i r n o u

I've posted a FR long time ago proposing that DW should adopt the same Site > Site options > Conseil de code specifique au site used for PHP, but including Javascript

have you try to set undef to false in the js lint options (preferences > linting > JS)

3 replies

Participant
March 9, 2019

In file "JS.jshintrc.htm" add

"predef": ["TweenMax"]

Nancy OShea
Community Expert
Community Expert
October 24, 2017

Ignore or disable code Linting on JS documents.   Use your browser instead.

Nancy O'Shea— Product User & Community Expert
Aleksei_Segodin
Inspiring
November 11, 2017

For me, having this kind of side notes in DW is very useful.

I want to continue watching them. So this is not a solution. The question was specifically about DreamWeaver, but not just about any workaround.

B i r n o u
B i r n o uCorrect answer
Legend
October 24, 2017

I've posted a FR long time ago proposing that DW should adopt the same Site > Site options > Conseil de code specifique au site used for PHP, but including Javascript

have you try to set undef to false in the js lint options (preferences > linting > JS)

Aleksei_Segodin
Inspiring
October 24, 2017

I've just tried it. The errors disappeared. But this is not quite a solution. Because, as I underdtstood, now DW will ignore all the 'not defined' errors. And this is not right — sometimes I need to know that something is not defined. I want Dreamweaver to understand that the value of a specific variable is not a mistake.

B i r n o u
Legend
October 24, 2017

I completly agree, lint should as eslint understand the statement

/* global var_foo */