Skip to content

Commit

Permalink
Disable cspell allowCompoundWords (ansible#2660)
Browse files Browse the repository at this point in the history
Co-authored-by: Sorin Sbarnea <ssbarnea@redhat.com>
  • Loading branch information
shatakshiiii and ssbarnea authored Nov 17, 2022
1 parent ac58e9e commit 5130302
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 2 deletions.
107 changes: 107 additions & 0 deletions .config/dictionary.txt
Original file line number Diff line number Diff line change
@@ -1,77 +1,126 @@
Autobuild
CLICOLOR
CODENOTIFY
CODEOWNERS
CTYPE
DOTGLOB
ENVVAR
EPIPE # linux
Jython
MYTAG
PYTHONIOENCODING
Representer
REQPASS
RULEDIRS
RUNLEVEL
SRCROOT
Sshell
TOXENV
TYPECHECK
WSLENV
abspath
addoption
addopts
ansiblelint
apidoc
apport
argparsing
argspecs
auditd
autobuild
autoclass
autodetected
autodiscovery
autodoc
autofix
autoupdate
backports
backticks
bdist
becomeuserabove
bindep
blockincludes
blockinfile
bools
boto
bracketsmatchtest
bracketsmatchtestfile
buildinfo
buildset
builtins
capfd
caplog
capsys
cffi
chdir
chgrp
chkconfig
chunksize
codeclimate
codecov
codeql
codenotify
codespell
colorama
colsystem
commandline
commitlint
commonmark
compat
conftest
coveragerc
createfile
darglint
dataclasses
dbservers
debops
decryptable
delenv
dellemc
denormalize
deps
devel
dharmabumstead
dirhtml
dists
distutils
docstrings
doctest
doctrees
docutils
dotconfig
dotslash
ematcher
ematchtestfile
execnet
extlinks
fakerole
fileglob
filelock
filesspot
filetree
formatstr
formetting
formsyntax
fqcn
fqrn
fulltoc
fullwidth
getmatches
globbing
globmatch
hostkey
hostnames
hostvars
htmldir
htpasswd
hwchksum
hwcksum
idempotency
importlib
iniconfig
insertafter
intersphinx
ipwrap
isclass
isdir
Expand All @@ -80,47 +129,76 @@ iskeyword
isort
jsonschema
junitxml
keepends
kubernetes
letsencrypt
levelname
libera
libyaml
lineinfile
linkcheck
lintable
lintables
listrules
listtags
literalinclude
localectl
matchdir
matcherror
matchlines
matchtask
matchtasks
matchvar
matchyaml
maxdepth
minversion
mkdir
mkdocs
mkdtemp
mockings
mockreturn
modifyitems
modindex
moduleauthor
mypy
myrole
namedtempfile
nestedincludes
netcommon
nitpicky
nocolor
nodeps
noexist
nomatches
nomatchestest
noqa
norole
nostderr
notest
opensearch
openshift
outdir
outlen
pageview
parseable
pathex
pathlib
pathspec
pickleable
pipdeptree
pipefail
piptools
pipx
pkgcache # linux
pkgs
placefolder
playholder
pluggy
pluginmanager
podman
prerun
prettierignore
programoutput
psutil
pyargs
pycache
Expand All @@ -138,49 +216,71 @@ pypy
pytest
pyupgrade
pyyaml
redirections
regexes
releasenotes
relpath
reportversion
representer
reqs
returncode
rmtree
rolepath
roundtrip
ruamel
ruledirs
rulesdir
rulesdirs
sarif
scalarint
sdist
sdists
sectionauthor
setenv
setuptools
shortdesc
showlocals
shutil
signoff
simpletask
skippable
skiptasks
skiputils
slaveinput
sortfunc
sourcegraph
sphinxcontrib
srpm
stylesheet
subdir
subelements
subresults
substrs
subtest
supervisorctl
synchronize
sysvinit
taskhandler
taskimports
taskincludes
taskshandlers
templatevars
templating
testmon
testns
testpath
testpaths
testproject
testpypi
testrun
timesyncd
toctree
toidentifier
tomli
toolset
tripleo
typehint
typehints
uncook
ungrouped
unignored
Expand All @@ -194,17 +294,24 @@ unskippable
unspaced
unsubscriptable
untemplated
userbase
uwsgi
validable
varnotset
varset
varsfile
varstring
varunset
venv
viewcode
virtnet
virtualenv
virtualenvs
wcmatch
webserver
webservers
workdir
worktree
xdist
xfail
xunit
Expand Down
1 change: 0 additions & 1 deletion cspell.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ ignorePaths:
- src/ansiblelint/schemas/*.json
# Other
- "*.svg"
allowCompoundWords: true
2 changes: 1 addition & 1 deletion src/ansiblelint/rules/jinja.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def lex(self, text: str) -> list[Token]:
new_text = self.unlex(tokens)
if text != new_text:
_logger.debug(
"Unable to perform full roundrip lex-unlex on jinja template (expected when '-' modifier is used): {text} -> {new_text}"
"Unable to perform full roundtrip lex-unlex on jinja template (expected when '-' modifier is used): {text} -> {new_text}"
)
return tokens

Expand Down

0 comments on commit 5130302

Please sign in to comment.