Skip to content

Commit

Permalink
Upgrade megalinter to v7 (#632)
Browse files Browse the repository at this point in the history
Co-authored-by: Javy de Koning <javy@amazon.nl>
  • Loading branch information
javydekoning and Javy de Koning authored Jun 1, 2023
1 parent 95a7216 commit ea45e08
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
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

0 comments on commit ea45e08

Please sign in to comment.