From dc288a7ade2d30fdd58503fcb43927f75cbc1aec Mon Sep 17 00:00:00 2001 From: luz paz Date: Tue, 4 Jan 2022 19:54:13 -0500 Subject: [PATCH] Fix more typos + whitespace fix and added 'TODO' Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,apoints,ba,beginn,behaviour,bloaded,bottome,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childrens,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,inout,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oce,oder,ontop,orgin,orginx,orginy,ot,pard,parm,parms,pres,programm,que,rady,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml,./build/doc/SourceDocu` --- src/App/GeoFeatureGroupExtension.h | 4 ++-- src/Base/FileInfo.h | 2 +- src/Mod/Arch/exportIFCStructuralTools.py | 4 ++-- src/Mod/Draft/coding_conventions.md | 2 +- src/Mod/Part/App/Attacher.h | 2 +- src/Mod/Path/PathScripts/post/grbl_post.py | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/App/GeoFeatureGroupExtension.h b/src/App/GeoFeatureGroupExtension.h index 8b090d1217..376b2c1401 100644 --- a/src/App/GeoFeatureGroupExtension.h +++ b/src/App/GeoFeatureGroupExtension.h @@ -74,8 +74,8 @@ public: /** Returns the geo feature group which contains this object. * In case this object is not part of any geoFeatureGroup 0 is returned. - * Unlike DocumentObjectGroup::getGroupOfObject serches only for GeoFeatureGroups - * @param obj the object to search for + * Unlike DocumentObjectGroup::getGroupOfObject searches only for GeoFeatureGroups + * @param obj the object to search for */ static DocumentObject* getGroupOfObject(const DocumentObject* obj); diff --git a/src/Base/FileInfo.h b/src/Base/FileInfo.h index 763218bad9..26c053339d 100644 --- a/src/Base/FileInfo.h +++ b/src/Base/FileInfo.h @@ -86,7 +86,7 @@ public: *@endcode */ std::string completeExtension () const; - /// Checks for a special extension, NOT case sensetive + /// Checks for a special extension, NOT case sensitive bool hasExtension (const char* Ext) const; //@} diff --git a/src/Mod/Arch/exportIFCStructuralTools.py b/src/Mod/Arch/exportIFCStructuralTools.py index aa879cc198..e767cd338f 100644 --- a/src/Mod/Arch/exportIFCStructuralTools.py +++ b/src/Mod/Arch/exportIFCStructuralTools.py @@ -251,8 +251,8 @@ def createStructuralMember(ifcfile, ifcbin, obj): topologyRep = ifcfile.createIfcTopologyRepresentation(structContext, "Analysis", "Face", (face,)) prodDefShape = ifcfile.createIfcProductDefinitionShape(None, None, (topologyRep,)) # sets surface thickness - # ATM limitations - # - for verical slabs (walls) or inclined slabs (ramps) the thickness is taken from the Height property + # TODO: ATM limitations + # - for vertical slabs (walls) or inclined slabs (ramps) the thickness is taken from the Height property thickness = float(obj.Height)*scaling # creates structural member structuralMember = ifcfile.createIfcStructuralSurfaceMember( diff --git a/src/Mod/Draft/coding_conventions.md b/src/Mod/Draft/coding_conventions.md index c807f41bc6..d88526a48a 100644 --- a/src/Mod/Draft/coding_conventions.md +++ b/src/Mod/Draft/coding_conventions.md @@ -103,7 +103,7 @@ find src/Mod/Draft -name '*.py' ! -name InitGui.py -exec flake8 --ignore=E226,E2 - The online [LGTM service](https://lgtm.com/projects/g/FreeCAD/FreeCAD/latest/files/src/Mod/Draft/) is also able to analyze the code and detect problems. -- Avoid automatic code formaters. +- Avoid automatic code formatters. ## C++ diff --git a/src/Mod/Part/App/Attacher.h b/src/Mod/Part/App/Attacher.h index 8b3cc28a99..be49ef5258 100644 --- a/src/Mod/Part/App/Attacher.h +++ b/src/Mod/Part/App/Attacher.h @@ -45,7 +45,7 @@ namespace Attacher class AttachEngine; -//Attention! The numbers assiciated to the modes are permanent, because they are what get written into files. +//Attention! The numbers associated to the modes are permanent, because they are what get written into files. enum eMapMode { mmDeactivated, mmTranslate, diff --git a/src/Mod/Path/PathScripts/post/grbl_post.py b/src/Mod/Path/PathScripts/post/grbl_post.py index 66579c6b8e..9064e8f821 100755 --- a/src/Mod/Path/PathScripts/post/grbl_post.py +++ b/src/Mod/Path/PathScripts/post/grbl_post.py @@ -646,7 +646,7 @@ def drill_translate(outstring, cmd, params): ) print(strF_Feedrate) - # preliminary mouvement(s) + # preliminary movement(s) if CURRENT_Z < RETRACT_Z: trBuff += linenumber() + strG0_RETRACT_Z trBuff += (