Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ccoVeille committed Jun 26, 2024
1 parent 2648ff2 commit 0b21c8c
Show file tree
Hide file tree
Showing 12 changed files with 94 additions and 16 deletions.
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@
# https://editor.timseverien.com/#config
root = true

[*.{md}]
charset = utf-8
end_of_line = lf
tab_width = 2
trim_trailing_whitespace = true
max_line_length = 200

[*.{yml,yaml}]
charset = utf-8
end_of_line = lf
insert_final_newline = true
tab_width = 2
trim_trailing_whitespace = true
max_line_length = 200
11 changes: 11 additions & 0 deletions .github/workflows/actions-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
on: push

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: rethab/actions-lint@v1
with:
files: .github/workflows/deploy.yml
17 changes: 15 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
---
name: CI
on: # yamllint disable-line rule:truthy
on:
push:
jobs:
ci-lint:
runs-on: ubuntu-latest
# if one fails workflow fails
allow-failure: false
# if one fails continues running the others
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: checkout
uses: actions/checkout@v3

- name: yaml-lint
uses: ibiqlik/action-yamllint@v3

- name: Vale Linter
uses: errata-ai/vale-action@v2.1.0

- name: typos-action
uses: crate-ci/typos@v1.21.0

- name: EditorConfig-Action
uses: zbeekman/EditorConfig-Action@v1.1.1
14 changes: 0 additions & 14 deletions .github/workflows/spellchecker.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
megalinter-reports/
4 changes: 4 additions & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
trailingComma: 'es5'
semi: false
singleQuote: true
8 changes: 8 additions & 0 deletions .vale.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
StylesPath = .vale/styles/

MinAlertLevel = suggestion

Packages = RedHat

[*.md]
BasedOnStyles = Vale, RedHat
3 changes: 3 additions & 0 deletions .vale/styles/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Vale styles for repository

Please examine the files
11 changes: 11 additions & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
extends: default

# These files are imported by vale from an external repository
ignore: |
.vale/styles/RedHat/
rules:
truthy:
# the node "on:" present in each GitHub Actions workflow file
ignore: |
.github/
25 changes: 25 additions & 0 deletions 02-safe/.golangci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
run:
tests: true
skip-dirs-use-default: true

linters:
# some linters are enabled by default
# https://golangci-lint.run/usage/linters/
#
# enable some extra linters
enable:
- gci
- revive
- thelper

linters-settings:
# define the import orders
gci:
sections:
# Standard section: captures all standard packages.
- standard
# Default section: catchall that is not standard or custom
- default
# linters that related to local tool, so they should be separated
- localmodule
7 changes: 7 additions & 0 deletions 02-safe/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Empty settings

One way to use the default settings is to use `--no-config` parameter.

Another is to create an empty YAML file

See [.golangci.yaml](.golangci.yaml)
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# golangci-lint-config-examples

These are .golangci.yml to go based on your need

0 comments on commit 0b21c8c

Please sign in to comment.