-
Notifications
You must be signed in to change notification settings - Fork 375
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
feat(gnovm): add gno fmt
command
#2156
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2156 +/- ##
==========================================
- Coverage 54.73% 54.70% -0.03%
==========================================
Files 584 590 +6
Lines 78531 79036 +505
==========================================
+ Hits 42983 43236 +253
- Misses 32336 32550 +214
- Partials 3212 3250 +38
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
40ab111
to
b7f9722
Compare
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
b7f9722
to
6b0ec9d
Compare
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
d413853
to
aa85436
Compare
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
10a1a96
to
3786be0
Compare
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
I recommend renaming |
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
gnoimports
gno fmt
command
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Co-authored-by: Manfred Touron <94029+moul@users.noreply.github.com>
Add
gno fmt
supportinggnoimports
features.For now, it supports the
example
folder along withstdlibs
as defaults packages and add other source using-i
flag.In the future, it should possibly support a target chain so it can update imports based on what's on the chain (or using a
gnoproxy
).Note for reviewer:
Most of the files edited in this pull request are actually formatted files. The reviewer should focus on:
gnovm/pkg/gnofmt
gnovm/cmd/fmt*
Additionally, some CI, Makefile, and other configuration files can require attention.
TODO:resolver
interface and move packages load into its specific implementationsgnofmt
testsNOTE: tests in
gnofmt
are minimal, most of the tests are written intxtar
format ingnovm/cmd/gno/testdata/gno_fmt
Contributors' checklist...
BREAKING CHANGE: xxx
message was included in the description