-
Notifications
You must be signed in to change notification settings - Fork 4
Use Mega-Linter locally #14
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
Open
withinfocus
wants to merge
15
commits into
main
Choose a base branch
from
megaclient
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
939c9a4
Use Mega-Linter locally
withinfocus 61b6b27
Adjust execution
withinfocus a08c163
Carry over enhancements from #2
withinfocus b1bf35b
Move to direct hooks setup
withinfocus 06e00c5
Exit if linter failure
withinfocus 412bff4
Additional parameters
withinfocus 7cacacd
Use new formatters flavor
withinfocus db3365d
Merge branch 'main' into megaclient
withinfocus 22adb90
No longer beta
withinfocus 530cdb8
Merge remote-tracking branch 'origin' into megaclient
withinfocus 052968b
Merge remote-tracking branch 'origin' into megaclient
withinfocus b45ae29
Merge remote-tracking branch 'origin' into megaclient
withinfocus 4a99fa1
No need for YAML
withinfocus efba945
Merge remote-tracking branch 'origin' into megaclient
withinfocus ad66cb5
Merge remote-tracking branch 'origin' into megaclient
withinfocus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
withinfocus marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| #!/bin/sh | ||
|
|
||
| FILES=$(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g') | ||
| [ -z "$FILES" ] && exit 0 | ||
|
|
||
| if npx mega-linter-runner --containername "megalinter-incremental" \ | ||
| --flavor formatters --remove-container --fix --env "'APPLY_FIXES=all'" \ | ||
| --env "'CLEAR_REPORT_FOLDER=true'" --env "'LOG_LEVEL=warning'" \ | ||
| --filesonly $FILES; then | ||
| echo "$FILES" | xargs git add | ||
| exit 0 | ||
| fi | ||
|
|
||
| exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,6 +19,5 @@ Thumbs.db | |
| !.vscode/extensions.json | ||
| .history/* | ||
|
|
||
| # Node | ||
| node_modules | ||
| npm-debug.log | ||
| # Lint | ||
| megalinter-reports/ | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "threshold": 0, | ||
| "reporters": ["html", "markdown"], | ||
| "ignore": [ | ||
| "**/node_modules/**", | ||
| "**/.git/**", | ||
| "**/.rbenv/**", | ||
| "**/.venv/**", | ||
| "**/*cache*/**", | ||
| "**/.github/**", | ||
| "**/.idea/**", | ||
| "**/report/**", | ||
| "**/*.svg" | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,11 @@ | ||
| # Template Repository | ||
|
|
||
| This repository serves as a template for others and establishes very basic structure and tooling setup for later customization. | ||
|
|
||
| ## Hooks | ||
|
|
||
| To gain enhanced functionality such as local linting, install the hooks for this repository: | ||
|
|
||
| ```bash | ||
| git config core.hooksPath .git-hooks | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.