Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Remove unused HTML Validator (mastodon#23866)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski authored Feb 24, 2023
1 parent 8000a8f commit 730bb3e
Show file tree
Hide file tree
Showing 62 changed files with 0 additions and 141 deletions.
1 change: 0 additions & 1 deletion .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2113,7 +2113,6 @@ Style/MutableConstant:
- 'app/services/delete_account_service.rb'
- 'app/services/fetch_link_card_service.rb'
- 'app/services/resolve_url_service.rb'
- 'app/validators/html_validator.rb'
- 'lib/mastodon/snowflake.rb'
- 'spec/controllers/api/base_controller_spec.rb'

Expand Down
20 changes: 0 additions & 20 deletions app/validators/html_validator.rb

This file was deleted.

2 changes: 0 additions & 2 deletions config/locales/an.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1183,8 +1183,6 @@ an:
validation_errors:
one: Bella cosa no ye bien! Per favor, revisa la error
other: Bella cosa no ye bien! Per favor, revise %{count} errors mas abaixo
html_validator:
invalid_markup: 'contiene codigo HTML no valido: %{error}'
imports:
errors:
invalid_csv_file: 'Fichero CSV no valido. Error: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/ar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1217,8 +1217,6 @@ ar:
other: هناك شيء ما ليس على ما يرام! يُرجى مراجعة الأخطاء الـ %{count} أدناه
two: هناك شيء ما ليس على ما يرام! يُرجى مراجعة الأخطاء الـ %{count} أدناه
zero: هناك شيء ما ليس على ما يرام! يُرجى مراجعة الأخطاء الـ %{count} أدناه
html_validator:
invalid_markup: 'يحتوي على علامة HTML غير صالحة: %{error}'
imports:
errors:
invalid_csv_file: 'ملف CSV غير صالح. خطأ: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/be.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1270,8 +1270,6 @@ be:
many: Штосьці пакуль не зусім правільна! Калі ласка, праглядзіце %{count} памылак ніжэй
one: Штосьці пакуль не зусім правільна! Калі ласка, праглядзіце памылку ніжэй
other: Штосьці пакуль не зусім правільна! Калі ласка, праглядзіце %{count} памылак ніжэй
html_validator:
invalid_markup: 'змяшчае несапраўдную разметку HTML: %{error}'
imports:
errors:
invalid_csv_file: 'Несапраўдны файл CSV. Памылка: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/bg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1215,8 +1215,6 @@ bg:
validation_errors:
one: Нещо още не е напълно наред! Прегледайте грешката долу
other: Нещо още не е напълно наред! Прегледайте %{count} грешки долу
html_validator:
invalid_markup: 'съдържа невалидно HTML маркиране: %{error}'
imports:
errors:
invalid_csv_file: 'Невалиден файл CSV. Грешка: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/ca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1220,8 +1220,6 @@ ca:
validation_errors:
one: Alguna cosa no va bé! Si us plau, revisa l'error
other: Alguna cosa no va bé! Si us plau, revisa %{count} errors més a baix
html_validator:
invalid_markup: 'conté HTML markup no vàlid: %{error}'
imports:
errors:
invalid_csv_file: 'Fitxer CSV invàlid. Error: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/ckb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -756,8 +756,6 @@ ckb:
validation_errors:
one: شتێک هێشتا تەواو ڕاست نیە تکایە چاو بە هەڵەکەی خوارەوە بخشێنەوە
other: هێشتا تەواو ڕاست نیە تکایە چاو بە هەڵەی %{count} خوارەوە بخشێنەوە
html_validator:
invalid_markup: 'نیشانەی HTML نادروستی تێدایە: %{error}'
imports:
modes:
merge: یەکخستن
Expand Down
2 changes: 0 additions & 2 deletions config/locales/co.yml
Original file line number Diff line number Diff line change
Expand Up @@ -716,8 +716,6 @@ co:
validation_errors:
one: Qualcosa ùn và bè! Verificate u prublemu quì sottu
other: Qualcosa ùn và bè! Verificate %{count} prublemi quì sottu
html_validator:
invalid_markup: 'cuntene codice HTML invalidu: %{error}'
imports:
errors:
over_rows_processing_limit: cuntene più di %{count} filari
Expand Down
2 changes: 0 additions & 2 deletions config/locales/cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1245,8 +1245,6 @@ cs:
many: Něco ještě není úplně v pořádku! Zkontrolujte prosím %{count} chyb uvedených níže
one: Něco ještě není úplně v pořádku! Zkontrolujte prosím chybu uvedenou níže
other: Něco ještě není úplně v pořádku! Zkontrolujte prosím %{count} chyb uvedených níže
html_validator:
invalid_markup: 'obsahuje neplatný HTML kód: %{error}'
imports:
errors:
invalid_csv_file: 'Neplatný soubor CSV. Chyba: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/cy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1320,8 +1320,6 @@ cy:
other: Mae rhywbeth o'i le o hyd! Edrychwch ar y %{count} gwall isod, os gwelwch yn dda
two: Mae rhywbeth o'i le o hyd! Edrychwch ar y %{count} wall isod, os gwelwch yn dda
zero: Mae rhywbeth o'i le o hyd! Edrychwch ar y %{count} gwall isod os gwelwch yn dda
html_validator:
invalid_markup: 'yn cynnwys markup HTML annilys: %{error}'
imports:
errors:
invalid_csv_file: 'Ffeil CSV annilys. Gwall: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/da.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1216,8 +1216,6 @@ da:
validation_errors:
one: Noget er ikke er helt i vinkel! Tjek fejlen nedenfor
other: Noget er ikke er helt i vinkel! Tjek de %{count} fejl nedenfor
html_validator:
invalid_markup: 'indeholder ugyldig HTML-markup: %{error}'
imports:
errors:
invalid_csv_file: 'Ugyldig CSV-fil. Fejl: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1220,8 +1220,6 @@ de:
validation_errors:
one: Etwas ist noch nicht ganz richtig! Bitte korrigiere den Fehler
other: Etwas ist noch nicht ganz richtig! Bitte korrigiere %{count} Fehler
html_validator:
invalid_markup: 'enthält ungültiges HTML-Markup: %{error}'
imports:
errors:
invalid_csv_file: 'Ungültige CSV-Datei. Fehler: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/el.yml
Original file line number Diff line number Diff line change
Expand Up @@ -857,8 +857,6 @@ el:
validation_errors:
one: Κάτι δεν είναι εντάξει ακόμα! Για κοίταξε το παρακάτω σφάλμα
other: Κάτι δεν είναι εντάξει ακόμα! Για κοίταξε τα παρακάτω %{count} σφάλματα
html_validator:
invalid_markup: 'περιέχει λάθος μορφοποίηση HTML: %{error}'
imports:
errors:
invalid_csv_file: 'Μη έγκυρο αρχείο CSV. Σφάλμα: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1220,8 +1220,6 @@ en:
validation_errors:
one: Something isn't quite right yet! Please review the error below
other: Something isn't quite right yet! Please review %{count} errors below
html_validator:
invalid_markup: 'contains invalid HTML markup: %{error}'
imports:
errors:
invalid_csv_file: 'Invalid CSV file. Error: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/eo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1221,8 +1221,6 @@ eo:
validation_errors:
one: Io mise okazis! Bonvolu konsulti la suban erar-raporton
other: Io mise okazis! Bonvolu konsulti la subajn %{count} erar-raportojn
html_validator:
invalid_markup: 'havas nevalidan HTML-markadon: %{error}'
imports:
errors:
invalid_csv_file: Nevalida CSV-dosiero. %{error}
Expand Down
2 changes: 0 additions & 2 deletions config/locales/es-AR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1220,8 +1220,6 @@ es-AR:
validation_errors:
one: "¡Falta algo! Por favor, revisá el error abajo"
other: "¡Falta algo! Por favor, revisá los %{count} errores abajo"
html_validator:
invalid_markup: 'contiene markup HTML no válido: %{error}'
imports:
errors:
invalid_csv_file: 'Archivo CSV no válido. Error: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/es-MX.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1207,8 +1207,6 @@ es-MX:
validation_errors:
one: "¡Algo no está bien! Por favor, revisa el error"
other: "¡Algo no está bien! Por favor, revise %{count} errores más abajo"
html_validator:
invalid_markup: 'contiene código HTML no válido: %{error}'
imports:
errors:
invalid_csv_file: 'Archivo CSV no válido. Error: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1220,8 +1220,6 @@ es:
validation_errors:
one: "¡Algo no está bien! Por favor, revisa el error"
other: "¡Algo no está bien! Por favor, revise %{count} errores más abajo"
html_validator:
invalid_markup: 'contiene código HTML no válido: %{error}'
imports:
errors:
invalid_csv_file: 'Archivo CSV no válido. Error: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/et.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1220,8 +1220,6 @@ et:
validation_errors:
one: Midagi pole ikka õigesti! Palun vaata allolev veateade üle
other: Midagi pole ikka õigesti! Palun vaata all olevad %{count} veateadet üle
html_validator:
invalid_markup: 'sisaldab valet HTMLi süntaksi: %{error}'
imports:
errors:
invalid_csv_file: 'Vigane CSV-fail. Tõrge: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/eu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1222,8 +1222,6 @@ eu:
validation_errors:
one: Zerbait ez dabil ongi! Egiaztatu beheko errorea mesedez
other: Zerbait ez dabil ongi! Egiaztatu beheko %{count} erroreak mesedez
html_validator:
invalid_markup: 'HTML markaketa baliogabea du: %{error}'
imports:
errors:
invalid_csv_file: 'CSV fitxategi baliogabea. Errorea: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/fa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -904,8 +904,6 @@ fa:
validation_errors:
one: یک چیزی هنوز درست نیست! لطفاً خطاهای زیر را ببینید
other: یک چیزی هنوز درست نیست! لطفاً %{count} خطای زیر را ببینید
html_validator:
invalid_markup: 'دارای نشانه‌گذاری نامعتبر HTML است: %{error}'
imports:
errors:
over_rows_processing_limit: دارای بیش از %{count} ردیف
Expand Down
2 changes: 0 additions & 2 deletions config/locales/fi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1220,8 +1220,6 @@ fi:
validation_errors:
one: Kaikki ei ole aivan oikein! Tarkasta alla oleva virhe
other: Kaikki ei ole aivan oikein! Tarkasta alla olevat %{count} virhettä
html_validator:
invalid_markup: 'sisältää virheellisen HTML-merkinnän: %{error}'
imports:
errors:
invalid_csv_file: 'Epäkelpo CSV-tiedosto. Virhe: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/fo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1220,8 +1220,6 @@ fo:
validation_errors:
one: Okkurt er ikki heilt rætt enn! Vinarliga eftirhygg feilin niðanfyri
other: Okkurt er ikki heilt rætt enn! Vinarliga eftirhygg teir %{count} feilirnar niðanfyri
html_validator:
invalid_markup: 'inniheldur ógyldugt HTML markup: %{error}'
imports:
errors:
invalid_csv_file: 'Ógildug CSV-fíla. Error: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/fr-QC.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1216,8 +1216,6 @@ fr-QC:
validation_errors:
one: Quelque chose ne va pas ! Veuillez vérifiez l’erreur ci-dessous
other: Certaines choses ne vont pas ! Veuillez vérifier les %{count} erreurs ci-dessous
html_validator:
invalid_markup: 'contient un balisage HTML invalide: %{error}'
imports:
errors:
invalid_csv_file: 'Fichier CSV non valide. Erreur : %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1220,8 +1220,6 @@ fr:
validation_errors:
one: Quelque chose ne va pas ! Veuillez vérifiez l’erreur ci-dessous
other: Certaines choses ne vont pas ! Veuillez vérifier les %{count} erreurs ci-dessous
html_validator:
invalid_markup: 'contient un balisage HTML invalide: %{error}'
imports:
errors:
invalid_csv_file: 'Fichier CSV non valide. Erreur : %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/fy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1220,8 +1220,6 @@ fy:
validation_errors:
one: Der is wat net hielendal goed! Besjoch ûndersteande flater
other: Der is wat net hielendal goed! Besjoch ûndersteande %{count} flaters
html_validator:
invalid_markup: 'befettet ûnjildige HTML-opmaak: %{error}'
imports:
errors:
invalid_csv_file: 'Unjildich CSV-bestân. Flater: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/gd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1257,8 +1257,6 @@ gd:
one: Tha rud ann nach eil buileach ceart fhathast! Thoir sùil air an %{count} mhearachd gu h-ìosal
other: Tha rud ann nach eil buileach ceart fhathast! Thoir sùil air an %{count} mearachd gu h-ìosal
two: Tha rud ann nach eil buileach ceart fhathast! Thoir sùil air an %{count} mhearachd gu h-ìosal
html_validator:
invalid_markup: 'tha HTML markup mì-dhligheach ann: %{error}'
imports:
errors:
invalid_csv_file: 'Faidhle CSV mì-dhligheach. Mearachd: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/gl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1220,8 +1220,6 @@ gl:
validation_errors:
one: Algo non está ben de todo! Por favor revise abaixo o erro
other: Algo aínda non está ben! Por favor revise os %{count} erros abaixo
html_validator:
invalid_markup: 'contén cancelos HTML non válidas: %{error}'
imports:
errors:
invalid_csv_file: 'Ficheiro CSV non válido. Erro: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/he.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1270,8 +1270,6 @@ he:
one: משהו עדיין לא בסדר! נא לעיין בשגיאה להלן
other: משהו עדיין לא בסדר! נא לעיין ב-%{count} השגיאות להלן
two: משהו עדיין לא בסדר! נא לעיין ב-%{count} השגיאות להלן
html_validator:
invalid_markup: 'מכיל קוד HTML לא תקין: %{error}'
imports:
errors:
invalid_csv_file: 'קובץ CSV שבור. שגיאה: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/hu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1220,8 +1220,6 @@ hu:
validation_errors:
one: Valami nincs rendjén! Tekintsd meg a hibát lent
other: Valami nincs rendjén! Tekintsd meg a(z) %{count} hibát lent
html_validator:
invalid_markup: 'hibás HTML leíró: %{error}'
imports:
errors:
invalid_csv_file: 'Érvénytelen CSV-fájl. Hiba: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/id.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1153,8 +1153,6 @@ id:
today: hari ini
validation_errors:
other: Ada yang belum benar! Silakan tinjau %{count} kesalahan di bawah ini
html_validator:
invalid_markup: 'berisi markup HTML yang tidak valid: %{error}'
imports:
errors:
invalid_csv_file: 'Berkas CVS tidak sah. Kesalahan: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/io.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1136,8 +1136,6 @@ io:
validation_errors:
one: Ulo ne eventis senprobleme! Voluntez konsultar la suba eror-raporto
other: Ulo ne eventis senprobleme! Voluntez konsultar la suba %{count} eror-raporti
html_validator:
invalid_markup: 'kontenas nevalida kompozuro di HTML: %{error}'
imports:
errors:
over_rows_processing_limit: kontenas plu kam %{count} horizontala lineo
Expand Down
2 changes: 0 additions & 2 deletions config/locales/is.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1220,8 +1220,6 @@ is:
validation_errors:
one: Ennþá er ekk alvegi allt í lagi! Skoðaðu vel villuna hér fyrir neðan
other: Ennþá er ekki alveg allt í lagi! Skoðaðu vel villurnar %{count} hér fyrir neðan
html_validator:
invalid_markup: 'inniheldur ógildar HTML-merkingar: %{error}'
imports:
errors:
invalid_csv_file: 'Ógild CSV-skrá. Villa: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1222,8 +1222,6 @@ it:
validation_errors:
one: Qualcosa ancora non va bene! Per favore, controlla l'errore qui sotto
other: Qualcosa ancora non va bene! Per favore, controlla i %{count} errori qui sotto
html_validator:
invalid_markup: 'contiene markup HTML non valido: %{error}'
imports:
errors:
invalid_csv_file: 'File CSV non valido. Errore: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1195,8 +1195,6 @@ ja:
today: 今日
validation_errors:
other: エラーが発生しました! 以下の%{count}件のエラーを確認してください
html_validator:
invalid_markup: '無効なHTMLマークアップが含まれています: %{error}'
imports:
errors:
invalid_csv_file: '無効なCSVファイルです。エラー: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/kk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -481,8 +481,6 @@ kk:
validation_errors:
one: Бір нәрсе дұрыс емес! Төмендегі қатені қараңыз
other: Бір нәрсе дұрыс емес! Төмендегі %{count} қатені қараңыз
html_validator:
invalid_markup: 'жарамсыз HTML код: %{error}'
imports:
modes:
merge: Біріктіру
Expand Down
2 changes: 0 additions & 2 deletions config/locales/ko.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1197,8 +1197,6 @@ ko:
today: 오늘
validation_errors:
other: 오류가 발생했습니다. 아래 %{count}개 오류를 확인해 주십시오
html_validator:
invalid_markup: '올바르지 않은 HTML 마크업을 포함하고 있습니다: %{error}'
imports:
errors:
invalid_csv_file: '올바르지 않은 CSV 파일입니다. 오류: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/ku.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1180,8 +1180,6 @@ ku:
validation_errors:
one: Tiştek hîn ne rast e! Ji kerema xwe çewtiya li jêr di ber çavan re derbas bike
other: Tiştek hîn ne rast e! Ji kerema xwe %{count} çewtî li jêr di ber çavan re derbas bike
html_validator:
invalid_markup: 'di nav de nîşana HTML a nederbasdar heye: %{error}'
imports:
errors:
invalid_csv_file: 'Pelê CSV nederbasdar e. Çewtî: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/lv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1245,8 +1245,6 @@ lv:
one: Kaut kas vēl nav īsti kārtībā! Lūdzu, pārskati zemāk norādīto kļūdu
other: Kaut kas vēl nav īsti kārtībā! Lūdzu, pārskati %{count} kļūdas zemāk
zero: "%{count} kļūdu"
html_validator:
invalid_markup: 'satur nederīgu HTML marķējumu: %{error}'
imports:
errors:
invalid_csv_file: 'Nederīgs CSV fails. Kļūda: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/nl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1220,8 +1220,6 @@ nl:
validation_errors:
one: Er is iets niet helemaal goed! Bekijk onderstaande fout
other: Er is iets niet helemaal goed! Bekijk onderstaande %{count} fouten
html_validator:
invalid_markup: 'bevat ongeldige HTML-opmaak: %{error}'
imports:
errors:
invalid_csv_file: 'Ongeldig CSV-bestand. Fout: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/nn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1163,8 +1163,6 @@ nn:
validation_errors:
one: Noe er ikke helt riktig ennå. Vennligst se etter en gang til
other: Noe er ikke helt riktig ennå. Det er ennå %{count} feil å rette på
html_validator:
invalid_markup: 'rommar ugild HTML-kode: %{error}'
imports:
errors:
invalid_csv_file: 'Ugyldig CSV-fil. Feil: %{error}'
Expand Down
2 changes: 0 additions & 2 deletions config/locales/no.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1155,8 +1155,6 @@
validation_errors:
one: Noe er ikke helt riktig ennå. Vennligst se etter en gang til
other: Noe er ikke helt riktig ennå. Det er ennå %{count} feil å rette på
html_validator:
invalid_markup: 'inneholder ugyldig HTML-markør: %{error}'
imports:
errors:
invalid_csv_file: 'Ugyldig CSV-fil. Feil: %{error}'
Expand Down
Loading

0 comments on commit 730bb3e

Please sign in to comment.