Unverified Commit d229b48a authored by GridexX's avatar GridexX
Browse files

ci: replace spell_check by codespell



Signed-off-by: default avatarGridexX <arsene582@gmail.com>
parent ec5ef9cb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
ot
veritcal
 No newline at end of file
+7 −3
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ stages:

include:
  - remote: 'https://api.r2devops.io/job/r/r2devops-bot/links_checker/0.2.0.yml?ignore=true.yml'
  - remote: 'https://api.r2devops.io/job/r/r2devops-bot/spell_check/0.2.1.yml?ignore=true.yml'
  - remote: 'https://api.r2devops.io/job/r/r2devops-bot/codespell/0.1.0.yml?ignore=true.yml'

variables:
  IMAGE_TAG_PYTHON_ALPINE: "alpine3.16"
@@ -192,9 +192,13 @@ job_gitlab_labels:
  rules:
    - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PROJECT_PATH_SLUG == "r2devops-hub"'

spell_check:
codespell:
  stage: static_tests
  variables:
    PYSPELLING_CONFIG: '.spell_check/.pyspelling.yml'
    CODESPELL_DICTIONARY: ".codespell/dictionary.txt"
    #separate each file to ignore with a space
    CODESPELL_IGNORE_FILES: "./jobs/doxygen/test/src/sample.cpp"



# See https://docs.gitlab.com/ee/api/releases/

.spell_check/.pyspelling.yml

deleted100644 → 0
+0 −43
Original line number Diff line number Diff line
# Use the spellchecker `aspell`
spellchecker: aspell
matrix:
- name: markdown
  sources:
  # Include every .md files
  # but ignore every .md files in node_modules
  - '**/*.md|!**/node_modules/**/*.md'
  aspell:
    lang: en
    d: en_US
  dictionary:
    wordlists:
    - .spell_check/dico.txt
    output: dictionary.dic
  pipeline:
  - pyspelling.filters.context:
      context_visible_first: true
      delimiters:
      # Ignore all emojis (even special ones)
      # (\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])
      - open: '\\u'
        content: '(00a9|00ae|[2000-3300]|d83c[d000-dfff]|d83d[d000-dfff]|d83e[d000-dfff])'
        close: '[0-9|a-z|A-Z]'
  # This filter is used to understand correctly Markdown files
  # and not having errors in code blocks for example
  - pyspelling.filters.markdown:
      markdown_extensions:
        - pymdownx.superfences:
        - pymdownx.highlight:
        - pymdownx.emoji:
        - pymdownx.striphtml:
  # Example of filter for HTML attributes
  - pyspelling.filters.html:
      comments: false
      attributes:
      - title
      - alt
      - h1
      ignores:
      - 'code, pre'
  # Filter to not look at URLs
  - pyspelling.filters.url:

.spell_check/dico.txt

