-
Notifications
You must be signed in to change notification settings - Fork 37
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 fixing directory structure not matching package paths #1035
Conversation
6c227b9
to
cbb257f
Compare
tmp/unrelated.txt
Outdated
@@ -0,0 +1 @@ | |||
foo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added by mistake?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Certainly! I’m surprised there aren’t more given how many tempdirs I’ve burned in this process 😄 Thanks for catching that. Will fix!
// FixResult is returned from the Fix method and contains the new contents or fix recommendations. | ||
// In future this might support diff based updates, or renames. | ||
// In future this might support diff based updates. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice! as intended 🙂
4fa5b2b
to
b4bd54a
Compare
Following the recent addition of the `directory-package-mismatch` rule, this PR brings a corresponding `regal fix` remediator as well as a code action to fix this directly in the editor. Fixes #1025 Signed-off-by: Anders Eknert <anders@styra.com>
b4bd54a
to
f5300df
Compare
Will defer docs to new PRs once this is in main. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, have been testing in my own PR and will open shortly as a follow on.
This is a follow-up PR to #1035, documenting the new capabilities of Regal added there Signed-off-by: Anders Eknert <anders@styra.com>
This is a follow-up PR to #1035, documenting the new capabilities of Regal added there Signed-off-by: Anders Eknert <anders@styra.com>
This is a follow-up PR to #1035, documenting the new capabilities of Regal added there Signed-off-by: Anders Eknert <anders@styra.com>
This is a follow-up PR to #1035, documenting the new capabilities of Regal added there Signed-off-by: Anders Eknert <anders@styra.com>
This is a follow-up PR to #1035, documenting the new capabilities of Regal added there Signed-off-by: Anders Eknert <anders@styra.com>
This is a follow-up PR to #1035, documenting the new capabilities of Regal added there Signed-off-by: Anders Eknert <anders@styra.com>
This is a follow-up PR to #1035, documenting the new capabilities of Regal added there Signed-off-by: Anders Eknert <anders@styra.com>
This is a follow-up PR to #1035, documenting the new capabilities of Regal added there Signed-off-by: Anders Eknert <anders@styra.com>
This is a follow-up PR to #1035, documenting the new capabilities of Regal added there Signed-off-by: Anders Eknert <anders@styra.com>
…#1035) Following the recent addition of the `directory-package-mismatch` rule, this PR brings a corresponding `regal fix` remediator as well as a code action to fix this directly in the editor. Fixes StyraInc#1025 Signed-off-by: Anders Eknert <anders@styra.com>
…nc#1043) This is a follow-up PR to StyraInc#1035, documenting the new capabilities of Regal added there Signed-off-by: Anders Eknert <anders@styra.com>
Following the recent addition of the
directory-package-mismatch
rule, this PR brings a correspondingregal fix
remediator as well as a code action to fix this directly in the editor.Fixes #1025
Todo:
opa.roots
as part of the init options, but what about updates?regal lint
we will need to either add a flag or read from config (or both)regal fix
(including settings for DAS compliance)exclude-test-suffix
or tofalse
leads to no Code Action shownregal fix
: determine if clean git working directory #1029regal fix
--dry-run
for all fixes ofregal lint