Skip to content

Bump github.com/styrainc/regal from 0.23.1 to 0.24.0 - #116

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/styrainc/regal-0.24.0
Closed

Bump github.com/styrainc/regal from 0.23.1 to 0.24.0#116
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/styrainc/regal-0.24.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 18, 2024

Copy link
Copy Markdown

Bumps github.com/styrainc/regal from 0.23.1 to 0.24.0.

Release notes

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

v0.24.0

This release brings 4 new rules to Regal's linter as well as a number of improvements to the language server.

Rules

New Rule if-object-literal

This rule helps users avoid an error case where an object follows an if. Typically this represents an incomplete rule.

allow if {}

Read the docs on if-object-literal.

New Rule pointless-reassignment

Variables in Rego are immutable, so adding a new variable for an existing short variable only adds noise. Read the docs on pointless-reassignment.

New Rule argument-always-wildcard

Sometimes, particularly after refactoring, a function argument is always a wildcard (_):

my_func(name, _)
my_func("Alice", _)

This rule catches such cases as they typically offer an opportunity for further refactoring or an error where the argument should be used in one or more cases. Read the docs on argument-always-wildcard.

New Rule annotation-without-metadata

Rules containing METADATA annotation syntax without a METADATA header will not be parsed and represents a likely mistake.

# description: allow allows
allow if {  
	# ... some conditions  
}

Read the docs on annotation-without-metadata.

New Rule var-shadows-builtin

Variables that share the name of a built-in group or function should be renamed to avoid confusion.

# variable `http` shadows `http.send` built-in function  
allow if {  
	http := startswith(input.url, "http://")  
	# ...
}

... (truncated)

Commits
  • 34202b5 release: Add permissions to push to ghcr
  • 31bee8d release: Add permissions to create releases
  • 9ed8ec1 Begin to Include end location where applicable (#917)
  • 988d558 Show snippet completions for complete word (#914)
  • bea3d66 build(deps): bump github/codeql-action from 3.25.11 to 3.25.12 (#912)
  • aef7d59 build(deps): bump actions/setup-go from 5.0.1 to 5.0.2 (#911)
  • 1efd82c lsp/hover: Show example links (#906)
  • a6e97af docs: Update language server docs (#910)
  • bcfc9b7 Dependabot/go modules/GitHub.com/owenrumney/go sarif/v2 2.3.3 (#909)
  • 288d9c3 rule: Fix pointless issue when using with (#907)
  • 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.23.1 to 0.24.0.
- [Release notes](https://github.com/styrainc/regal/releases)
- [Changelog](https://github.com/StyraInc/regal/blob/main/.goreleaser.yaml)
- [Commits](open-policy-agent/regal@v0.23.1...v0.24.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Jul 18, 2024
@dependabot @github

dependabot Bot commented on behalf of github Aug 19, 2024

Copy link
Copy Markdown
Author

Superseded by #128.

@dependabot dependabot Bot closed this Aug 19, 2024
@dependabot
dependabot Bot deleted the dependabot/go_modules/github.com/styrainc/regal-0.24.0 branch August 19, 2024 15:27
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.

0 participants