deleted100644 → 0
+0 −421
Original line number Diff line number Diff line
# https://www.textfixer.com/tools/remove-duplicate-lines.php
acl
ACL
ANSIBLE
Ansible
ansible
api
apiDoc
apidoc
APIs
argparse
args
arror
aspell
auths
aws
backend
backends
behaviour
bitnami
bom
bulary
bundler
Bzip
CD
cd
cdxgen
cfg
cfn
changelogs
checkov
checkstyle
ChkTex
ChromeDriver
Chromedriver
chromedriver
CI
ci
cli
CLIPPY
Clippy
clippy
clj
CLOUDFORMATION
CloudFormation
CMake
cmake
CMakeLists
CNIL
CODECLIMATE
codeclimate
CodeSniffer
coffeelint
CoffeeScript
Coffeescript
CONFIG
config
CPP
CPPLINT
cpplint
credscan
CSHARP
css
CSV
csv
Customise
customise
customizable
CVE
CVSS
dartanalyzer
DAST
de
decrypted
decrypting
dep
Deployer
deployer
depscan
detekt
Dev
dev
developped
DevOps
Devops
devops
DevOps's
Devops's
devops's
dictionnaries
dir
DLL
dll
DocBlocks
DOCKERFILE
Dockerfile
dockerfilelint
Docstring
Docusaurus
DoD
dotenv
dotnet
Doxygen
DuskTestCase
EDITORCONFIG
editorconfig
emojipedia
enkinsfile
ENV
eslint
exe
fka
fmt
fontawesome
Fortran
frontend
GDPR
gdpr
Github
github
GitLab
Gitlab
gitlab
Gitlab's
Gitleaks
gitleaks
glibc
globals
Gofmt
gofmt
Golang
golang
golangci
gosec
Gradle
gradle
Granier
gulpfile
Gzip
HADOLINT
hadolint
hardcoded
headlessly
Hotjar
Hotjar's
html
HTMLHint
hunspell
I/O
ide
IDL
init
IO
io
ISORT
isort
JaCoCo
Jacoco
jacoco
Javascript
javascript
JDK
Jdk
jdk
Jenkinsfile
jobdescription
jq
js
JSON
json
jsondiff
jsonlint
jsonschema
jsp
JSX
jsx
JUnit
Junit
junit
JUnit's
Junit's
kaniko
kondo
kotlin
ktlint
kts
kube
kubeconfig
kubectl
KUBERNETES
Kubernetes
kubernetes
kubesec
KUBEVAL
Kubeval
kubeval
Kustomize
Laravel
laravel
LaTeX
libc
LibXML
LibXslt
LINTER
Linter
linter
linters
lintr
linux
LUA
Lua
lua
luacheck
LWC
lwc
Markdownlint
markdownlint
Marp
marp
md
mdBook
mdbook
MDX
minify
Mkdocs
mkdocs
Mocka
Monorepo
monorepo
MONTPELLIER
Montpellier
musl
MYPY
mypy
namespace
natively
newman
njsscan
nmap
NodeJS
nodejs
nosetests
NPM
npm
Nuget
Nugetconf
Nuspec
nuspec
NVD
ok
OPENAPI
OpenAPI
openapi
opensource
OpenSSL
openssl
opensslv
os
OSS
output
OWASP
PDF
pdf
perlcritic
php
PHPCS
os
OSS
OWASP
PDF
pdf
perlcritic
php
PHPCS
phpcs
PHPDoc
PHPSTAN
PHPStan
phpstan
PHPUnit
phpunit
pipenv
Pipfile
plsql
pmd
POWERSHELL
PowerShell
Powershell
powershell
pre
PROTOBUF
Protobuf
protolint
PSalm
pseudonymized
PSScriptAnalyzer
px
Pylint
pylint
PySpelling
pytest
R2bulary
RAKU
Raku
raku
README
repo
RetireJS
RuboCop
rubocop
runtime
rustdoc
salesforce
SAS
sast
scala
SCALAFIX
scalafix
Scaleway
schemas
serverless
Severities
severities
SFDX
sfdx
SHA
Shellcheck
shellcheck
SHFMT
shfmt
ShiftLeftSecurity
sls
Snakefiles
SNAKEFMT
snakefmt
SNAKEMAKE
Snakemake
snakemake
Sonarcloud
sonarcloud
SonarQube
Sonarqube
sql
SQLFLUFF
sqlfluff
SSL
staticcheck
styleguide
Stylelint
stylelint
Subdelirium
subdirectories
SPDY
subfolders
SwaggerUI
SWIFTLINT
swiftlint
tcp
Tekton
tekton
Templating
templating
TERRAFORM
Terraform
terraform
TERRAGRUNT
Terragrunt
terragrunt
TERRASCAN
terrascan
TESTSSL
testssl
tflint
tfsec
TicTacToe
tictactoe
TLS
tpl
Transpiled
transpiled
Transpiler
transpiler
Transpiling
transpiling
Trivy
trivy
trivycache
trivyignore
TSX
tsx
ttk
TTL
txt
TypeScript
UI
uncheck
Unhandled
unhandled
Url
url
Urls
urls
VBDOTNET
vf
VHDL
vm
Vue
vue
vulns
webpack
Webpack
webserver
Wordlists
wordlists
xml
YAML
yaml
YamlLint
Yamllint
yamllint
zaproxy
+38 −42
Original line number Diff line number Diff line
@@ -33,10 +33,6 @@ module.exports = [
      {
        templateVariable: "r2_imagetag",
        question: "What is the tag of this image?",
        },
        {
          templateVariable: "r2_icon",
          question: "Finally, paste an emoji that represents your job"
      }
    ]
  }
Loading