Skip to content

Commit

Permalink
chore: make spellcheck script less noisy with --no-progress flag
Browse files Browse the repository at this point in the history
A quality of life improvement for contributors.

Prior to this the cspell tool that we invoke for spellchecking had
listed every single file as a separate log line on standard output
during it's execution and the files that had issues were marked in
that list, but since we have more than a thousand files, it was a lot
of scrolling and scanning to find the files that had spelling mistakes
in them during development time.

With the `--no-progress` flag now passed in to cspell it will only print
the files that were found to have spelling mistakes in them which makes
contributor productivity a little better.

Signed-off-by: Peter Somogyvari <[email protected]>
  • Loading branch information
petermetz committed Feb 28, 2024
1 parent f57ab70 commit f1b4146
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@
"start:example-cbdc-bridging-app": "node -r ts-node/register examples/cactus-example-cbdc-bridging-backend/dist/lib/main/typescript/cbdc-bridging-app-cli.js dotenv_config_path=examples/cactus-example-cbdc-bridging-backend/process.env",
"purge-build-cache": "del-cli .build-cache/*",
"clean": "npm run purge-build-cache && del-cli \"./{packages,examples,extensions}/cactus-*/{dist,.nyc_output,src/main/kotlin/generated/openapi/kotlin-client/*,src/main/proto/generated/*,src/main/typescript/generated/openapi/typescript-axios/*,src/main-server/kotlin/gen/kotlin-spring/src/**/{model,api}/*}\" \"!**/.openapi-generator-ignore\"",
"lint": "eslint '*/*/src/**/*.{js,ts}' --quiet --fix && cspell \"*/*/src/**/*.{js,ts}\"",
"lint": "yarn run format && yarn run spellcheck",
"format": "eslint '*/*/src/**/*.{js,ts}' --quiet --fix",
"spellcheck": "cspell lint --no-progress \"*/*/src/**/*.{js,ts}\"",
"tsc": "tsc --build --verbose",
"codegen": "run-s 'codegen:warmup-*' codegen:lerna codegen:cleanup",
"codegen:cleanup": "rm --force --verbose ./openapitools.json",
Expand Down

0 comments on commit f1b4146

Please sign in to comment.