-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
feat: Adding strict lint #3348
Merged
Merged
feat: Adding strict lint #3348
Conversation
This file contains 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
Quality Gate passedIssues Measures |
denis256
approved these changes
Aug 22, 2024
levkohimins
approved these changes
Aug 22, 2024
akrantz01
referenced
this pull request
in akrantz01/homelab
Aug 28, 2024
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [gruntwork-io/terragrunt](https://togithub.com/gruntwork-io/terragrunt) | minor | `v0.66.9` -> `v0.67.0` | | [gruntwork-io/terragrunt](https://togithub.com/gruntwork-io/terragrunt) | minor | `0.66.9` -> `0.67.0` | --- ### Release Notes <details> <summary>gruntwork-io/terragrunt (gruntwork-io/terragrunt)</summary> ### [`v0.67.0`](https://togithub.com/gruntwork-io/terragrunt/releases/tag/v0.67.0) [Compare Source](https://togithub.com/gruntwork-io/terragrunt/compare/v0.66.9...v0.67.0) #### Updated CLI args, config attributes and blocks - `--terragrunt-forward-tf-stdout` ([docs](https://terragrunt.gruntwork.io/docs/reference/cli-options/#terragrunt-forward-tf-stdout)) - `--terragrunt-disable-log-formatting` ([docs](https://terragrunt.gruntwork.io/docs/reference/cli-options/#terragrunt-disable-log-formatting)) #### Breaking Changes - [--terragrunt-include-module-prefix](https://terragrunt.gruntwork.io/docs/reference/cli-options/#terragrunt-include-module-prefix) flag is deprecated, use [--terragrunt-forward-tf-stdout](https://terragrunt.gruntwork.io/docs/reference/cli-options/#terragrunt-forward-tf-stdout) instead #### What's Changed - feat: Adding `wsl` lint by [@​yhakbar](https://togithub.com/yhakbar) in [https://github.com/gruntwork-io/terragrunt/pull/3351](https://togithub.com/gruntwork-io/terragrunt/pull/3351) - feat: Engine documentation update by [@​denis256](https://togithub.com/denis256) in [https://github.com/gruntwork-io/terragrunt/pull/3355](https://togithub.com/gruntwork-io/terragrunt/pull/3355) - feat: Adding strict lint by [@​yhakbar](https://togithub.com/yhakbar) in [https://github.com/gruntwork-io/terragrunt/pull/3348](https://togithub.com/gruntwork-io/terragrunt/pull/3348) - feat: Split out unessential jobs by [@​yhakbar](https://togithub.com/yhakbar) in [https://github.com/gruntwork-io/terragrunt/pull/3357](https://togithub.com/gruntwork-io/terragrunt/pull/3357) - feat: Adding `thelpher` and `wastedassign` lints by [@​yhakbar](https://togithub.com/yhakbar) in [https://github.com/gruntwork-io/terragrunt/pull/3352](https://togithub.com/gruntwork-io/terragrunt/pull/3352) - fix: Updating docs 'Reading from other HCL files' by [@​riccalioliojr](https://togithub.com/riccalioliojr) in [https://github.com/gruntwork-io/terragrunt/pull/3361](https://togithub.com/gruntwork-io/terragrunt/pull/3361) - feat: Log improvements by [@​levkohimins](https://togithub.com/levkohimins) in [https://github.com/gruntwork-io/terragrunt/pull/3338](https://togithub.com/gruntwork-io/terragrunt/pull/3338) Old Terragrunt log: ![old-logs](https://togithub.com/user-attachments/assets/3cd5b8b1-ffe9-4002-a288-6ab333b6c174) New Terragrunt log: ![new-logs](https://togithub.com/user-attachments/assets/0d30fd20-0360-47e2-9f5e-1db9f62d22d6) #### New Contributors - [@​riccalioliojr](https://togithub.com/riccalioliojr) made their first contribution in [https://github.com/gruntwork-io/terragrunt/pull/3361](https://togithub.com/gruntwork-io/terragrunt/pull/3361) **Full Changelog**: gruntwork-io/terragrunt@v0.66.9...v0.67.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/akrantz01/homelab). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguNTYuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Adds strict linting for pull requests. This ensures that new code being introduced adheres to improved code quality standards.
The two lints being added here are for
style
andcomplexity
. The current codebase violates these rules basically everywhere, so it's not feasible to enable these lints for everything.Instead, we'll enable these lints for all new code being introduced or edited in pull requests, which should help us gradually improve the code quality over time.
I think if we're OK with introducing this, we should selectively ignore rules when they are too strict for a given file or require too much refactoring.
For a sense of the kinds of things we would change, you can take a look at this in-draft PR that I closed because it was unreasonably large:
#3347
TODOs
Read the Gruntwork contribution guidelines.
Release Notes (draft)
Added strict lint rules.