-
Notifications
You must be signed in to change notification settings - Fork 2
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
Use Mega-Linter locally #14
base: main
Are you sure you want to change the base?
Conversation
1addbf6
to
b082225
Compare
No New Or Fixed Issues Found |
d25b558
to
619e1ac
Compare
619e1ac
to
b1bf35b
Compare
Summarization of my previous concerns and desired behavior on this topic. CI:
Local:
Downsides over husky/alternatives.
I still have a hard time seeing the value of throwing a ton of linters on a codebase over focusing on enabling more eslint rules for pain points we've encountered. If this becomes the standard the owner of this effort will need to spend time ensuring it runs smoothly in all repositories prior to disabling any existing workflows. |
.git-hooks/pre-commit
Outdated
if npx mega-linter-runner --remove-container --fix --filesonly $FILES; then | ||
echo "$FILES" | xargs git add | ||
exit 0 | ||
fi | ||
|
||
exit 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Open to suggestions on cleaner Bash scripting for this flow.
Current thoughts:
|
The above PR from Mega-Linter is merged and a beta "formatters-only" flavor now exists and I put it in use here. We'll want to see it leave beta before we merge ourselves. |
🎟️ Tracking
Internal change.
🚧 Type of change
📔 Objective
Adds the Mega-Linter via its runner package and executes it for staged file linting. Relates to #2 and its Actions-based approach. Will lint and apply fixes.
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes