From 49409979a1aa31fce4f34f8974a50e140f171fb8 Mon Sep 17 00:00:00 2001 From: "street-side-software-automation[bot]" <74785433+street-side-software-automation[bot]@users.noreply.github.com> Date: Thu, 2 May 2024 13:11:19 +0200 Subject: [PATCH] ci: Fix Lint -- Workflow Bot (#5553) Co-authored-by: Jason3S <3740137+Jason3S@users.noreply.github.com> --- examples/cspell.config.yaml | 6 +-- examples/filetype-examples.cspell.config.yaml | 12 ++--- examples/ignore-words-dict.cspell.config.yaml | 6 +-- .../google-cloud-cpp/cspell.config.yaml | 6 +-- .../repositories/cspell-chef.config.yaml | 6 +-- .../cspell-power-shell-docs.config.yaml | 4 +- integration-tests/repositories/cspell.yaml | 48 +++++++++---------- .../cspell-config-lib/fixtures/cspell.yaml | 2 +- .../dictionaries/inline/cspell.config.yaml | 2 +- .../fixtures/docValidator/parser/cspell.yaml | 8 ++-- .../fixtures/traceWords/cspell.config.yaml | 6 +-- .../inline-suggest/cspell.config.yaml | 2 +- .../features/reporter/cspell.config.yaml | 4 +- .../cspell.config.yaml | 4 +- .../.config/cspell.config.yaml | 2 +- .../software-terms/cspell-tools.config.yaml | 4 +- 16 files changed, 61 insertions(+), 61 deletions(-) diff --git a/examples/cspell.config.yaml b/examples/cspell.config.yaml index fd3af46f8c0..91d764c0d5e 100644 --- a/examples/cspell.config.yaml +++ b/examples/cspell.config.yaml @@ -1,11 +1,11 @@ --- $schema: https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json -version: "0.2" +version: '0.2' dictionaryDefinitions: - name: project-words - path: "./project-words.txt" + path: './project-words.txt' addWords: true dictionaries: - project-words ignorePaths: - - "node_modules" + - 'node_modules' diff --git a/examples/filetype-examples.cspell.config.yaml b/examples/filetype-examples.cspell.config.yaml index a929a046fa0..2298c251806 100644 --- a/examples/filetype-examples.cspell.config.yaml +++ b/examples/filetype-examples.cspell.config.yaml @@ -1,24 +1,24 @@ --- $schema: https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json ignorePaths: - - "node_modules" + - 'node_modules' # Overrides are processed in order overrides: - - filename: "**/*.{js,jsx}" # if it matches against the path + - filename: '**/*.{js,jsx}' # if it matches against the path # apply these settings enable: false # turn off spell checking - - filename: "**/webpage/examples/**/*.{js,jsx}" + - filename: '**/webpage/examples/**/*.{js,jsx}' # turn it back on enable: true - - filename: "**/i18n/ru/**" + - filename: '**/i18n/ru/**' language: ru languageSettings: - languageId: javascript # if the file type matches # apply settings - dictionaries: ["our_javascript_terms"] + dictionaries: ['our_javascript_terms'] # this only applies to the VS Code Extension enableFiletype: - kotlin - - "!json" + - '!json' diff --git a/examples/ignore-words-dict.cspell.config.yaml b/examples/ignore-words-dict.cspell.config.yaml index 04db17f1d48..ea4de72e35c 100644 --- a/examples/ignore-words-dict.cspell.config.yaml +++ b/examples/ignore-words-dict.cspell.config.yaml @@ -1,12 +1,12 @@ --- $schema: https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json -version: "0.2" +version: '0.2' dictionaryDefinitions: - name: project-words - path: "./project-words.txt" + path: './project-words.txt' addWords: true # Allow people to add words to this dictionary. - name: ignore-words - path: "./ignore-words.txt" + path: './ignore-words.txt' description: We should not suggest these word. noSuggest: true dictionaries: diff --git a/integration-tests/config/repositories/googleapis/google-cloud-cpp/cspell.config.yaml b/integration-tests/config/repositories/googleapis/google-cloud-cpp/cspell.config.yaml index dc43290f7bc..733fd63eef2 100644 --- a/integration-tests/config/repositories/googleapis/google-cloud-cpp/cspell.config.yaml +++ b/integration-tests/config/repositories/googleapis/google-cloud-cpp/cspell.config.yaml @@ -1,15 +1,15 @@ -version: "0.2" +version: '0.2' language: en dictionaryDefinitions: - name: google-custom-words - path: "./custom-words.txt" + path: './custom-words.txt' description: Project Words dictionaries: - google-custom-words ignorePaths: - - "**/{*.BUILD,BUILD,CHANGELOG.md,*.sh,*.cfg,*.ps1,Dockerfile.*,*.Dockerfile,*.{yaml,xml,json,cmake}}" + - '**/{*.BUILD,BUILD,CHANGELOG.md,*.sh,*.cfg,*.ps1,Dockerfile.*,*.Dockerfile,*.{yaml,xml,json,cmake}}' languageSettings: - languageId: cpp diff --git a/integration-tests/repositories/cspell-chef.config.yaml b/integration-tests/repositories/cspell-chef.config.yaml index 289e40ec0b2..4c156dc313b 100644 --- a/integration-tests/repositories/cspell-chef.config.yaml +++ b/integration-tests/repositories/cspell-chef.config.yaml @@ -9,6 +9,6 @@ patterns: /-{5}BEGIN\s+(CERTIFICATE|(?:(?:RSA|EC)\s+)?(?:PRIVATE|PUBLIC)\s+KEY)[\w=+\-/=\\\s:,]+?-{5}END\s+\1-{5}/g dictionaryDefinitions: - - name: "chef" - path: "https://raw.githubusercontent.com/chef/chef_dictionary/main/chef.txt" - description: "Custom Chef Dictionary" + - name: 'chef' + path: 'https://raw.githubusercontent.com/chef/chef_dictionary/main/chef.txt' + description: 'Custom Chef Dictionary' diff --git a/integration-tests/repositories/cspell-power-shell-docs.config.yaml b/integration-tests/repositories/cspell-power-shell-docs.config.yaml index e33fb76643b..e776c015f90 100644 --- a/integration-tests/repositories/cspell-power-shell-docs.config.yaml +++ b/integration-tests/repositories/cspell-power-shell-docs.config.yaml @@ -3,5 +3,5 @@ import: - ./cspell-reporter.json - ./temp//MicrosoftDocs/PowerShell-Docs/.vscode/cSpell.json ignorePaths: - - "*.mdb" - - "*.json" + - '*.mdb' + - '*.json' diff --git a/integration-tests/repositories/cspell.yaml b/integration-tests/repositories/cspell.yaml index 7ab2785cfb6..f69009df9a6 100644 --- a/integration-tests/repositories/cspell.yaml +++ b/integration-tests/repositories/cspell.yaml @@ -1,36 +1,36 @@ $schema: https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json -version: "0.2" +version: '0.2' id: integration-test-default words: - octokit ignorePaths: - CHANGELOG.md - - "*.ktx" - - "*.idmap" # DOOM, cspell:ignore idmap - - "*.ogex" # DOOM, cspell:ignore ogex - - "*.spv" # DOOM, binary file - - "*.maff" # cspell:ignore maff - - "*.docx" - - "*.jar" - - "**/java-design-patterns/**/localization/**" # do not spell check localization files - - "**/eslint/eslint/**/*.svg" + - '*.ktx' + - '*.idmap' # DOOM, cspell:ignore idmap + - '*.ogex' # DOOM, cspell:ignore ogex + - '*.spv' # DOOM, binary file + - '*.maff' # cspell:ignore maff + - '*.docx' + - '*.jar' + - '**/java-design-patterns/**/localization/**' # do not spell check localization files + - '**/eslint/eslint/**/*.svg' # RustPython Ignores - - "*.whl" - - "**/snapshots/**" - - "*.snap" - - "*.decTest" - - "*.{bmp,exr,gif,ico,jpeg,jpg,pbm,pgm,png,ppm,ras,sgi,tiff,webp,xbm}" - - "**/RustPython/**/html/entities.py" - - "mime.types" + - '*.whl' + - '**/snapshots/**' + - '*.snap' + - '*.decTest' + - '*.{bmp,exr,gif,ico,jpeg,jpg,pbm,pgm,png,ppm,ras,sgi,tiff,webp,xbm}' + - '**/RustPython/**/html/entities.py' + - 'mime.types' # GitBucket - - "**/gitbucket/**/*.{xml,erd,spec,init,conf}" - - "**/gitbucket/**/webapp/assets/**" + - '**/gitbucket/**/*.{xml,erd,spec,init,conf}' + - '**/gitbucket/**/webapp/assets/**' # ktaranov/sqlserver-kit - - "**/ktaranov/sqlserver-kit/**/Sample_Databases/TSQLV4.sql" - - "**/ktaranov/sqlserver-kit/**/Errors/**" - - "**/ktaranov/sqlserver-kit/**/Backup/**" - - "**/ktaranov/sqlserver-kit/**/*Transliteration*" - - "**/ktaranov/sqlserver-kit/**/*.vssettings" # cspell:ignore vssettings + - '**/ktaranov/sqlserver-kit/**/Sample_Databases/TSQLV4.sql' + - '**/ktaranov/sqlserver-kit/**/Errors/**' + - '**/ktaranov/sqlserver-kit/**/Backup/**' + - '**/ktaranov/sqlserver-kit/**/*Transliteration*' + - '**/ktaranov/sqlserver-kit/**/*.vssettings' # cspell:ignore vssettings import: - ./cspell-reporter.json - ./cspell-latex.json diff --git a/packages/cspell-config-lib/fixtures/cspell.yaml b/packages/cspell-config-lib/fixtures/cspell.yaml index a6c047b23f5..bd278c2fc58 100644 --- a/packages/cspell-config-lib/fixtures/cspell.yaml +++ b/packages/cspell-config-lib/fixtures/cspell.yaml @@ -1,6 +1,6 @@ --- # file version -version: "0.2" +version: '0.2' words: - angle # with comment # Before "before" diff --git a/packages/cspell-lib/fixtures/dictionaries/inline/cspell.config.yaml b/packages/cspell-lib/fixtures/dictionaries/inline/cspell.config.yaml index c93461400f8..91044bba05b 100644 --- a/packages/cspell-lib/fixtures/dictionaries/inline/cspell.config.yaml +++ b/packages/cspell-lib/fixtures/dictionaries/inline/cspell.config.yaml @@ -14,7 +14,7 @@ dictionaryDefinitions: - Delhi - dictionaries - dictionary - - "false" + - 'false' - file - Francisco - fully diff --git a/packages/cspell-lib/fixtures/docValidator/parser/cspell.yaml b/packages/cspell-lib/fixtures/docValidator/parser/cspell.yaml index cde347401dd..08b85d399a9 100644 --- a/packages/cspell-lib/fixtures/docValidator/parser/cspell.yaml +++ b/packages/cspell-lib/fixtures/docValidator/parser/cspell.yaml @@ -1,11 +1,11 @@ --- patterns: - name: js-hex-escape - pattern: "$^" + pattern: '$^' - name: js-unicode-escape - pattern: "$^" + pattern: '$^' - name: js-regexp-flags - pattern: "$^" + pattern: '$^' overrides: - - filename: "**/*.ts" + - filename: '**/*.ts' parser: typescript diff --git a/packages/cspell-lib/fixtures/traceWords/cspell.config.yaml b/packages/cspell-lib/fixtures/traceWords/cspell.config.yaml index 48719c71544..10e7148a304 100644 --- a/packages/cspell-lib/fixtures/traceWords/cspell.config.yaml +++ b/packages/cspell-lib/fixtures/traceWords/cspell.config.yaml @@ -1,7 +1,7 @@ dictionaryDefinitions: - name: myDictionary - words: ["café", "bar", "restaurant"] - ignoreWords: ["foo", "bar", "baz"] + words: ['café', 'bar', 'restaurant'] + ignoreWords: ['foo', 'bar', 'baz'] suggestWords: - cafe->café flagWords: @@ -9,6 +9,6 @@ dictionaryDefinitions: dictionaries: - myDictionary -words: ["foo", "bar", "baz", "cafe"] +words: ['foo', 'bar', 'baz', 'cafe'] flagWords: - teh # cspell:ignore teh diff --git a/packages/cspell/fixtures/features/inline-suggest/cspell.config.yaml b/packages/cspell/fixtures/features/inline-suggest/cspell.config.yaml index c36618e61a4..0cb081aa751 100644 --- a/packages/cspell/fixtures/features/inline-suggest/cspell.config.yaml +++ b/packages/cspell/fixtures/features/inline-suggest/cspell.config.yaml @@ -1,7 +1,7 @@ # yaml-language-server: $schema=https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json ignorePaths: - - "cspell*.{json,yaml}" + - 'cspell*.{json,yaml}' dictionaryDefinitions: - name: suggestions diff --git a/packages/cspell/fixtures/features/reporter/cspell.config.yaml b/packages/cspell/fixtures/features/reporter/cspell.config.yaml index 2c495ae5b56..cd9153ad91b 100644 --- a/packages/cspell/fixtures/features/reporter/cspell.config.yaml +++ b/packages/cspell/fixtures/features/reporter/cspell.config.yaml @@ -1,4 +1,4 @@ reporters: - - "@cspell/cspell-json-reporter" + - '@cspell/cspell-json-reporter' files: - - "*" + - '*' diff --git a/test-packages/cspell-eslint-plugin/test-cspell-eslint-plugin-v7/cspell.config.yaml b/test-packages/cspell-eslint-plugin/test-cspell-eslint-plugin-v7/cspell.config.yaml index e9b653cc3c0..dedef20b32b 100644 --- a/test-packages/cspell-eslint-plugin/test-cspell-eslint-plugin-v7/cspell.config.yaml +++ b/test-packages/cspell-eslint-plugin/test-cspell-eslint-plugin-v7/cspell.config.yaml @@ -1,6 +1,6 @@ ignorePaths: - - "*.{ts,js}" - - "cspell*.{json,yaml}" + - '*.{ts,js}' + - 'cspell*.{json,yaml}' ignoreWords: - quic - tsbuildinfo diff --git a/test-packages/cspell/test-cspell-cli/.config/cspell.config.yaml b/test-packages/cspell/test-cspell-cli/.config/cspell.config.yaml index bcb76ec632b..7f91aca98f2 100644 --- a/test-packages/cspell/test-cspell-cli/.config/cspell.config.yaml +++ b/test-packages/cspell/test-cspell-cli/.config/cspell.config.yaml @@ -1,4 +1,4 @@ -globRoot: ".." +globRoot: '..' ignorePaths: - node_modules - CHANGELOG.md diff --git a/test-packages/dictionaries/software-terms/cspell-tools.config.yaml b/test-packages/dictionaries/software-terms/cspell-tools.config.yaml index 040b5da61d6..2888627d6e1 100644 --- a/test-packages/dictionaries/software-terms/cspell-tools.config.yaml +++ b/test-packages/dictionaries/software-terms/cspell-tools.config.yaml @@ -6,10 +6,10 @@ targets: - listFile: ./source-files.txt split: true format: plaintext - targetDirectory: "./dict" + targetDirectory: './dict' - name: networkingTerms sources: - listFile: ./source-files-networking.txt split: true format: plaintext - targetDirectory: "./dict" + targetDirectory: './dict'