From 0e5de0e884fdbdb75991ef985e9053e34f128a16 Mon Sep 17 00:00:00 2001 From: rezky_nightky <130107241+oxyzenQ@users.noreply.github.com> Date: Mon, 20 Apr 2026 15:00:22 +0700 Subject: [PATCH] Fix typos detected by codespell in source code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ── NewPipe/dev · 86439c9bae22 · 3 file · +12/-2 · 2026-04-20T08:00:22Z --- .codespellrc | 10 ++++++++++ .../main/java/org/schabi/newpipe/util/FilenameUtils.kt | 2 +- .../schabi/newpipe/streams/SrtFromTtmlWriterTest.java | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 .codespellrc diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 00000000000..e3dd40d5b09 --- /dev/null +++ b/.codespellrc @@ -0,0 +1,10 @@ +[codespell] +# Skip translation string files (managed via Weblate), build directories, git, and localized metadata +skip = ./app/src/main/res/values-*,./fastlane/metadata/android/*,./doc/README.*.md,./.git,./build,./.gradle,./app/build,./captures,./.idea + +# Words to ignore (case-insensitive) - common words from other languages and valid technical terms +ignore-words-list = ser,nam,te,als,ist,unter,som,alle,ned,noe,noen,openen,appen,tre,fane,selv,lastes,ser,vise,sist,aktive,aktiv,tekst,lokale,adres,nowe,teh,sme,stran,mape,buton,complet,normale,modul,ore,sistem,progres,efect,curent,progresive,grup,incluse,apreciate,similare,categorie,elemente,probleme,duplicat,vor,devine,populare,importat,generat,serios,implicite,butoon,serwer,selektor,serwerow,nin,nome,vai,nomes,erro,autor,inicial,utiliza,alternar,posible,nd,ue,meda,nto,subscriprion,fo,mis,trun,cant,optin,goup,heigh,ot,compatability,whats,re-used,co-ordinates,re-using,everytime + +# File types to check +check-hidden = false +quiet-level = 2 diff --git a/app/src/main/java/org/schabi/newpipe/util/FilenameUtils.kt b/app/src/main/java/org/schabi/newpipe/util/FilenameUtils.kt index 1237a984b0d..a2a9c2eef9f 100644 --- a/app/src/main/java/org/schabi/newpipe/util/FilenameUtils.kt +++ b/app/src/main/java/org/schabi/newpipe/util/FilenameUtils.kt @@ -52,7 +52,7 @@ object FilenameUtils { * Create a valid filename. * * @param title the title to create a filename from - * @param invalidCharacters patter matching invalid characters + * @param invalidCharacters pattern matching invalid characters * @param replacementChar the replacement * @return the filename */ diff --git a/app/src/test/java/org/schabi/newpipe/streams/SrtFromTtmlWriterTest.java b/app/src/test/java/org/schabi/newpipe/streams/SrtFromTtmlWriterTest.java index 755724f68a6..d05f4c47e53 100644 --- a/app/src/test/java/org/schabi/newpipe/streams/SrtFromTtmlWriterTest.java +++ b/app/src/test/java/org/schabi/newpipe/streams/SrtFromTtmlWriterTest.java @@ -127,7 +127,7 @@ public class SrtFromTtmlWriterTest { * - Reference: * Unicode Basic Latin (https://unicode.org/charts/PDF/U0000.pdf), * ASCII Control (https://en.wikipedia.org/wiki/ASCII#Control_characters). - * and the defination of these characters can be known. + * and the definition of these characters can be known. */ private static final String CONTROL_CHAR_TTML = "

"