[pim/korganizer] /: codespell fixes

Allen Winter null at kde.org
Thu Mar 13 16:35:00 GMT 2025


Git commit 3bf67c72e403cd9480880a7907b8b04e38f78d10 by Allen Winter.
Committed on 13/03/2025 at 15:56.
Pushed by winterz into branch 'master'.

codespell fixes

M  +7    -3    .codespellrc
M  +1    -1    doc/index.docbook
M  +1    -1    plugins/CMakeLists.txt
M  +6    -6    src/autotests/testtoggletodo.cpp
M  +2    -2    src/prefs/kprefsdialog.h

https://invent.kde.org/pim/korganizer/-/commit/3bf67c72e403cd9480880a7907b8b04e38f78d10

diff --git a/.codespellrc b/.codespellrc
index 0be43c406..41180b532 100644
--- a/.codespellrc
+++ b/.codespellrc
@@ -1,4 +1,8 @@
 [codespell]
-skip = ./build*,.git,*.notifyrc,*.desktop,*.json,*.xml
-interactive = 3
-ignore-words-list = accessort
+skip = ./build*,.git,*.notifyrc,*.desktop,*.json,*.xml,./po
+interactive = 0
+#ignore camelCase, regardless. also mixed case words with correct spelling
+ignore-regex = \b([a-z]+[A-Z0-9][a-z0-9]*|Claus|claus|Mot|Hart)\b
+uri-ignore-words = slac
+#ampersand and semicolon also breaks words
+regex = [\w\-'’&(amp\;)]+
diff --git a/doc/index.docbook b/doc/index.docbook
index 5f80e1139..2faacf96f 100644
--- a/doc/index.docbook
+++ b/doc/index.docbook
@@ -557,7 +557,7 @@ use the Calendar Widget to choose the date. Alternatively, you can automatically
 archive all items older than a certain period of time.</para></step>
 <step><para>If you have chosen archiving, you must also provide a filename for
 the archive in the <guilabel>Archive File</guilabel> field. If you want to
-re-use an older archive file, press the <guilabel>Open file dialog</guilabel> button
+reuse an older archive file, press the <guilabel>Open file dialog</guilabel> button
 and find an existing archive. The entries will be added to the file,
 so any item already in the file will not be modified.</para></step>
 </procedure>
diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt
index 6b3dc2f31..a2a61d575 100644
--- a/plugins/CMakeLists.txt
+++ b/plugins/CMakeLists.txt
@@ -3,7 +3,7 @@
 add_definitions(-DTRANSLATION_DOMAIN=\"korganizer_calendarplugins\")
 
 add_subdirectory(datenums)
-#Comment it it depends against kdelibs4support
+#the hebrew plugin depends on kdelibs4support
 #add_subdirectory(hebrew)
 add_subdirectory(lunarphases)
 add_subdirectory(picoftheday)
diff --git a/src/autotests/testtoggletodo.cpp b/src/autotests/testtoggletodo.cpp
index e18cc6a11..34644a478 100644
--- a/src/autotests/testtoggletodo.cpp
+++ b/src/autotests/testtoggletodo.cpp
@@ -46,7 +46,7 @@ private Q_SLOTS:
         QVERIFY(KCalendarCore::identical(todo->dtRecurrence(), day1));
         QVERIFY(!todo->isCompleted());
 
-        // Toggle the first occurrance.
+        // Toggle the first occurrence.
         CalendarView::toggleCompleted(todo, day1.date());
 
         QVERIFY(KCalendarCore::identical(todo->dtRecurrence(), day2));
@@ -55,7 +55,7 @@ private Q_SLOTS:
         QVERIFY(KCalendarCore::identical(todo->dtRecurrence(), day1));
         QVERIFY(!todo->isCompleted());
 
-        // Toggle the second occurrance.
+        // Toggle the second occurrence.
         CalendarView::toggleCompleted(todo, day2.date());
         QVERIFY(KCalendarCore::identical(todo->dtRecurrence(), day3));
         QVERIFY(!todo->isCompleted());
@@ -63,7 +63,7 @@ private Q_SLOTS:
         QVERIFY(KCalendarCore::identical(todo->dtRecurrence(), day2));
         QVERIFY(!todo->isCompleted());
 
-        // Complete the second occurrance, then discomplete the first (and
+        // Complete the second occurrence, then discomplete the first (and
         // hence the second).
         CalendarView::toggleCompleted(todo, day2.date());
         QVERIFY(KCalendarCore::identical(todo->dtRecurrence(), day3));
@@ -72,7 +72,7 @@ private Q_SLOTS:
         QVERIFY(KCalendarCore::identical(todo->dtRecurrence(), day1));
         QVERIFY(!todo->isCompleted());
 
-        // Complete the final occurrance, and hence the entire todo.
+        // Complete the final occurrence, and hence the entire todo.
         CalendarView::toggleCompleted(todo, day3.date());
         QVERIFY(todo->isCompleted());
 
@@ -97,7 +97,7 @@ private Q_SLOTS:
         QVERIFY(KCalendarCore::identical(todo->dtRecurrence(), day1));
         QVERIFY(!todo->isCompleted());
 
-        // Toggle the first occurrance.
+        // Toggle the first occurrence.
         CalendarView::toggleCompleted(todo, day1.toLocalTime().date());
         QVERIFY(KCalendarCore::identical(todo->dtRecurrence(), day2));
         QVERIFY(!todo->isCompleted());
@@ -122,7 +122,7 @@ private Q_SLOTS:
         QVERIFY(KCalendarCore::identical(todo->dtRecurrence(), day1));
         QVERIFY(!todo->isCompleted());
 
-        // Complete the final occurrance, and hence the entire todo.
+        // Complete the final occurrence, and hence the entire todo.
         CalendarView::toggleCompleted(todo, day3.toLocalTime().date());
         QVERIFY(todo->isCompleted());
 
diff --git a/src/prefs/kprefsdialog.h b/src/prefs/kprefsdialog.h
index 693a0a6f1..98b7ccf9d 100644
--- a/src/prefs/kprefsdialog.h
+++ b/src/prefs/kprefsdialog.h
@@ -570,7 +570,7 @@ public:
     /**
       Create a KPrefsWidManager object for a KPrefs object.
 
-      @param prefs  KPrefs object used to access te configuration.
+      @param prefs  KPrefs object used to access the configuration.
     */
     explicit KPrefsWidManager(KConfigSkeleton *prefs);
 
@@ -734,7 +734,7 @@ public:
     /**
       Create a KPrefsDialog for a KPrefs object.
 
-      @param prefs  KPrefs object used to access te configuration.
+      @param prefs  KPrefs object used to access the configuration.
       @param parent Parent widget.
       @param name   Widget name.
       @param modal  true, if dialog has to be modal, false for non-modal.


More information about the kde-doc-english mailing list