Skip to content
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

Bump github.com/styrainc/regal from 0.18.0 to 0.19.0 #57

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 18, 2024

Bumps github.com/styrainc/regal from 0.18.0 to 0.19.0.

Release notes

Sourced from github.com/styrainc/regal's releases.

v0.19.0

This release adds several new options for setting configuration options for rules in groups, allowing users to keep a static configuration across updates, or to ignore certainly classes of rules. v0.19.0 also includes a number of fixes to both linter rules and the language server integration, making for an even better experience when using Regal from VS Code or other LSP clients.

New default rule configuration option

The rules section in the Regal configuration file may now include a default attribute either at the top level, or in any specific category. This allows enabling/disabling entire categories of rules, or to avoid Regal to "break" CI/CD builds on updates if new rules are introduced. While it's arguably good to have new problems surfaced, we recognize that some organizations value stability first, and may opt for more controlled upgrades.

Example, using a default configuration to ignore all rules except for those explicitly listed:

rules:
  default:
    level: ignore
  bugs:
    constant-condition:
      level: error
    deprecated-builtin:
      level: error
    duplicate-rule:
      level: error

Example, using a default configuration to enable all rules except for those in the style category:

rules:
  default:
    level: error
  style:
    level: ignore

To learn more about the new default option, and the precedence rules for the various ways to ignore rules, see the Regal docs.

Fixes

  • Fix false positive in prefer-some-in-iteration in function args
  • Fix false positive in several rules not counting imports in scope
  • Many fixes and improvements related to the LSP integration — see the changelog below for details

Changelog

  • 441ff78a1cb72455d71783c8befa44beb9e3c999: Correct md link (#584) (@​charlieegan3)
  • 388977225db80c5426a1542e9c7928e911022498: Bump github.com/open-policy-agent/opa from 0.62.0 to 0.62.1 (#586) (@​dependabot[bot])
  • e37827656c7fc9609a067e7202c5c80a242a835b: Fix: prefer-some-in-iteration false positive iteration in fn args (#579) (@​anderseknert)
  • 9da179641238fd28c8297f11eea315f17636383b: docs: make old rule draft (#588) (@​charlieegan3)
  • 9e9a30ef14b9b65c778670cad2326b6b675c38b6: config: Support the defaulting of rules in config (#587) (@​charlieegan3)
  • fff72d9c7d0d98cb688975713445099dfc44587c: Fix false positive in rules not counting imports in scope (#592) (@​anderseknert)
  • bef10f7b736ce86f22e41d8ad483127b67e0d8c1: Add note about vscode support (#593) (@​charlieegan3)
  • eef7509c75e12a1440f6bef574f1f188b54710fd: Update with-outside-test-context.md (#595) (@​gusega)
  • 10605cf1c89326fec962eccbb508081263beba5a: Bump leigholiver/commit-with-deploy-key from 1.0.3 to 1.0.4 (#596) (@​dependabot[bot])

... (truncated)

Commits
  • 4f559f2 lsp: Handle case where a rego file is empty (#602)
  • 2179066 Add support for editing Regal in VS Code (#600)
  • b229e5f Add Linting Rego with... Rego! blog (#599)
  • ed1098e Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 (#598)
  • 4fc779a lsp: Make server messages compliant (#594)
  • 10605cf Bump leigholiver/commit-with-deploy-key from 1.0.3 to 1.0.4 (#596)
  • eef7509 Update with-outside-test-context.md (#595)
  • bef10f7 Add note about vscode support (#593)
  • fff72d9 Fix false positive in rules not counting imports in scope (#592)
  • 9e9a30e config: Support the defaulting of rules in config (#587)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/styrainc/regal](https://github.com/styrainc/regal) from 0.18.0 to 0.19.0.
- [Release notes](https://github.com/styrainc/regal/releases)
- [Changelog](https://github.com/StyraInc/regal/blob/main/.goreleaser.yaml)
- [Commits](StyraInc/regal@v0.18.0...v0.19.0)

---
updated-dependencies:
- dependency-name: github.com/styrainc/regal
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Mar 18, 2024
@swaroopar swaroopar merged commit af4c7f7 into main Mar 21, 2024
4 checks passed
@dependabot dependabot bot deleted the dependabot/go_modules/github.com/styrainc/regal-0.19.0 branch March 21, 2024 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant