-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Technical/Increase project code quality
* Added, configured cspell * Added, configured markdownlint * Added, configured shellcheck * Added, configured yamllint * Updated, refactored circleci config * Fixed linters issues through all codebase
- Loading branch information
Showing
13 changed files
with
157 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
|
||
enableGlobDot: true | ||
|
||
patterns: | ||
- name: GithubUser | ||
pattern: /\[@.+\]/gmx | ||
- name: MarkdownCode | ||
pattern: /`{1,3}.+`{1,3}/gmx | ||
- name: MarkdownCodeBlock | ||
pattern: /^\s*```[\s\S]*?^\s*```/gmx | ||
|
||
languageSettings: | ||
- languageId: markdown | ||
ignoreRegExpList: | ||
- GithubUser | ||
- MarkdownCode | ||
- MarkdownCodeBlock | ||
|
||
words: | ||
- Codecov | ||
- Unmarshal | ||
- Trotsenko | ||
- Vladislav | ||
- bestwebua | ||
- codebases | ||
- consts | ||
- dockerized | ||
- struct | ||
- substeps | ||
- truemail | ||
- unexported |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
--- | ||
|
||
linters: | ||
enable: | ||
- gocyclo | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
|
||
no_tty: true | ||
skip_output: | ||
- meta | ||
|
||
linters: | ||
commands: | ||
cspell: | ||
run: cspell-cli lint -c '.circleci/linter_configs/.cspell.yml' '**/*.{txt,md}' | ||
golangci: | ||
run: golangci-lint -c '.circleci/linter_configs/.golangci.yml' run | ||
markdownlint: | ||
run: markdownlint -c '.circleci/linter_configs/.markdownlint.yml' '**/*.md' | ||
shellcheck: | ||
glob: '*.{sh}' | ||
run: shellcheck --norc {all_files} | ||
yamllint: | ||
run: yamllint -c '.circleci/linter_configs/.yamllint.yml' . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
|
||
default: true | ||
|
||
MD013: | ||
line_length: 500 | ||
|
||
MD024: | ||
siblings_only: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
|
||
extends: default | ||
|
||
rules: | ||
line-length: | ||
max: 200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
latest_tag() { | ||
git tag -l | grep -E "^v[0-9]+\.[0-9]+\.[0-9]+" | cut -d"-" -f 1 | sort | tail -n 1 | ||
} | ||
|
||
publish_release() { | ||
echo "Triggering pkg.go.dev about new truemail-go release..." | ||
curl -X POST "https://pkg.go.dev/fetch/github.com/truemail-rb/truemail-go@$(latest_tag)" | ||
} | ||
|
||
publish_release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
--- | ||
|
||
github: [bestwebua] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters