Skip to content

Commit 9e3d28b

Browse files
committed
wip
1 parent 2648ff2 commit 9e3d28b

File tree

12 files changed

+96
-16
lines changed

12 files changed

+96
-16
lines changed

.editorconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,17 @@
22
# https://editor.timseverien.com/#config
33
root = true
44

5+
[*.{md}]
6+
charset = utf-8
7+
end_of_line = lf
8+
tab_width = 2
9+
trim_trailing_whitespace = true
10+
max_line_length = 200
11+
512
[*.{yml,yaml}]
613
charset = utf-8
714
end_of_line = lf
815
insert_final_newline = true
916
tab_width = 2
1017
trim_trailing_whitespace = true
18+
max_line_length = 200

.github/workflows/actions-lint.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
on: push
3+
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v3
9+
- uses: rethab/actions-lint@v1
10+
with:
11+
files: .github/workflows/deploy.yml

.github/workflows/ci.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,28 @@
11
---
22
name: CI
3-
on: # yamllint disable-line rule:truthy
3+
on:
44
push:
55
jobs:
6+
strategy:
7+
# if one fails workflow fails
8+
allow-failure: false
9+
# if one fails continues running the others
10+
fail-fast: false
11+
612
ci-lint:
713
runs-on: ubuntu-latest
814
steps:
9-
- uses: actions/checkout@v3
15+
- name: checkout
16+
uses: actions/checkout@v3
17+
1018
- name: yaml-lint
1119
uses: ibiqlik/action-yamllint@v3
20+
21+
- name: Vale Linter
22+
uses: errata-ai/vale-action@v2.1.0
23+
24+
- name: typos-action
25+
uses: crate-ci/typos@v1.21.0
26+
1227
- name: EditorConfig-Action
1328
uses: zbeekman/EditorConfig-Action@v1.1.1

.github/workflows/spellchecker.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
megalinter-reports/

.prettierrc.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
trailingComma: 'es5'
3+
semi: false
4+
singleQuote: true

.vale.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
StylesPath = .vale/styles/
2+
3+
MinAlertLevel = suggestion
4+
5+
Packages = RedHat
6+
7+
[*.md]
8+
BasedOnStyles = Vale, RedHat

.vale/styles/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Vale styles for repository
2+
3+
Please examine the files

.yamllint.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
extends: default
3+
4+
# These files are imported by vale from an external repository
5+
ignore: |
6+
.vale/styles/RedHat/
7+
rules:
8+
truthy:
9+
# the node "on:" present in each GitHub Actions workflow file
10+
ignore: |
11+
.github/

02-safe/.golangci.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
run:
3+
tests: true
4+
skip-dirs-use-default: true
5+
6+
linters:
7+
# some linters are enabled by default
8+
# https://golangci-lint.run/usage/linters/
9+
#
10+
# enable some extra linters
11+
enable:
12+
- gci
13+
- revive
14+
- thelper
15+
16+
linters-settings:
17+
# define the import orders
18+
gci:
19+
sections:
20+
# Standard section: captures all standard packages.
21+
- standard
22+
# Default section: catchall that is not standard or custom
23+
- default
24+
# linters that related to local tool, so they should be separated
25+
- localmodule

0 commit comments

Comments
 (0)