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

test: add a test case for issue #1626 #1627

Merged
merged 2 commits into from Sep 2, 2021
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc.js
Expand Up @@ -24,6 +24,7 @@ const config = {
'**/node_modules/**',
'docs/_site/**',
'integration-tests/repositories/**',
'test-fixtures/**',
'test-packages/yarn2/**',
],
parserOptions: {
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Expand Up @@ -15,4 +15,5 @@ integration-tests/repositories/*/*/**
lerna.json
packages/*/dist/
packages/cspell-bundled-dicts/cspell-default.config.js
test-fixtures/**
tsconfig*.json
13 changes: 7 additions & 6 deletions cspell.json
Expand Up @@ -17,32 +17,33 @@
".eslintignore",
".gitattributes",
".gitignore",
".pnp.{js,cjs}",
".prettierignore",
".yarn",
"*.{png,jpg,pdf}",
"**/.gitignore",
"**/.vscode/**",
"**/{cspell.*,cSpell.*,.cspell.*,cspell.config.*}",
"*.{png,jpg,pdf}",
"**/*.snap",
"**/*.trie",
"**/coverage/**",
"**/dist/**",
"**/jest.config.js",
"**/node_modules/**",
"**/package*.json",
"**/tsconfig.json",
"test-packages/test-cspell-tools/src/*.txt",
"cspell.json",
".yarn",
".pnp.{js,cjs}",
"integration-tests/config/config.json",
"integration-tests/config/repositories/**",
"integration-tests/repositories/**",
"integration-tests/snapshots/**",
"lcov.info",
"package*.json",
"package*.json",
"packages/*/samples/**",
"packages/Samples/**",
"temp"
"temp",
"test-fixtures/**",
"test-packages/test-cspell-tools/src/*.txt"
],
"ignoreWords": [
"commitcomment"
Expand Down
1 change: 1 addition & 0 deletions test-fixtures/issues/issue-1626/.dictionary.txt
@@ -0,0 +1 @@
# dictionary
10 changes: 10 additions & 0 deletions test-fixtures/issues/issue-1626/axiallary.cs
@@ -0,0 +1,10 @@
// ["Axiallary" isn't a word. · Issue #573 · streetsidesoftware/cspell-dicts](https://github.com/streetsidesoftware/cspell-dicts/issues/573)
// ["Axiallary" isn't a word. · Issue #1626 · streetsidesoftware/cspell](https://github.com/streetsidesoftware/cspell/issues/1626)
namespace axiallary
{
public class Axiallary
{
public static string axiallary = "axiallary";
public static string dalek = "dalek";
}
}
51 changes: 51 additions & 0 deletions test-fixtures/issues/issue-1626/cspell.json
@@ -0,0 +1,51 @@
{
"version": "0.2",
"language": "en-US",
"import": [
"@cspell/dict-medicalterms/cspell-ext.json"
],
"dictionaryDefinitions": [
{
"name": "custom",
"path": "./.dictionary.txt"
}
],
"dictionaries": [
"bash",
"csharp",
"custom",
"dotnet",
"filetypes",
"fonts",
"medicalterms",
"powershell",
"python",
"softwareTerms"
],
"languageSettings": [
{
"languageId": "*",
"allowCompoundWords": false
}
],
"ignorePaths": [
".jscpd.json",
".vs",
".vscode",
"package-lock.json",
"**/*.user",
"bin/**",
"obj/**",
"AppPackages/**",
"BundleArtifacts/**",
"super-linter.log",
"node_modules",
"package.json",
"Pipfile",
".virtualenv"
],
"flagWords": [
"bicep",
"tricep"
]
}
14 changes: 14 additions & 0 deletions test-fixtures/issues/issue-1626/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions test-fixtures/issues/issue-1626/package.json
@@ -0,0 +1,14 @@
{
"name": "issue-cspell-dict-573",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "MIT",
"devDependencies": {
"@cspell/dict-medicalterms": "^1.0.27"
}
}