-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Holistic local linting with Mega-Linter #5938
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5938 +/- ##
==========================================
- Coverage 55.08% 55.06% -0.02%
==========================================
Files 1934 1934
Lines 85777 85777
Branches 7675 7675
==========================================
- Hits 47246 47234 -12
- Misses 36740 36752 +12
Partials 1791 1791 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Great job! No new security vulnerabilities introduced in this pull request |
|
Resolved conflicts in .github/workflows/build.yml by accepting the lint job from main. Co-Authored-By: Claude Sonnet 4.5 <[email protected]>




🎟️ Tracking
Internal change.
📔 Objective
We are doing more than ever in this repo and are now even bringing documentation into
READMEfiles, placing more demands on getting content well-formed and checked. We have experimented with the MegaLinter for quite some time and there is a case to use it across all our repos for basic formatting checks at a minimum, with the option to use their larger "flavors" as desired for even more linting. I will skip over the rationale and overview of that system, and in the end it brings a total linting package to us that we don't have to maintain, getting all its benefits rather effortlessly.This change aims to try the formatters flavor out with both local linting and PR-based feedback. This flavor does not include much beyond basic ... format checks. When run locally, the pre-commit hook will take ~10 seconds to invoke the runner to give feedback -- this does have an expense, but fixes will be applied automatically. The online run just gives PR feedback; there is a way to also have it apply changes, but keeping that out of scope, at least for now. Only changed files are linted.
dotnet formatwas the only linter used here, and that's included in the formatters flavor as well as several others.Should this be accepted and trialed, we can proceed with a more template-based introduction.
⏰ 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