Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade megalinter to v7 #632

Merged
merged 1 commit into from
Jun 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/mega-linter.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
# MegaLinter GitHub Action configuration file
# More info at https://oxsecurity.github.io/megalinter
# More info at https://megalinter.io
name: MegaLinter

on: [push, pull_request]
Expand All @@ -27,10 +27,10 @@ jobs:

- name: MegaLinter
id: ml
uses: oxsecurity/megalinter@v6
uses: oxsecurity/megalinter@v7
env:
# All available variables are described in documentation
# https://oxsecurity.github.io/megalinter/configuration/
# https://megalinter.io/configuration/
VALIDATE_ALL_CODEBASE: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
13 changes: 3 additions & 10 deletions .mega-linter.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Configuration file for MegaLinter
# See all available variables at https://oxsecurity.github.io/megalinter/configuration/ and in linters documentation
# See all available variables at https://megalinter.io/configuration/ and in linters documentation

# all, none, or list of linter keys
APPLY_FIXES: none
Expand All @@ -10,8 +10,7 @@ APPLY_FIXES: none
# If you use ENABLE_LINTERS variable, all other linters will be disabled by default
ENABLE_LINTERS:
- BASH_EXEC
# Temporarely disable cfn-lint until megalinter v7 release.
# - CLOUDFORMATION_CFN_LINT
- CLOUDFORMATION_CFN_LINT
- DOCKERFILE_HADOLINT
- EDITORCONFIG_EDITORCONFIG_CHECKER
- JSON_JSONLINT
Expand All @@ -22,22 +21,16 @@ ENABLE_LINTERS:
- MARKDOWN_MARKDOWNLINT
- MARKDOWN_MARKDOWN_TABLE_FORMATTER
- SPELL_CSPELL
- SPELL_MISSPELL
- TERRAFORM_TFLINT
- YAML_YAMLLINT

# DISABLE:
# - COPYPASTE # Comment to enable checks of excessive copy-pastes
# - SPELL # Comment to enable checks of spelling mistakes

SARIF_REPORTER: true
SHOW_ELAPSED_TIME: true
FILEIO_REPORTER: false
# DISABLE_ERRORS: true # Uncomment if you want MegaLinter to detect errors but not block CI to pass

# Install pluging for list handling.
JSON_PRETTIER_PRE_COMMANDS:
- command: npm install prettier-plugin-multiline-arrays@1.1.0
- command: npm install -g prettier-plugin-multiline-arrays@1.1.3
cwd: "workspace"

CLOUDFORMATION_CFN_LINT_CONFIG_FILE: '.cfnlintrc'
Expand Down
2 changes: 1 addition & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
plugins: [
'/node-deps/node_modules/prettier-plugin-multiline-arrays'
'prettier-plugin-multiline-arrays'
],
trailingComma: 'es5',
semi: false,
Expand Down