Excluding/Disabling Validation in Eclipse

后端 未结 11 1456
别跟我提以往
别跟我提以往 2020-12-08 06:34

I have the (mis)fortune of having a large project source-base in which I am working primarily on PHP and JavaScript. I have to have the full project area as the project root

相关标签:
11条回答
  • 2020-12-08 07:17

    There are more gloabal validation parameters. You can suspend all validation (or only the ones you don't need) by going to:

    Window > Preferences > Validation. 
    

    Here, check the box "Suspend all validators".

    Alternatively, uncheck the validators you don't need from the list below.
    A full build will be requested which might take some time. But Eclipse will run a lot faster afterwards [But without validation of course]

    http://www.flickr.com/photos/jesuspresley/5094048124/

    0 讨论(0)
  • 2020-12-08 07:20

    Solution.

    Go configure what's displayed in the Problems View like lothar proposed, create new custom filter and in "Scope" area choose "On working set". Now press the button right below this option to configure what working set would it be: in working set selection pop-up hit the "New" button and mark all your project files EXCEPT those you want to exclude from validation. You might want to save this working set under convenient name, like "No_Validation_Set".

    Summary: 1) working set excluding problematic files. 2) custom Problems View filter to operate on this set.

    Issues: when adding new files to project you need to update your working set, so they are validated too.

    0 讨论(0)
  • 2020-12-08 07:22

    When I excluded files from validation for the project, my setting didn't seem to be recognised until I restarted Eclipse and cleaned the project.

    0 讨论(0)
  • 2020-12-08 07:25

    I found in the project properties there is a Builders category. In the list of builders I had a JavaScript Builder. I deselected this builder and all my annoying javascript validation woes went away.

    0 讨论(0)
  • 2020-12-08 07:27

    I used to exclude resources from validation via project specific Exclude Group (as the most answer here suggests). But in case anyone is still having problems with disabling validation for a specified folder in 2014 - just mark the folder resource as Derived:

    Resource Properties dialog

    This should disable validation for that folder.

    If you are using EGIT you might also want to disable automatic inclusion of derived resources in .gitignore:

    Git Projects Preferences dialog

    0 讨论(0)
提交回复
热议问题