-
Notifications
You must be signed in to change notification settings - Fork 39
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
fixer: Prep for 1.0 tests #1319
Conversation
Signed-off-by: Charlie Egan <[email protected]>
Signed-off-by: Charlie Egan <[email protected]>
Signed-off-by: Charlie Egan <[email protected]>
pkg/fixer/fixer_test.go
Outdated
} | ||
|
||
deny = true | ||
allow = true #no space |
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.
didn’t it used to be that way before because the formatter would rewrite it to
allow = true
and we wanted to make sure we didn’t have that in our output?
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.
Hmm, originally I didn't want to have the complicated formatting logic in these tests, but I think it's fine and have reverted this in b174300.
pkg/fixer/fixer_test.go
Outdated
[]fixes.Fix{ | ||
&fixes.UseAssignmentOperator{}, | ||
&fixes.NoWhitespaceComment{}, | ||
&fixes.DirectoryPackageMismatch{}, |
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.
So we don't want formatting here?
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.
See above.
@@ -14,10 +13,9 @@ func NewDefaultFixes() []Fix { | |||
return []Fix{ | |||
&Fmt{}, | |||
&Fmt{ | |||
// this effectively maps the fix for violations from the | |||
// use-rego-v1 rule to just format the file. |
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.
Good!
b174300
to
deccb93
Compare
Signed-off-by: Charlie Egan <[email protected]>
deccb93
to
a5c1b18
Compare
* fixer: Prep for 1.0 tests Signed-off-by: Charlie Egan <[email protected]> * fixer/fmt: Add tests for other rego versions Signed-off-by: Charlie Egan <[email protected]> * fixer: Update fixer e2e test Signed-off-by: Charlie Egan <[email protected]> * Correct formatting of launch.json * fixer: Return formatting to Fixer test Signed-off-by: Charlie Egan <[email protected]> --------- Signed-off-by: Charlie Egan <[email protected]>
* fixer: Prep for 1.0 tests Signed-off-by: Charlie Egan <[email protected]> * fixer/fmt: Add tests for other rego versions Signed-off-by: Charlie Egan <[email protected]> * fixer: Update fixer e2e test Signed-off-by: Charlie Egan <[email protected]> * Correct formatting of launch.json * fixer: Return formatting to Fixer test Signed-off-by: Charlie Egan <[email protected]> --------- Signed-off-by: Charlie Egan <[email protected]>
* fixer: Prep for 1.0 tests Signed-off-by: Charlie Egan <[email protected]> * fixer/fmt: Add tests for other rego versions Signed-off-by: Charlie Egan <[email protected]> * fixer: Update fixer e2e test Signed-off-by: Charlie Egan <[email protected]> * Correct formatting of launch.json * fixer: Return formatting to Fixer test Signed-off-by: Charlie Egan <[email protected]> --------- Signed-off-by: Charlie Egan <[email protected]>
No description provided.