From e60dbafa84120a6c623cbb1b3b3f7b1a2e7e6207 Mon Sep 17 00:00:00 2001 From: Jason Dent Date: Mon, 31 Oct 2022 11:00:35 +0100 Subject: [PATCH] feat!: Rebuild Java Dictionary (#1557) --- dictionaries/java/cspell-ext.json | 2 +- dictionaries/java/cspell-tools.config.yaml | 15 + dictionaries/java/cspell.json | 1 + dictionaries/java/java.trie | 2918 ++++++++++++++++++++ dictionaries/java/package.json | 9 +- dictionaries/java/{ => src}/java.txt | 0 6 files changed, 2940 insertions(+), 5 deletions(-) create mode 100644 dictionaries/java/cspell-tools.config.yaml create mode 100644 dictionaries/java/java.trie rename dictionaries/java/{ => src}/java.txt (100%) diff --git a/dictionaries/java/cspell-ext.json b/dictionaries/java/cspell-ext.json index 7363efab6b2..05b8832752d 100644 --- a/dictionaries/java/cspell-ext.json +++ b/dictionaries/java/cspell-ext.json @@ -6,7 +6,7 @@ "dictionaryDefinitions": [ { "name": "java", - "path": "./java.txt.gz", + "path": "./java.trie.gz", "description": "Java dictionary for cspell." } ], diff --git a/dictionaries/java/cspell-tools.config.yaml b/dictionaries/java/cspell-tools.config.yaml new file mode 100644 index 00000000000..4b3dd2d2014 --- /dev/null +++ b/dictionaries/java/cspell-tools.config.yaml @@ -0,0 +1,15 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/streetsidesoftware/cspell/main/packages/cspell-tools/cspell-tools.config.schema.json + +targets: + - name: java + sources: + - src/java.txt + format: trie3 + targetDirectory: "." + generateNonStrict: false + # - name: java + # sources: + # - src/java.txt + # format: plaintext + # targetDirectory: "." + # generateNonStrict: false diff --git a/dictionaries/java/cspell.json b/dictionaries/java/cspell.json index 0aec7bd461f..b61cbd7ad4f 100644 --- a/dictionaries/java/cspell.json +++ b/dictionaries/java/cspell.json @@ -1,6 +1,7 @@ { "files": ["**/*.{md,txt}"], "dictionaries": ["java"], + "ignorePaths": ["*.trie", "src"], "import": ["./cspell-ext.json"], "ignoreWords": ["wordlist", "Schmid", "classgraph"] } diff --git a/dictionaries/java/java.trie b/dictionaries/java/java.trie new file mode 100644 index 00000000000..85889a913f0 --- /dev/null +++ b/dictionaries/java/java.trie @@ -0,0 +1,2918 @@ +#!/usr/bin/env cspell-trie reader +TrieXv3 +base=32 +# Built by cspell-tools. +# Data: +__DATA__ +A +\5 +\3MAC$5 +A +LOAD$4STORE$5\_COMPROMIS#d;<9