Skip to content

Commit

Permalink
build: use mega linter
Browse files Browse the repository at this point in the history
Signed-off-by: JobaDiniz <jobertodinizjunior@gmail.com>
  • Loading branch information
JobaDiniz committed Oct 28, 2023
1 parent dcc468a commit fec63eb
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,30 @@
lint:
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
statuses: write
contents: write
issues: write
pull-requests: write
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
# Full git history is needed to get a proper
# list of changed files within `super-linter`
fetch-depth: 0
- name: Lint Code Base
uses: super-linter/super-linter@v5
- name: Mega Linter
uses: oxsecurity/megalinter/flavors/dotnet@v7.4.0
env:
VALIDATE_ALL_CODEBASE: false
VALIDATE_CSHARP: true
VALIDATE_YAML: true
VALIDATE_MARKDOWN: true
FILTER_REGEX_EXCLUDE: LICENSE.md
ENABLED_LINTERS: CSHARP_DOTNET_FORMAT, MARKDOWN_MARKDOWNLINT
DEFAULT_BRANCH: develop
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Upload MegaLinter artifacts
- name: Archive production artifacts
uses: actions/upload-artifact@v3
if: ${{ success() }} || ${{ failure() }}
with:
name: MegaLinter reports
path: |
megalinter-reports
mega-linter.log

Check failure on line 38 in .github/workflows/linter.yml

View workflow job for this annotation

GitHub Actions / lint

38:32 [new-line-at-end-of-file] no new line character at the end of file

0 comments on commit fec63eb

Please sign in to comment.