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 a608155
Show file tree
Hide file tree
Showing 13 changed files with 125 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 = 100
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ updates:
# They will have to be merged manually by a maintainer
- package-ecosystem: github-actions
directory: /
open-pull-requests-limit: 10 # avoid spam, if no one reacts
open-pull-requests-limit: 10 # avoid spam, if no one reacts
schedule:
interval: weekly
time: '11:00'
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
16 changes: 15 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
---
name: CI
on: # yamllint disable-line rule:truthy
on:
push:
jobs:
ci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

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

- name: EditorConfig-Action
uses: zbeekman/[email protected]

- name: Vale Linter
uses: errata-ai/[email protected]

- name: Vale Action
uses: errata-ai/vale-action@reviewdog

- name: Vale Action
uses: errata-ai/vale-action@reviewdog

- name: typos-action
uses: crate-ci/[email protected]
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
41 changes: 41 additions & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
yaml-files:
- '*.yaml'
- '*.yml'
- '.yamllint'

ignore: |
megalinter-reports
rules:
anchors: enable
braces: enable
brackets: enable
colons: enable
commas: enable
comments:
min-spaces-from-content: 1
comments-indentation: enable
document-end: disable
document-start:
level: warning
empty-lines: enable
empty-values: disable
float-values: disable
hyphens: enable
indentation: enable
key-duplicates: enable
key-ordering: disable
line-length:
max: 100
allow-non-breakable-words: true
allow-non-breakable-inline-mappings: false
level: warning
new-line-at-end-of-file: enable
new-lines: enable
octal-values: disable
quoted-strings: disable
trailing-spaces: enable
truthy:
allowed-values: ['true', 'false']
check-keys: false # this one is a nightmare GitHub Actions
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 a608155

Please sign in to comment.