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 = "
"