-
Notifications
You must be signed in to change notification settings - Fork 96
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
chore: optimize the format by using files from config tree. #1962
base: main
Are you sure you want to change the base?
Conversation
a815687
to
0ae792a
Compare
|
Signed-off-by: i4k <[email protected]>
0ae792a
to
40e05cb
Compare
|
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
@@ -2404,6 +2406,7 @@ func (c *cli) gitSafeguardRemoteEnabled() bool { | |||
} | |||
|
|||
func (c *cli) wd() string { return c.prj.wd } | |||
func (c *cli) wd2() prj.Path { return prj.PrjAbsPath(c.rootdir(), c.wd()) } |
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.
Why not more closely to what the function does?
func (c *cli) wd2() prj.Path { return prj.PrjAbsPath(c.rootdir(), c.wd()) } | |
func (c *cli) absPathWD() prj.Path { return prj.PrjAbsPath(c.rootdir(), c.wd()) } |
@@ -1276,6 +1278,7 @@ var = [ | |||
} | |||
|
|||
func TestFormatHCL(t *testing.T) { | |||
t.Skip("not yet") |
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.
Is this expected to be fixed in this PR?
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.
yes, I swear I marked this PR "draft" before leaving the PC yesterday 😞
What this PR does / why we need it:
Format the files from the configuration tree instead of re-scanning the filesystem.
Which issue(s) this PR fixes:
none
Special notes for your reviewer:
Does this PR introduce a user-facing change?