eclipse中关闭js报错的方法

eclipse中引入yui报错,关闭validation后不起作用,网上找到这篇文章
Question:

The validation in Eclipse is catching what it deems "errors" in the framework I've been using just fine.

  • Project -> Properties -> Validation -> "Suspend all validators" doesn't work.

  • Project -> Properties -> Javascript -> Validation -> Errors/Warnings -> [Unchecked] "Enable Javascript semantic validation" doesn't work either.

  • Enabling the above-mentioned checkbox and setting all validation issues to "Ignore" doesn't work either.

Each time one of these settings changes, it does a build and immediately all the "errors" are found and subsequently prevent an otherwise known-good build.

 

Answer:

  1. Right click your project
  2. Select Properties -> JavaScript -> Include
  3. Select Source tab (It looks similar to the Java Build Path Source tab)
  4. Expand source folder
  5. Highlight Excluded pattern
  6. Click Edit button
  7. Click Add button next to Exclusion patterns box.
  8. Click Browse button and select the JavaScript source by name.

你可能感兴趣的:(JavaScript,eclipse)