Ability to disable validation

未关闭
#1,850 3 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
java
领域
tooling

调研方向

该 issue 提到了偏好设置、验证器和即将进行的构建,但没有指定文件或测试。首先追踪验证器偏好设置的定义位置,以及构建期间执行验证的位置。完成的标准是:某个偏好设置可以暂停所有验证,避免执行验证工作,并且在启用时不产生任何验证错误。

由索引模型根据 Issue 内容生成。

描述

Since decades "Wild Web Developers" is annoying users with its enforced validation (see e.g. https://github.com/eclipse-platform/eclipse.platform.ui/issues/943 - also look back to the old bugzilla issues that had been voted by many users, you can also do a web-search and find many stackoverflow and other hits from annoyed users) and no ability to disable this undesired behaviour.

Rationale

Why is it a problem? In general files should be valid, right?
But, the reality is different:

  • For tests it is sometimes required to create invalid files. So e.g. if I want to test how my code reacts to incorrect JSON or XML data, I want to be able to have such invalid files in my codebase.
  • "Wild Web Developers" tries to do complex validation that includes downloading of XSDs from the Internet, etc. that can fail for arbitrary technical reasons (Network issues, (temporary) Server unavailability, etc.). In such case my file can be entirely correct and the error marker for hundreds of e.g. XML files is absolutely not helpful.
  • "Wild Web Developers" validation is slow. Validating every file in a very large project is a disaster.

Eclipse has a smart concept to aggregate errors and warnings.
As a result you see a project has a red cross if there are errors or not if there are no errors.
The aim of every reasonable developer is to get rid of the red crosses.
It is therefore in-acceptable to have errors that are actually false positives (as illustrated above).

Acceptance criteria

  • In the preferences I want to have an option to disable/suspend all validators (maybe additionally even by type - XML, JSON, etc.).
  • If that option is checked, then no validation should take place, no performance is wasted for validation and especially no validation errors are produced by upcoming builds.
主要语言
Java
星标
201
派生
76
平均合并
4 天 7 小时
30 天内合并 PR
21

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

eclipse-wildwebdeveloper/wildwebdeveloper 的其他 Issue

查看 eclipse-wildwebdeveloper/wildwebdeveloper 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。