Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable cspell allowCompoundWords #2660

Merged
merged 2 commits into from
Nov 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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