Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cspell #21

Merged
merged 11 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .config/cspell-words.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
sapeic
northeurope
saponrhel
ONESHELL
arorp
apiserver
kubeadmin
Kirill
Satarin
kksat
Manjun
Jiao
mjiao
vnet
fips
pguser
dbhostname
dbport
dbname
dbusername
dbpassword
crunchydata
pgbackrest
postgrescluster
postgresoperator
redb
redislabs
bootstrapper
seccomp
venv
shellcheck
addwords
storagecluster
cephfs
operatorgroup
xklaieniej
Xpgl
redisenterprisedatabase
redisenterprisecluster
testenv
getline
TMPARGS
getopt
unrecognised
5 changes: 5 additions & 0 deletions .config/cspell-words.txt.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
SPDX-FileCopyrightText: 2024 SAP edge team
SPDX-FileContributor: Kirill Satarin (@kksat)
SPDX-FileContributor: Manjun Jiao (@mjiao)

SPDX-License-Identifier: Apache-2.0
25 changes: 25 additions & 0 deletions .config/cspell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# SPDX-FileCopyrightText: 2024 SAP edge team
# SPDX-FileContributor: Kirill Satarin (@kksat)
# SPDX-FileContributor: Manjun Jiao (@mjiao)
#
# SPDX-License-Identifier: Apache-2.0

---
version: "0.2"
language: en
words: []
flagWords: []
dictionaries:
- sap-edge
dictionaryDefinitions:
- name: sap-edge
path: ./cspell-words.txt
ignorePaths:
- .env
- node_modules/**
- .git/**
- .vscode/**
- .github/**
- .idea/**
- .venv/**
- .tox/**
3 changes: 2 additions & 1 deletion .config/yamllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

---
extends: default
ignore: []
ignore:
- node_modules

yaml-files:
- '*.yaml'
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
.venv
.idea
.env
node_modules
15 changes: 14 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ required-environment-variables = \

PYTHON?=python3.10
export PYTHON
NPM?=npm
export NPM
TOX?=tox
export TOX
COPYRIGHT="SAP edge team"
Expand Down Expand Up @@ -53,7 +55,7 @@ yamllint: .venv/bin/activate ## Run yamllint
. .venv/bin/activate && $(TOX) -e yamllint

.PHONY: lint
lint: yamllint shellcheck reuse lint-bicep # Run linting for the repo
lint: yamllint shellcheck reuse lint-bicep cspell # Run linting for the repo

.PHONY: shellcheck
shellcheck: .venv/bin/activate ## Run shell check analysis
Expand Down Expand Up @@ -81,3 +83,14 @@ lint-bicep: ## Run bicep lint
az bicep lint --file bicep/aro.bicep
az bicep lint --file bicep/empty.bicep
az bicep lint --file bicep/domain-records.bicep

node_modules: # Install node modules
$(NPM) install

.PHONY: cspell
cspell: node_modules ## Run cspell
$(NPM) run cspell

.PHONY: cspell-addwords
cspell-addwords: node_modules ## Run cspell
@$(NPM) run --silent cspell:addwords >> .config/cspell-words.txt
2 changes: 1 addition & 1 deletion bicep.makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ resource-group: ## Create resource group

.PHONY: service-principal
.ONESHELL:
service-principal: ## Create sevice principal for ARO deployment
service-principal: ## Create service principal for ARO deployment
$(call required-environment-variables,ARO_RESOURCE_GROUP)
az ad sp create-for-rbac \
--name "aro-service-principal" \
Expand Down
Loading