eclipse-wildwebdeveloper / eclipse-wildwebdeveloper/wildwebdeveloper
Ability to disable validation
Nessuno ha ancora preso questa issue.
- Lingua principale
- Java
- Stelle
- 201
- Fork
- 76
- Merge medio
- 4g 7h
- PR unite (30g)
- 21
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
La issue indica preferenze, validatori e build imminenti, ma nessun file o test. Inizia tracciando dove sono definite le preferenze dei validatori e dove viene eseguita la validazione durante le build. Il lavoro è completato quando una preferenza può sospendere tutta la validazione, evita il lavoro di validazione e non produce errori di validazione quando è abilitata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100