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

Allow using regal fix as a formatter #960

Merged
merged 1 commit into from
Aug 5, 2024
Merged

Conversation

anderseknert
Copy link
Member

Also:

  • Removed the code that would send a response back for formatter options that opa fmt can't handle. This was a good idea, but since there isn't any obvious way for users to fix that, it hurts more than it helps
  • Removed the fmt fix from the default fixer options as formatting is done anyway by the rego-v1 fixer

Fixes #839

Copy link
Member

@charlieegan3 charlieegan3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks great to me, thanks for finishing this up!

Also:
- Removed the code that would send a response back for formatter
  options that `opa fmt` can't handle. This was a good idea, but since
  there isn't any obvious way for users to fix that, it hurts more than
  it helps
- Removed the fmt fix from the default fixer options as formatting is
  done anyway by the rego-v1 fixer

Fixes #839

Signed-off-by: Anders Eknert <anders@styra.com>
@anderseknert anderseknert merged commit 7bd66d9 into main Aug 5, 2024
3 checks passed
@anderseknert anderseknert deleted the regal-fix-format branch August 5, 2024 12:49
srenatus pushed a commit to srenatus/regal that referenced this pull request Oct 1, 2024
Also:
- Removed the code that would send a response back for formatter
  options that `opa fmt` can't handle. This was a good idea, but since
  there isn't any obvious way for users to fix that, it hurts more than
  it helps
- Removed the fmt fix from the default fixer options as formatting is
  done anyway by the rego-v1 fixer

Fixes StyraInc#839

Signed-off-by: Anders Eknert <anders@styra.com>
charlieegan3 pushed a commit to charlieegan3/regal that referenced this pull request Jan 6, 2025
Also:
- Removed the code that would send a response back for formatter
  options that `opa fmt` can't handle. This was a good idea, but since
  there isn't any obvious way for users to fix that, it hurts more than
  it helps
- Removed the fmt fix from the default fixer options as formatting is
  done anyway by the rego-v1 fixer

Fixes StyraInc#839

Signed-off-by: Anders Eknert <anders@styra.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow using regal fix as a formatter
2 participants