Core: [skip ci] ignore some code spell checks and filter all '_rc_.py' files

This commit is contained in:
wmayer
2022-12-05 10:12:49 +01:00
parent f948e5db4d
commit 313525a012
5 changed files with 11 additions and 8 deletions

View File

@@ -7,6 +7,7 @@ alocation
anid
anormal
apoints
aply
appy
ba
beginn
@@ -32,6 +33,7 @@ froms
hist
indicies
inout
isnt
ist
itsel
lod
@@ -70,5 +72,6 @@ uptodate
usind
vas
vertexes
vew
wallthickness
zuser

View File

@@ -54,7 +54,7 @@ env:
checkSpelling: true
listIgnoredMisspelling: .github/codespellignore
skip: ./.git,*.po,*.ts,*.svg,./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/,./tests/lib
skip: ./.git,*.po,*_rc.py,*.ts,*.svg,./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/,./tests/lib
codespellFailSilent: false
# Static Analysis

View File

@@ -347,12 +347,12 @@ void PropertyPythonObject::Restore(Base::XMLReader &reader)
load_json = true;
}
else if (boost::regex_search(start, end, what, pickle)) {
std::string nam = std::string(what[1].first, what[1].second);
std::string cls = std::string(what[2].first, what[2].second);
Py::Module mod(PyImport_ImportModule(nam.c_str()),true);
std::string name = std::string(what[1].first, what[1].second);
std::string type = std::string(what[2].first, what[2].second);
Py::Module mod(PyImport_ImportModule(name.c_str()),true);
if (mod.isNull())
throw Py::Exception();
this->object = PyObject_CallObject(mod.getAttr(cls).ptr(), nullptr);
this->object = PyObject_CallObject(mod.getAttr(type).ptr(), nullptr);
load_pickle = true;
buffer = std::string(what[2].second, end);
}

View File

@@ -229,8 +229,8 @@ PyObject* TypePy::createInstanceByName (PyObject *args)
if (!PyArg_ParseTuple(args, "s|O!", &name, &PyBool_Type, &load))
return nullptr;
bool bLoad = Base::asBoolean(load);
Base::Type type = Base::Type::getTypeIfDerivedFrom(name, Base::BaseClass::getClassTypeId(), bLoad);
bool loadModule = Base::asBoolean(load);
Base::Type type = Base::Type::getTypeIfDerivedFrom(name, Base::BaseClass::getClassTypeId(), loadModule);
if (type.isBad())
Py_Return;

View File

@@ -297,7 +297,7 @@
<item row="11" column="0">
<widget class="QLabel" name="textLabelComment">
<property name="text">
<string>Commen&amp;t:</string>
<string>&amp;Comment:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>