Improve spell checker using codespell

* Configures automated spell checking with codespell
Adds GitHub workflows and configuration files for automated spell checking using `codespell`.

This includes:
- A workflow for checking pull requests and preventing new typos
- A workflow for automatically fixing typos in the main codebase
- Configuration files for `codespell` to ignore specific terms and file types
- Documentation on how to use and configure the spell checking workflows.

* Corrects minor spelling and grammar errors.
This commit is contained in:
Magne Sjaastad authored and GitHub committed 2025-11-19 10:25:32 +01:00
1 parent 073e80d0a0
commit 544e9eedd9
96 files changed
+455 -147

No files matched your search

+1 -1
View File
@@ -72,7 +72,7 @@ namespace caf
//==================================================================================================
/// A generic Factory class template
/// Usage:
/// Simply add the classes that is supposed to be created by the factory by doing the folowing:
/// Simply add the classes that is supposed to be created by the factory by doing the following:
///
/// caf::Factory<BaseType, KeyType>::instance()->registerCreator<TypeToCreate>(key);
///
@@ -342,7 +342,7 @@ TEST( BaseTest, PdmChildArrayField )
TEST( BaseTest, PdmChildArrayParentField )
{
// Test of instanciating a class with forward declare of object used in PdmChildArrayField and PdmChildField
// Test of instantiating a class with forward declare of object used in PdmChildArrayField and PdmChildField
Parent* parentObj = new Parent;
delete parentObj;
@@ -630,8 +630,8 @@ TEST( BaseTest, testTypedChildren )
auto obj = s1->firstAncestorOrThisOfType<InheritedDemoObj>();
EXPECT_TRUE( obj == ihd1 );
auto decendants = ihd1->descendantsIncludingThisOfType<DemoPdmObject>();
EXPECT_EQ( size_t( 4 ), decendants.size() );
auto descendants = ihd1->descendantsIncludingThisOfType<DemoPdmObject>();
EXPECT_EQ( size_t( 4 ), descendants.size() );
delete ihd1;
}
@@ -68,7 +68,7 @@ private:
/// The guarding sets the pointer to NULL if the object pointed to dies
///
/// NOTE: This is not reference counting. The user is responsible to delete the objects pointed to.
/// It _can_ be used together with the cvf::ref system if neccesary (this is no recomendation)
/// It _can_ be used together with the cvf::ref system if necessary (this is no recommendation)
//==================================================================================================
template <class T>
@@ -117,7 +117,7 @@ void PdmFieldUiCap<FieldType>::setValueFromUiEditor( const QVariant& uiValue, bo
/// Note : For fields with a none-empty m_optionEntryCache list, the returned QVariant contains the
/// _indexes_ to the selected options rather than the actual values, if they can be found.
///
/// If this is a multivalue field, and we cant find all of the field values among the options,
/// If this is a multivalue field, and we can't find all of the field values among the options,
/// the method asserts (For now), forcing the valueOptions to always contain the field values.
/// Single value fields will return -1 if the option is not found, allowing the concept of "nothing selected"
//--------------------------------------------------------------------------------------------------