Can CSpell create dictionaries from package lock files? e.g. yarn.lock, Gemfile.lock #6965
ndbroadbent
started this conversation in
General
Replies: 2 comments
-
Does CSpell not support dynamic dictionaries? I've been trying to build a plugin / extension but I can't figure out how to run custom code to generate a dictionary. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I couldn't figure out how to build a plugin/extension, but I did build a tool to generate static wordlists that you can add to your config: /~https://github.com/DocSpring/cspell-lockfile-dicts Now you'll be able to reference any package (or even any author) in your code or comments without any spelling errors. Can add to CI to keep them updated |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to automatically create wordlists from my package lock files so I don't have to manually add package names to my config. Is this a built-in feature or is there a plugin?
I think lockfiles are a good starting point for a dictionary - they are automatically generated by code and aren't edited by users, so we can generally trust that they don't contain any typos. So I would like CSpell to read these files and consider any string of alphanumeric characters in there to be a valid word.
Beta Was this translation helpful? Give feedback.
All reactions