Commit 26085b00 authored by Julien Osman's avatar Julien Osman
Browse files

STYLE: Fix typos

parent dde3270d
Pipeline #10300 canceled with stages
in 1 minute and 13 seconds
......@@ -166,7 +166,7 @@ polygon2->NbCrossing([6, 7], [6, 10]) = 0
polygon2->NbTouching([6, 7], [6, 10]) = 3
Bounding Boxs computation :
Bounding Boxes computation :
Bounding Box 1
Index : [2, 3] , Size : [7, 7]
Bounding Box 2
......
......@@ -102,7 +102,7 @@ void ConvertStringToVector(std::string const& str, T& ret, std::string const& er
* \param[in] str input string
* \param key[out] An std::string reference where key will be stored
* \param value[out] a reference of \cT where value will be stored
* \param defValue[in] a default value if there is no delimiter fo
* \param defValue[in] a default value if there is no delimiter
* \param[in] errmsg a msg complement used to build the error message to
be shown if there is \c lexical_cast exception. See \cotb:Utils::LexicalCast().
* \param delims delimiter characters (space is default)
......
......@@ -87,7 +87,7 @@ public:
* \param source The source spatial reference
* \param target The target spatial reference
*
* \throws InvalidCoordinateTransfromationException in case of failure
* \throws InvalidCoordinateTransformationException in case of failure
*/
CoordinateTransformation(const SpatialReference& source, const SpatialReference& destination);
......
......@@ -128,7 +128,7 @@ public:
/**\name Features collection */
//@{
/** Returns the number of elements in the layer.
* \param[in] doForceCompuation indicates whether the size shall be computed
* \param[in] doForceComputation indicates whether the size shall be computed
* even so it's expensive to do so.
*
* \return the number of features in the layer, -1 if count is unknown
......
......@@ -671,7 +671,7 @@ BOOST_AUTO_TEST_CASE(Add_n_Del_Fields)
ogr::FieldDefn f4(*defn.GetFieldDefn(4));
BOOST_CHECK_EQUAL(f4, k_f5);
}
// todo: add reoder tests
// todo: add reorder tests
}
BOOST_AUTO_TEST_CASE(Add_n_Read_Fields)
......
......@@ -857,7 +857,7 @@ void Sentinel1ImageMetadataInterface::ParseGeom(ImageMetadata & imd)
if (hasSAR)
{
// Old metadata (from geom) does not contain support_data.look_side for S1 products
// Rigth looking flag is always true for S1 products => hard coded value, here
// Right looking flag is always true for S1 products => hard coded value, here
sarParam.rightLookingFlag = true;
imd.Add(MDGeom::SAR, sarParam);
}
......
......@@ -923,7 +923,7 @@ void TerraSarXSarImageMetadataInterface::ParseGeom(ImageMetadata & imd)
sarParam.azimuthFmRates = this->GetAzimuthFmRateGeom();
sarParam.dopplerCentroids = this->GetDopplerCentroidGeom();
// Rigth looking flag is always true for TSX products
// Right looking flag is always true for TSX products
sarParam.rightLookingFlag = true;
const std::string supportDataPrefix = "support_data.";
......
......@@ -33,7 +33,7 @@ int otbTransformPointSetFilterTest(int, char* [])
// Declare the types of the PointSet
// By default it is a 3D PointSet using itk::Point<float, 3>
// on the vertices, and an itk::VectorContainter
// on the vertices, and an itk::VectorContainer
// as container for points
typedef itk::PointSet<PixelType> PointSetType;
......
......@@ -123,7 +123,7 @@ int otbPolygon(int itkNotUsed(argc), char* argv[])
file << "polygon2->NbTouching(" << current << ", " << firstVertex << ") = " << polygon2->NbTouching(current, firstVertex) << std::endl;
file << std::endl << std::endl;
file << "Bounding Boxs computation : " << std::endl;
file << "Bounding Boxes computation : " << std::endl;
PolygonType::RegionType r1 = polygon1->GetBoundingRegion();
file << "Bounding Box 1" << std::endl;
file << "Index : " << r1.GetIndex() << " , Size : " << r1.GetSize() << std::endl;
......
......@@ -28,7 +28,7 @@ int otbKullbackLeiblerDistanceImageFilter(int argc, char* argv[])
{
if (argc != 5)
{
std::cerr << "Detection de changements par mesure de Kullback-Leibler, optimisee par un development de Edgeworth\n";
std::cerr << "Change detection by Kullback-Leible measure, optimized by an Edgeworth development\n";
std::cerr << argv[0] << " imgAv imgAp imgResu winSize\n";
return 1;
}
......
......@@ -29,7 +29,7 @@ int otbKullbackLeiblerProfileImageFilter(int argc, char* argv[])
{
if (argc != 6)
{
std::cerr << "Detection de changements par mesure de Kullback-Leibler, optimisee par un development de Edgeworth\n";
std::cerr << "Change detection by Kullback-Leible measure, optimized by an Edgeworth development\n";
std::cerr << argv[0] << " imgAv imgAp imgResu winSizeMin winSizeMax\n";
return 1;
}
......
......@@ -111,7 +111,7 @@ bool MSTARImageIO::CanReadFile(const char* filename)
std::string fname = filename;
if (fname == "")
{
itkDebugMacro(<< "Fichier image non specifie.");
itkDebugMacro(<< "Image file not specified.");
}
MSTARname = filename;
......@@ -249,13 +249,13 @@ bool MSTARImageIO::CanWriteFile(const char* filename)
if (fname == "")
{
itkDebugMacro(<< "Fichier image non specifie.");
itkDebugMacro(<< "Image file not specified.");
}
if (formatFound == false)
{
std::string identificationErreur;
identificationErreur = "Format MSTAR non detecte dans l'extension du fichier.";
identificationErreur = "MSTAR format not detected in the file's extension.";
itkDebugMacro(<< identificationErreur.c_str());
}
......
......@@ -37,7 +37,7 @@ This test show a problem with the SVM library using the probability
estimation : bug 209.
If the probability estimation is activated, the classifier isn't
abble to find the hyperplan even if the sample are linearly
seperable.
separable.
cf. test leTvBug209_SVMValidationLinearlySeparableWithoutProbEstimate
=> OK
and leTvBug209_SVMValidationLinearlySeparableWithProbEstimate => KO
......
......@@ -107,7 +107,7 @@ void HooverMatrixFilter<TLabelMap>::ThreadedProcessLabelObject(LabelObjectType*
// if found : ++ in the cell [n, p]
for (unsigned long j = currentRegionMS; j < (currentRegionMS + m_NumberOfRegionsMS); j++)
{
// TODO : optimize here : call GetLabelObjet(label) would be faster
// TODO : optimize here : call GetLabelObject(label) would be faster
const LabelObjectType* regionMS = this->GetMachineSegmentationLabelMap()->GetNthLabelObject(j % m_NumberOfRegionsMS);
if (regionMS->HasIndex(idx))
{
......
......@@ -50,4 +50,4 @@ using VertexArrayObject = Handle< VertexArrayObjectPolicy >;
} // end namespace otb.
#endif // otb_GlVetexArrayObject_h
#endif // otb_GlVertexArrayObject_h
......@@ -48,6 +48,8 @@ EXCLUDED_FILES="$EXCLUDED_FILES,*/Documentation/SoftwareGuide/Art/*,*/Documentat
EXCLUDED_FILES="$EXCLUDED_FILES,*/Copyright/*,*/SuperBuild/Copyright/*"
# exclude maintenance, translation, license
EXCLUDED_FILES="$EXCLUDED_FILES,*/Utilities/Maintenance/fix_typos.sh,*/fix_typos/*,LICENSE,*/i18n/*"
# exclude Data directory
EXCLUDED_FILES="$EXCLUDED_FILES,*/Data/*"
#We use also words white list to handle deprecated classes/methods which are still there and contains some typos
......@@ -60,6 +62,14 @@ WORDS_WHITE_LIST="Developement"
WORDS_WHITE_LIST="$WORDS_WHITE_LIST,dum"
# for pary variable
WORDS_WHITE_LIST="$WORDS_WHITE_LIST,pary"
# LaTeX
WORDS_WHITE_LIST="$WORDS_WHITE_LIST,LaTeX,BibTeX,404"
# Technical terms
WORDS_WHITE_LIST="$WORDS_WHITE_LIST,SOM,som,HaA,ND,haa,Hsi,Eyt,VectorDatas,ot,inout,Lod"
# CMake
WORDS_WHITE_LIST="$WORDS_WHITE_LIST,DEPENDEES,Te,Alls"
# Names
WORDS_WHITE_LIST="$WORDS_WHITE_LIST,bre,Theis,Dout,Pont,Unser"
python3 fix_typos/codespell/codespell.py -w -i 3 -q 2 -S $EXCLUDED_FILES \
--words-white-list=$WORDS_WHITE_LIST \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment