Skip to content

Commit

Permalink
ci: fix outstanding yamlling warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bugale committed Sep 9, 2023
1 parent b6d128d commit 0aac767
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 18 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
env:
node: true
es6: true
Expand All @@ -23,4 +24,4 @@ rules:
'i18n-text/no-en': 'off'
'@typescript-eslint/space-before-function-paren': 'off'
'generator-star-spacing': 'off'
'prettier/prettier': ['error', { 'endOfLine': 'auto' }]
'prettier/prettier': ['error', {'endOfLine': 'auto'}]
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
version: 2
updates:
- package-ecosystem: github-actions
Expand Down
30 changes: 14 additions & 16 deletions .github/workflows/check-code.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Checks
on:
pull_request:
Expand Down Expand Up @@ -68,22 +69,19 @@ jobs:
fail-fast: false
matrix:
run:
[
{ linter: 'flake8', format: 'flake8', regex: '', levelMap: '', analysisPath: '.' },
{ linter: 'mypy', format: 'mypy', regex: '', levelMap: '', analysisPath: '.' },
{ linter: 'pylint', format: 'pylint', regex: '', levelMap: '', analysisPath: '.' },
{ linter: 'mdl', format: 'mdl', regex: '', levelMap: '', analysisPath: '.' },
{ linter: 'yamllint', format: 'yamllint', regex: '', levelMap: '', analysisPath: '.' },
{ linter: 'sarif', format: 'sarif', regex: '', levelMap: '', analysisPath: '.' },
{ linter: 'flake8subpath', format: 'flake8', regex: '', levelMap: '', analysisPath: 'A\B' },
{
linter: 'custom',
format: '',
regex: '^(?<path>[^-\n]+)(?:-(?<line>\d+))?(?:-(?<col>\d+))?(?:-(?<eline>\d+))?(?:-(?<ecol>\d+))? (?<level>[^:\s]+):(?<id>[^:\s]+):(?<sym>[^:\s]+) (?<msg>.+)$',
levelMap: '{ "err": "error", "warn": "warning", "info": "note" }',
analysisPath: '.'
}
]
- {linter: 'flake8', format: 'flake8', regex: '', levelMap: '', analysisPath: '.'}
- {linter: 'mypy', format: 'mypy', regex: '', levelMap: '', analysisPath: '.'}
- {linter: 'pylint', format: 'pylint', regex: '', levelMap: '', analysisPath: '.'}
- {linter: 'mdl', format: 'mdl', regex: '', levelMap: '', analysisPath: '.'}
- {linter: 'yamllint', format: 'yamllint', regex: '', levelMap: '', analysisPath: '.'}
- {linter: 'sarif', format: 'sarif', regex: '', levelMap: '', analysisPath: '.'}
- {linter: 'flake8subpath', format: 'flake8', regex: '', levelMap: '', analysisPath: 'A\B'}
- linter: 'custom'
format: ''
# yamllint disable-line rule:line-length
regex: '^(?<path>[^-\n]+)(?:-(?<line>\d+))?(?:-(?<col>\d+))?(?:-(?<eline>\d+))?(?:-(?<ecol>\d+))? (?<level>[^:\s]+):(?<id>[^:\s]+):(?<sym>[^:\s]+) (?<msg>.+)$'
levelMap: '{ "err": "error", "warn": "warning", "info": "note" }'
analysisPath: '.'
name: GitHub Action (${{ matrix.run.linter }})
steps:
- name: Checkout
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/check-docs.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Checks
on:
pull_request:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check-general.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Checks
on:
- pull_request
Expand All @@ -24,6 +25,7 @@ jobs:
fetch-depth: ${{ steps.get-base.outputs.required }}
ref: ${{ github.event.pull_request.head.sha }}
- name: Check Commits
# yamllint disable-line rule:line-length
run: commitlint --from ${{ github.event.pull_request.head.sha }}~${{ steps.get-base.outputs.commit-count }} --to ${{ github.event.pull_request.head.sha }}
required:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Dependabot
on:
- pull_request
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Release
on:
push:
Expand Down
1 change: 1 addition & 0 deletions .mdl.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# MD013/line-length - Line length
MD013:
line_length: 160
Expand Down
10 changes: 9 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,13 @@
"singleQuote": true,
"trailingComma": "none",
"endOfLine": "auto",
"semi": false
"semi": false,
"overrides": [
{
"files": "**.yml",
"options": {
"bracketSpacing": false
}
}
]
}
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: 'bugalint'
description: 'Convert various linter outputs to standard formats'
inputs:
Expand Down

0 comments on commit 0aac767

Please sign in to comment.