Skip to content

Commit

Permalink
fix: Add software licenses dictionary (#1523)
Browse files Browse the repository at this point in the history
* fix: Add software licenses dictionary

* Update snapshots

* Update app.test.ts.snap
  • Loading branch information
Jason3S committed Aug 14, 2021
1 parent 42617ad commit 43910d5
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 15 deletions.
3 changes: 3 additions & 0 deletions cspell.code-workspace
Expand Up @@ -30,6 +30,9 @@
},
{
"path": "./packages/cspell"
},
{
"path": "packages/cspell-bundled-dicts"
}
],
"launch": {
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/config/config.json
Expand Up @@ -289,7 +289,7 @@
"args": [
"**/*.*"
],
"commit": "e98029969f9552758393e03abd8c151c2e8bd2f7"
"commit": "ef19649d6cde45976a407dac837327d64b69a2c1"
}
]
}
3 changes: 1 addition & 2 deletions integration-tests/snapshots/AdaDoom3/AdaDoom3/snapshot.txt
Expand Up @@ -3,7 +3,7 @@ Repository: AdaDoom3/AdaDoom3
Url: "https://github.com/AdaDoom3/AdaDoom3.git"
Args: ["**/*.*"]
Lines:
CSpell: Files checked: 103, Issues found: 3270 in 98 files
CSpell: Files checked: 103, Issues found: 3268 in 98 files
exit code: 1
./Engine/Assembly/PPC/neo-engine-cpu.adb:5:78 - Unknown word (Squirek) -- Copyright (C) 2016 Justin Squirek
./Engine/Assembly/x86-64/neo-engine-cpu.adb:101:111 - Unknown word (OSXSAVE) -- ECX_Register, 27); -- OSXSAVE
Expand Down Expand Up @@ -370,7 +370,6 @@ Lines:
./Engine/neo-api-windows.ads:109:6 - Unknown word (ENDSCROLL) -- SB_ENDSCROLL : constant Int_Ptr
./Engine/neo-api-windows.ads:110:6 - Unknown word (LINEDOWN) -- SB_LINEDOWN : constant Int_Ptr
./Engine/neo-api-windows.ads:113:6 - Unknown word (MULTILINE) -- ES_MULTILINE : constant Int_Unsigned
./Engine/neo-api-windows.ads:114:6 - Unknown word (READONLY) -- ES_READONLY : constant Int_Unsigned
./Engine/neo-api-windows.ads:1154:30 - Unknown word (lpmsg) -- function DispatchMessageW (lpmsg : Ptr_MSG) -- const
./Engine/neo-api-windows.ads:118:3 - Unknown word (HCBT) -- HCBT_ACTIVATE : constant
./Engine/neo-api-windows.ads:1191:57 - Unknown word (LPCTSTRHMODULE) -- -- LPCTSTRHMODULE
Expand Down
Expand Up @@ -3,7 +3,7 @@ Repository: MartinThoma/LaTeX-examples
Url: "https://github.com/MartinThoma/LaTeX-examples.git"
Args: ["**/*.{md,tex}"]
Lines:
CSpell: Files checked: 1402, Issues found: 4321 in 520 files
CSpell: Files checked: 1402, Issues found: 4320 in 520 files
exit code: 1
./README.md:12:35 - Unknown word (Wikpedia) -- can be found on [my Wikpedia Commons user page](http
./README.md:20:26 - Unknown word (seperate) -- Every LaTeX file is in a seperate folder and has its own
Expand Down Expand Up @@ -1128,7 +1128,6 @@ Lines:
./misc/sound/README.md:4:63 - Unknown word (Texlive) -- probably that you need Texlive 2014.
./misc/sound/sound.tex:29:43 - Unknown word (Helloooo) -- Tex Stack Exchange. Helloooo, can anybody hear me
./misc/sound/sound.tex:70:5 - Unknown word (bordercolor) -- bordercolor={0.990 .980 .85},%
./misc/sound/sound.tex:71:2 - Unknown word (readonly) -- readonly=true]{}%
./presentations/Advanced/Advanced.tex:28:55 - Unknown word (subsubsections) -- thesection}] % shows only subsubsections of one subsection
./presentations/Bachelor-Final-Presentation/LaTeX/end.tex:19:89 - Unknown word (Eicons) -- multiple.svg}{Server} by RRZEicons
./presentations/Bachelor-Final-Presentation/LaTeX/end.tex:1:13 - Unknown word (HWRT) -- \subsection{HWRT and write-math.com}
Expand Down
4 changes: 1 addition & 3 deletions integration-tests/snapshots/php/php-src/snapshot.txt
Expand Up @@ -3,7 +3,7 @@ Repository: php/php-src
Url: "https://github.com/php/php-src.git"
Args: ["--config=../../../../config/repositories/php/php-src/cspell.json","**/*.{md,c,h,php}"]
Lines:
CSpell: Files checked: 1821, Issues found: 19850 in 1087 files
CSpell: Files checked: 1821, Issues found: 19848 in 1087 files
exit code: 1
./CODING_STANDARDS.md:105:8 - Unknown word (setclientencoding) -- pg_setclientencoding
./CODING_STANDARDS.md:126:5 - Unknown word (fooselect) -- fooselect_bar
Expand Down Expand Up @@ -1602,7 +1602,6 @@ Lines:
./ext/imap/tests/README.md:14:18 - Unknown word (libc) -- `apt-get install libc-client-dev libkrb5-dev
./ext/imap/tests/README.md:14:34 - Unknown word (libkrb) -- install libc-client-dev libkrb5-dev dovecot-core dovecot
./ext/imap/tests/README.md:14:81 - Unknown word (imapd) -- dovecot-pop3d dovecot-imapd sendmail`
./ext/imap/tests/README.md:14:87 - Unknown word (sendmail) -- pop3d dovecot-imapd sendmail`
./ext/imap/tests/README.md:21:80 - Unknown word (vmail) -- which will add the `vmail`
./ext/imap/tests/README.md:23:63 - Unknown word (dovecotpass) -- ext/imap/tests/setup/dovecotpass` to the correct
./ext/imap/tests/README.md:4:58 - Unknown word (skipif) -- will skip and warn, see skipif.inc for details.
Expand Down Expand Up @@ -3722,7 +3721,6 @@ Lines:
./ext/snmp/tests/README.md:18:56 - Unknown word (snmpset) -- used for write tests (snmpset()).
./ext/snmp/tests/README.md:19:6 - Unknown word (MIBDIR) -- SNMP_MIBDIR : Directory containing
./ext/snmp/tests/README.md:1:7 - Unknown word (snmp) -- # The snmp extension tests
./ext/snmp/tests/README.md:26:79 - Unknown word (xargs) -- snmp/tests/*.phpt | xargs echo`"
./ext/snmp/tests/README.md:33:20 - Unknown word (SNMPD) -- ## Configuring the SNMPD server
./ext/snmp/tests/README.md:37:23 - Unknown word (snmpd) -- On Ubuntu, install `snmpd` and `snmp-mibs-downloader
./ext/snmp/tests/README.md:46:25 - Unknown word (bigtest) -- Place `ext/snmp/tests/bigtest` near `snmpd.conf`,
Expand Down
Expand Up @@ -3,5 +3,5 @@ Repository: streetsidesoftware/cspell-dicts
Url: "https://github.com/streetsidesoftware/cspell-dicts.git"
Args: ["**/*.*"]
Lines:
CSpell: Files checked: 1041, Issues found: 0 in 0 files
CSpell: Files checked: 1038, Issues found: 0 in 0 files
exit code: 0
4 changes: 3 additions & 1 deletion packages/cspell-bundled-dicts/cspell-default.json
Expand Up @@ -3,6 +3,7 @@
"version": "0.2",
"name": "cspell default settings",
"id": "cspell-default",
"readonly": true,
"language": "en",
"description": "Default cspell configuration.",
"words": [],
Expand All @@ -22,7 +23,7 @@
"languageSettings": [
{
"languageId": "*",
"dictionaries": ["companies", "softwareTerms", "filetypes"]
"dictionaries": ["companies", "softwareTerms", "public-licenses", "filetypes"]
},
{
"languageId": "csharp",
Expand Down Expand Up @@ -115,6 +116,7 @@
"@cspell/dict-npm/cspell-ext.json",
"@cspell/dict-php/cspell-ext.json",
"@cspell/dict-powershell/cspell-ext.json",
"@cspell/dict-public-licenses/cspell-ext.json",
"@cspell/dict-python/cspell-ext.json",
"@cspell/dict-ruby/cspell-ext.json",
"@cspell/dict-rust/cspell-ext.json",
Expand Down
11 changes: 8 additions & 3 deletions packages/cspell-bundled-dicts/package-lock.json

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

3 changes: 2 additions & 1 deletion packages/cspell-bundled-dicts/package.json
Expand Up @@ -63,11 +63,12 @@
"@cspell/dict-npm": "^1.0.15",
"@cspell/dict-php": "^1.0.24",
"@cspell/dict-powershell": "^1.0.18",
"@cspell/dict-public-licenses": "^1.0.1",
"@cspell/dict-python": "^1.0.37",
"@cspell/dict-ruby": "^1.0.14",
"@cspell/dict-rust": "^1.0.23",
"@cspell/dict-scala": "^1.0.21",
"@cspell/dict-software-terms": "^1.0.39",
"@cspell/dict-software-terms": "^1.0.40",
"@cspell/dict-typescript": "^1.0.19"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cspell/src/__snapshots__/app.test.ts.snap
Expand Up @@ -225,7 +225,7 @@ info
info Checking: ./src/app.test.ts, File type: auto, Language: default
info Checked: ./src/app.test.ts, File type: typescript, Language: en ... Issues: 0 0.00S
info Config file Used: ./cspell.json
info Dictionaries Used: backwards-compatibility, workspace, aws, companies, cryptocurrencies, en_us, filetypes, softwareTerms, fullstack, node, npm, typescript
info Dictionaries Used: backwards-compatibility, workspace, aws, companies, cryptocurrencies, en_us, filetypes, public-licenses, softwareTerms, fullstack, node, npm, typescript
error 1/1 ./src/app.test.ts 0.00ms
error CSpell: Files checked: 1, Issues found: 0 in 0 files"
`;
Expand Down

0 comments on commit 43910d5

Please sign in to comment.