Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main Repositories
otb
Commits
2f28e387
Commit
2f28e387
authored
8 years ago
by
Manuel Grizonnet
Browse files
Options
Downloads
Patches
Plain Diff
STYLE: use words white list with codespell
parent
c441ff93
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Utilities/Maintenance/fix_typos.sh
+25
-20
25 additions, 20 deletions
Utilities/Maintenance/fix_typos.sh
with
25 additions
and
20 deletions
Utilities/Maintenance/fix_typos.sh
+
25
−
20
View file @
2f28e387
...
...
@@ -23,15 +23,6 @@
# DEALINGS IN THE SOFTWARE.
###############################################################################
#FIXME
#Rename AssymetricFusionOfDetectorImageFilter to AsymetricFusionOfDetectorImageFilter
#Rename Restauration to Restoration
#Rename InstanciateTransform() to InstantiateTransform()
#Rename Adressing ==> Addressing
# ../../Modules/Core/Metadata/include/otbDefaultImageMetadataInterface.h:155: clas ==> class | disabled because of name clash in c++
# m_ShrinkedOutput -> m_ShrunkOutput
# convertor -> converter
if
!
test
-d
fix_typos
;
then
# Get even rouault fork of codespell that adds --words-white-list and full filename support for -S option
mkdir
fix_typos
...
...
@@ -53,19 +44,33 @@ EXCLUDED_FILES="*/.git*"
EXCLUDED_FILES
=
"
$EXCLUDED_FILES
,*/Modules/ThirdParty/6S/*,*/Modules/ThirdParty/SiftFast/*,*/Modules/ThirdParty/SPTW/*,*/SuperBuild/patches/*,*/Utilities/Doxygen/*"
#Exclude also documentation for now
EXCLUDED_FILES
=
"
$EXCLUDED_FILES
,*/Documentation/*"
#Exclude also Copyright folder for now
EXCLUDED_FILES
=
"
$EXCLUDED_FILES
,*/Copyright/*,*/SuperBuild/Copyright/*,*/Utilities/Maintenance/*,LICENSE,*/i18n/*"
#Exclude also Copyright folder
EXCLUDED_FILES
=
"
$EXCLUDED_FILES
,*/Copyright/*,*/SuperBuild/Copyright/*"
# exclude maintenance, translation, license
EXCLUDED_FILES
=
"
$EXCLUDED_FILES
,*/Utilities/Maintenance/*,*/fix_typos/*,LICENSE,*/i18n/*"
#We use also words white list to handle deprecated classes/methods which are still there and contains some typos
#We use also words white list to
#This list should be updated after each release when deprecated classes/methods are removed
# use with --words-white-list=$WORDS_WHITE_LIST
# WORDS_WHITE_LIST="Assymmetric"
# WORDS_WHITE_LIST="$WORDS_WHITE_LIST,Instanciate"
# WORDS_WHITE_LIST="$WORDS_WHITE_LIST,Initialisation"
#FIXME need to add all deprecated classes and methods with typos in the white list
#for deprecated class AssymmetricFusionOfLineDetectorImageFilter
WORDS_WHITE_LIST
=
"Assymmetric"
#for deprecated method InstanciateProjection in multiple classes
WORDS_WHITE_LIST
=
"
$WORDS_WHITE_LIST
,Instanciate"
#for deprecated method DoFinalizeInitialisation in otbGeometriesToGeometriesFilter.h
WORDS_WHITE_LIST
=
"
$WORDS_WHITE_LIST
,Initialisation"
#for deprecated method getSubstraction
WORDS_WHITE_LIST
=
"
$WORDS_WHITE_LIST
,Substraction"
#for deprecated method ParseFileNameForAdditonalInfo
WORDS_WHITE_LIST
=
"
$WORDS_WHITE_LIST
,Additonal"
# for "Biologie du Developpement et de la Reproduction, INRA de Jouy-en-Josas, France" in LabelMapToLabelImageFilter
WORDS_WHITE_LIST
=
"
$WORDS_WHITE_LIST
,Developement"
# for deprecated method GetShrinkedOutput in otbStreamingShrinkImageFilter
WORDS_WHITE_LIST
=
"
$WORDS_WHITE_LIST
,Shrinked"
# for dum variable in prosail
WORDS_WHITE_LIST
=
"
$WORDS_WHITE_LIST
,dum"
python3 fix_typos/codespell/codespell.py codespell.py
-w
-i
3
-q
2
-S
$EXCLUDED_FILES
-D
fix_typos/otb_dict.txt ../..
python3 fix_typos/codespell/codespell.py codespell.py
-w
-i
3
-q
2
-S
$EXCLUDED_FILES
\
--words-white-list
=
$WORDS_WHITE_LIST
\
-D
fix_typos/otb_dict.txt ../..
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment