This release is a pre-release and may not be stable for production use.
C Code Spell Correction
Context aware spelling check of comments and string literals in C/C++ source code files. Operation is non-interactive to facilitate operations on an existing large code base.
- First pass to collect terms from source code and propose corrections to comments.
$ ./cspell --out-dict code.dic --out-corrections fix.json code.c ...
-
Edit candiate corrections in fix.json.
-
Apply corrections
$ ./cspell --add-dict code.dic --corrections fix.json --modify code.c ...
The argument -f/--inputs reads a list of source files from a file.
Operation
cspell separates string literals and C/C++ comments from code.
Tokens/terms found in code are automatically excluding from spell check.
So in the following, myfunc(), thearg, and retval will not
be flagged as spelling errors.
/** Copyright 2021 Michael Davidsaver
* Who can't spelll rite
*/
#include <stdio.h>
/** @brief special
* @param thearg is the argument
*/
void myfunc(int thearg) {
// myfunc() is a functon on thearg and retval
int retval = thearg;
if(thearg==42)
printf("thearg is amagic value\n");
/* another commment */
return retval;
}
Metadata
Release files for cspell 0.0.1a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cspell-0.0.1a1.tar.gz | 6.3 kB | Without provenance | Details for cspell-0.0.1a1.tar.gz |
Release files / cspell-0.0.1a1.tar.gz
| Download URL | cspell-0.0.1a1.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ac6ea3b878e1261ddcd34dd04066f4ff0a23503996aabcecb8ecfb69c4c691e
|
|
BLAKE2b-256 checksum How to use checksums |
5d2d3ab66db6acaddbe275e67892660fbc52e89d2cff1308deea01dde3471a17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3
|
Security for cspell 0.0.1a1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.