Skip to content

Commit

Permalink
Still working on correct local command
Browse files Browse the repository at this point in the history
  • Loading branch information
cfkoehler committed Oct 10, 2023
1 parent ea2fab0 commit 03df5d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion .mega-linter.yml → .github/linters/.mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ ENABLE:
- YAML
ENABLE_LINTERS:
- JSON_PRETTIER
#- REPOSITORY_GITLEAKS
- DOCKERFILE_HADOLINT
- XML_XMLLINT
- YAML_PRETTIER
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ jobs:
env:
LOG_LEVEL: NOTICE
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EXTENDS: .github/linters/.mega-linter.yml
# setting this to false means that only changed files will be scanned in each commit
VALIDATE_ALL_CODEBASE: ${{ github.event_name != 'pull_request' }}
4 changes: 2 additions & 2 deletions DEVELOPING.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ Instructions are derived from [MegaLinter Runner Documentation](https://megalint

1) Install [Node Package Manager (NPM)](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
2) Install mega-linter-runner for current users `npm install mega-linter-runner --save-dev`
3) Run MegaLinter from project root using project configuration `mega-linter-runner .mega-linter.yml .`
* To have MegaLinter attempt to fix errors add the `--fix` option to the command: `mega-linter-runner .mega-linter.yml --fix .`
3) Run MegaLinter from project root using project configuration `mega-linter-runner -e 'LINTER_RULES_PATH=.github/linters' .`
* To have MegaLinter attempt to fix errors add the `--fix` option to the command: `mega-linter-runner -e 'LINTER_RULES_PATH=.github/linters' --fix . `

## Helpful Commands

Expand Down

0 comments on commit 03df5d4

Please sign in to comment.