Skip to content

Commit

Permalink
chore: Use MegaLinter
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenhilton committed Feb 27, 2024
1 parent e6d2fc7 commit abe0d4a
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 8 deletions.
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[{*.json,*.yaml,*.yml}]
indent_size = 2
indent_style = space
8 changes: 0 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,3 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
- run: go test ./...
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
- uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc
with:
version: v1.55.2
34 changes: 34 additions & 0 deletions .github/workflows/mega-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: MegaLinter
on:
pull_request:
push:
branches:
- master
tags:
- v*
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
pull-requests: write
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- uses: oxsecurity/megalinter/flavors/go@190cd0dad6dc52b2de5b810e3b290c3d6bdcc0f2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Archive production artifact
if: success() || failure()
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
with:
name: MegaLinter reports
path: |
megalinter-reports
mega-linter.log
8 changes: 8 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"MD013": {
"line_length": 80
},
"MD026": {
"punctuation": ""
}
}
5 changes: 5 additions & 0 deletions .mega-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ENABLE_LINTERS:
- EDITORCONFIG_EDITORCONFIG_CHECKER
- GO_GOLANGCI_LINT
- MARKDOWN_MARKDOWNLINT
- MARKDOWN_MARKDOWN_TABLE_FORMATTER

0 comments on commit abe0d4a

Please sign in to comment.