This is an automated email from the ASF dual-hosted git repository.

dahn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/main by this push:
     new 2919cac6432 pre-commit: add `codespell` to check spelling (#8197)
2919cac6432 is described below

commit 2919cac64329ab4360c772c9d5b713ee45a147ef
Author: John Bampton <jbamp...@users.noreply.github.com>
AuthorDate: Fri Jul 12 17:44:14 2024 +1000

    pre-commit: add `codespell` to check spelling (#8197)
---
 .github/linters/codespell.txt | 526 ++++++++++++++++++++++++++++++++++++++++++
 .pre-commit-config.yaml       |   8 +
 pom.xml                       |   1 +
 3 files changed, 535 insertions(+)

diff --git a/.github/linters/codespell.txt b/.github/linters/codespell.txt
new file mode 100644
index 00000000000..37b3e6de1cb
--- /dev/null
+++ b/.github/linters/codespell.txt
@@ -0,0 +1,526 @@
+accouns
+acheived
+acount
+actuall
+acuiring
+acumulate
+addreess
+addtion
+adminstrator
+afer
+afrer
+afterall
+againt
+ags
+aktive
+algoritm
+allo
+alloacate
+allocted
+alocation
+alogrithm
+alpha-numeric
+alue
+ammended
+ammount
+ans
+anull
+apche
+aplication
+apllication
+applicatio
+apporpriate
+appropritate
+aqcuire
+aqcuired
+aquire
+aquiring
+assiciate
+assigne
+assoication
+assosiate
+asssert
+astroid
+asynchroniously
+asyncronous
+atleast
+atomation
+attache
+attch
+attches
+authenciation
+authenitcation
+authenitication
+availiability
+avialable
+bais
+beacause
+beacuse
+becase
+becasue
+becaues
+behviour
+birdge
+bject
+boardcast
+bootstraper
+bu
+cant
+capabilites
+capablity
+capcity
+carrefully
+cavaet
+chaing
+checkd
+childs
+choosen
+chould
+clenup
+cliente
+clinet
+cluser
+cna
+collison
+comman
+commited
+comparision
+comparisions
+complient
+concious
+conectix
+confg
+configruation
+configuable
+conneciton
+connexion
+constrait
+constraits
+containg
+contex
+continuesly
+contro
+controler
+controles
+controll
+convienient
+convinience
+coputer
+correcponding
+correspoding
+correspoonds
+cosole
+coudl
+couldnt
+craete
+craeted
+crate
+crated
+createa
+createing
+credentail
+cros
+crresponding
+curren
+currentl
+datas
+decalared
+declatory
+decocdes
+decypher
+defalut
+defaut
+defered
+definiton
+deleteable
+dependancy
+dependant
+dependend
+deployement
+deply
+deplying
+dervied
+descktop
+descrption
+deserialzed
+desination
+detination
+detroy
+detroying
+dettach
+dettached
+dettaching
+diabling
+diasbled
+dictonary
+didnt
+differnet
+differnt
+direcotry
+directroy
+disale
+disbale
+discrepency
+disover
+dissapper
+dissassociated
+divice
+doesn'
+doesnot
+doesnt
+dont'
+doubleclick
+dows
+eanbled
+earch
+ect
+elemnt
+eles
+elments
+emmited
+enble
+encryted
+enebled
+enmpty
+entires
+enviornment
+environmnet
+equivalant
+erro
+erronous
+everthing
+everytime
+excetion
+excption
+excute
+execept
+execption
+execut
+executeable
+exeeded
+exisitng
+exisits
+existin
+existsing
+exitting
+expcted
+expection
+explaination
+explicitely
+faield
+faild
+failes
+falied
+fasion
+feild
+filenname
+fillled
+findout
+fisrt
+fo
+folowing
+fowarding
+frist
+fro
+frontent
+fuctionality
+genarate
+generallly
+gernerate
+get's
+gloabal
+gorry
+gracefull
+gradiant
+handeling
+hanling
+happend
+hasing
+hasnt
+hda
+hostanme
+hould
+hsould
+hte
+identifers
+identifyer
+identifyers
+igoring
+immediatley
+implememented
+implementor
+implementors
+implemnt
+implict
+implmeneted
+implmentation
+incase
+includeing
+incosistency
+indecates
+indien
+infor
+informations
+informaton
+infrastrcuture
+ingore
+inital
+initalize
+initator
+initilization
+inspite
+instace
+instal
+instnace
+intefaces
+intepret
+intereface
+interfer
+interpretted
+intialize
+intializes
+intializing
+invlaid
+invokation
+isnt
+ist
+klunky
+lable
+leve
+lief
+limite
+linke
+listner
+lokal
+lokales
+maintainence
+maintenace
+maintenence
+mamagement
+mambers
+manaully
+manuel
+maxium
+mehtod
+mergable
+mesage
+messge
+metatdata
+milisecond
+minumum
+mis
+modifers
+mor
+mot
+mulitply
+multipl
+multple
+mutliple
+nast
+nd
+neccessary
+necesary
+netowrk
+nin
+nodel
+nome
+noone
+nowe
+numbe
+numer
+occured
+occurence
+occuring
+offfering
+ofthe
+omited
+onother
+opeation
+optin
+orginal
+otherwse
+outter
+overriden
+overwritting
+paramater
+paramemeter
+paramenter
+paramete
+parametrs
+pararmeter
+parms
+parralels
+particualr
+passowrd
+perfromed
+permissble
+physcial
+plugable
+pluging
+polcies
+policys
+poluting
+possiblity
+potenial
+prefered
+preffered
+pressenter
+previleges
+primay
+priviledged
+procuct
+programatically
+progres
+properites
+propertie
+propertys
+propogate
+provison
+psudo
+pyhsical
+readabilty
+readd
+reccuring
+recevied
+recieved
+recursivelly
+redunant
+refference
+releease
+relese
+remaning
+remore
+remvoing
+renabling
+repeatly
+reponse
+reqest
+reqiured
+requieres
+requried
+reserv
+reserverd
+reseted
+reseting
+resorce
+responser
+resposne
+resturns
+retreive
+retreiving
+retrive
+retrived
+retriving
+retrun
+retuned
+returing
+re-use
+rever
+rocessor
+runing
+runnign
+sate
+scalled
+scipt
+scirpt
+scrip
+seconadry
+seconday
+seesion
+sepcified
+sepcify
+seprated
+ser
+servies
+seting
+settig
+sevices
+shoul
+shoule
+sie
+signle
+simplier
+singature
+skiping
+snaphsot
+snpashot
+specied
+specifed
+specifiy
+splitted
+spped
+standy
+statics
+stickyness
+stil
+stip
+storeage
+strat
+streched
+strutural
+succesfull
+successfull
+suceessful
+suces
+sucessfully
+suiteable
+suppots
+suppport
+syncronous
+syste
+tage
+te
+tempdate
+testng
+tha
+thats
+ther
+therefor
+theres
+theses
+thi
+thorugh
+throught
+ths
+tipically
+transction
+tring
+trough
+tyoe
+ue
+ues
+unavailibility
+uncommited
+uncompressible
+uneccessarily
+unexepected
+unexpect
+unknow
+unkonw
+unkown
+unneccessary
+unparseable
+unrecoginized
+unsupport
+unxpected
+updat
+uptodate
+usera
+usign
+usin
+utlization
+vaidate
+valiate
+valule
+valus
+varibles
+verfy
+verfying
+verifing
+virutal
+visable
+wakup
+wil
+wit
+wll
+wth
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 3d0410f3dec..e8f3c6093a9 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -62,6 +62,14 @@ repos:
         files: 
\.(header|in|java|md|properties|py|rb|sh|sql|txt|vue|xml|yaml|yml)$
         args: [--markdown-linebreak-ext=md]
         exclude: 
^services/console-proxy/rdpconsole/src/test/doc/freerdp-debug-log\.txt$
+  - repo: https://github.com/codespell-project/codespell
+    rev: v2.2.6
+    hooks:
+      - id: codespell
+        name: run codespell
+        description: Check spelling with codespell
+        args: [--ignore-words=.github/linters/codespell.txt]
+        exclude: 
^ui/package\.json$|^ui/package-lock\.json$|^ui/public/js/less\.min\.js$|^ui/public/locales/.*[^n].*\.json$
   - repo: https://github.com/pycqa/flake8
     rev: 7.0.0
     hooks:
diff --git a/pom.xml b/pom.xml
index 24247f50050..727ac2f7c5b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1013,6 +1013,7 @@
                             <exclude>.idea/</exclude>
                             <exclude>.metadata/**</exclude>
                             <exclude>.git/**</exclude>
+                            <exclude>.github/linters/codespell.txt</exclude>
                             <exclude>.gitignore</exclude>
                             <exclude>CHANGES.md</exclude>
                             <exclude>CONTRIBUTING.md</exclude>

Reply via email to