Skip to content

Commit

Permalink
test: add a test case for issue #1626 (#1627)
Browse files Browse the repository at this point in the history
* dev: add a test case for issue #1626

* ci: do not lint test fixtures
  • Loading branch information
Jason3S committed Sep 2, 2021
1 parent 9bc7607 commit b41be5d
Show file tree
Hide file tree
Showing 8 changed files with 99 additions and 6 deletions.
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"
}
}

0 comments on commit b41be5d

Please sign in to comment.