Merge "Enforce Spellchecker in CI" into stable/silicon
authorLuis Gomez <ecelgp@gmail.com>
Wed, 16 Jun 2021 00:21:52 +0000 (00:21 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 16 Jun 2021 00:21:52 +0000 (00:21 +0000)
docs/conf.py
docs/spelling_wordlist.txt
tox.ini

index 1113a2e4120b0169da56c58a12c4aa8dac236add..04a06fa203546d8eba99cbde5fe48e23240373b1 100755 (executable)
@@ -75,6 +75,8 @@ linkcheck_timeout = 300
 nitpicky = True
 release = version
 
+spelling_warning=True
+
 html_context = {
     'version_status': 'supported',
 }
index 8fe3f9c51cef98d04992f327c50c3d71d97beb4d..1f5883a3c8d5b44aa2a397e255e404e0c9df1141 100644 (file)
@@ -1,34 +1,38 @@
+aaa
+abelur
 ACL
+aggregator
+akka
 Akka
 Aluminium
-Asciidoc
-Async
-Autorelease
+analytics
 artefacts
+Asciidoc
 async
+Async
 augmentable
 autorelease
-aaa
-abelur
-akka
-analytics
-BigInteger
+Autorelease
 bgpcep
-bugfixes
+BigInteger
 boolean
+breakpoint
+bugfixes
+Bulleted
 bytecode
-Checkstyle
 catalogue
+checkbox
+Checkstyle
 closeable
 codebase
 codec
 codecs
+committer
+Committer
 committers
 config
 configurator
 Daexim
-Disruptor
-DOM
 dataplane
 datastore
 datastores
@@ -37,101 +41,121 @@ dependant
 deserialization
 deserialize
 dev
+Disruptor
+DOM
 downloader
-EPL
 eg
+EPL
 executer
 extendibility
+functionalities
 Gerrit
+getters
 Git
-Guice
+google
 GPG
-getters
+Guice
 Hamcrest
 hardcoded
 helpdesk
 hostname
+IDE
 ietf
 impactful
 infrautils
 instantiation
+interoperability
 intra
-JIT
-JVM
+IP
+IPv
+jamoluhrsen
+jarfile
 Javadoc
 Jenkins
 Jira
-JUnit
-jamoluhrsen
-jarfile
+JIT
 judgement
-Karaf
+JUnit
+JVM
 karaf
+Karaf
 keyed
-Logback
 lftools
 linter
+Logback
+logins
 Magnesium
-Mockito
-Netty
 mdsal
+metadata
 microservice
 microservices
 millis
 mitigation
 mitigations
+Mockito
+multi
+Multi
 muxponders
 namespace
 namespaces
-netvirt
 netconf
+Netty
+netvirt
 nitty
+occurance
+odlparent
 OpenDaylight
 OpenFlow
 OpenStack
-occurance
-odlparent
+optimizations
 overline
 ovs
 ovsdb
-PCE
+parameterized
 Pax
+PCE
 pre
 QoS
-Resolvers
-Runtime
-reStructuredText
 reachability
 rebase
 rebases
 rebasing
 reconfigurable
 reconnection
+refactor
+refactoring
 referenceable
 reimplemented
-remediations
 releng
+remediations
 renderer
+Resolvers
+reStructuredText
 rethrow
 rovarga
 runtime
-Shiro
+Runtime
+Scala
 scalability
+screenshots
+Shiro
+startup
 stateful
+subclasses
 submodule
 submodules
-subclasses
 subnet
 subtypes
 superclass
 switchponders
 syntaxes
 TCP
-TSC
-Trie
+Timeline
 todo
 tox
+Trie
 tsc
+TSC
 typeless
 uint
 uncheck
@@ -139,10 +163,14 @@ unkeyed
 unreachability
 untrusted
 uploader
+username
 variadic
-vTEP
+versioned
+versioning
 virtualenv
+virtualization
+vTEP
 whitespace
-yangtools
 Xerces
 xml
+yangtools
diff --git a/tox.ini b/tox.ini
index a4ac27f35257a3824defbf5c1c8fad599210b05a..fdb60289c50db52df7316a9af60cc0cda42f10f8 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
 [tox]
 minversion = 1.6
-envlist = pre-commit,gitlint,docs,docs-linkcheck
+envlist = pre-commit,gitlint,docs,docs-linkcheck,spelling
 skipsdist = true
 
 [testenv:docs]
@@ -53,5 +53,8 @@ deps =
     -rdocs/requirements.txt
     sphinxcontrib-spelling
     PyEnchant
-commands = sphinx-build -b spelling -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/spelling
+whitelist_externals = sh
+commands =
+    sh -c 'command enchant>/dev/null || sudo yum -y install enchant || (echo "enchant command not found - please install it (e.g. sudo apt-get install enchant | yum install enchant )" >&2 && exit 1)'
+    sphinx-build -q -W -b spelling -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/spelling