Skip to content

Commit

Permalink
ci: Fix Lint -- Workflow Bot (#5553)
Browse files Browse the repository at this point in the history
Co-authored-by: Jason3S <3740137+Jason3S@users.noreply.github.com>
  • Loading branch information
1 parent d366462 commit 4940997
Show file tree
Hide file tree
Showing 16 changed files with 61 additions and 61 deletions.
6 changes: 3 additions & 3 deletions examples/cspell.config.yaml
Original file line number Diff line number Diff line change
@@ -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'
12 changes: 6 additions & 6 deletions examples/filetype-examples.cspell.config.yaml
Original file line number Diff line number Diff line change
@@ -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'
6 changes: 3 additions & 3 deletions examples/ignore-words-dict.cspell.config.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions integration-tests/repositories/cspell-chef.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import:
- ./cspell-reporter.json
- ./temp//MicrosoftDocs/PowerShell-Docs/.vscode/cSpell.json
ignorePaths:
- "*.mdb"
- "*.json"
- '*.mdb'
- '*.json'
48 changes: 24 additions & 24 deletions integration-tests/repositories/cspell.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/cspell-config-lib/fixtures/cspell.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
# file version
version: "0.2"
version: '0.2'
words:
- angle # with comment
# Before "before"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dictionaryDefinitions:
- Delhi
- dictionaries
- dictionary
- "false"
- 'false'
- file
- Francisco
- fully
Expand Down
8 changes: 4 additions & 4 deletions packages/cspell-lib/fixtures/docValidator/parser/cspell.yaml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions packages/cspell-lib/fixtures/traceWords/cspell.config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
dictionaryDefinitions:
- name: myDictionary
words: ["café", "bar", "restaurant"]
ignoreWords: ["foo", "bar", "baz"]
words: ['café', 'bar', 'restaurant']
ignoreWords: ['foo', 'bar', 'baz']
suggestWords:
- cafe->café
flagWords:
- baz
dictionaries:
- myDictionary

words: ["foo", "bar", "baz", "cafe"]
words: ['foo', 'bar', 'baz', 'cafe']
flagWords:
- teh # cspell:ignore teh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/cspell/fixtures/features/reporter/cspell.config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
reporters:
- "@cspell/cspell-json-reporter"
- '@cspell/cspell-json-reporter'
files:
- "*"
- '*'
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ignorePaths:
- "*.{ts,js}"
- "cspell*.{json,yaml}"
- '*.{ts,js}'
- 'cspell*.{json,yaml}'
ignoreWords:
- quic
- tsbuildinfo
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
globRoot: ".."
globRoot: '..'
ignorePaths:
- node_modules
- CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 4940997

Please sign in to comment.