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

Check is the codes is formated in travis ci #864

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

aisk
Copy link
Contributor

@aisk aisk commented Oct 25, 2020

I saw current codes have not been formatted yet, so just added a travis ci step to check it, and I think this should work since this PR is failed now: https://travis-ci.org/github/goby-lang/goby/builds/738725791

I'll add another commit to format the codes and let CI pass again.

@aisk
Copy link
Contributor Author

aisk commented Oct 25, 2020

For go's format rules, I think if we continues using "Merge pull request" button to merge PRs, it will make the master's codes been un-formatted again. I think we should using "Rebase" method to submit PRs, and rebase every PR before submit to avoid this.

@aisk
Copy link
Contributor Author

aisk commented Oct 25, 2020

I saw goby is using go module and the old vendor folder still here, and having code not been formatted, so just removed this folder, I don't know whether this is suitable?

@hachi8833 hachi8833 requested a review from st0012 October 26, 2020 00:58
@codecov
Copy link

codecov bot commented Nov 5, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@1dd1905). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #864   +/-   ##
=========================================
  Coverage          ?   80.92%           
=========================================
  Files             ?       54           
  Lines             ?     6775           
  Branches          ?        0           
=========================================
  Hits              ?     5483           
  Misses            ?     1067           
  Partials          ?      225           
Impacted Files Coverage Δ
vm/class.go 86.72% <0.00%> (ø)
vm/validate.go 48.92% <0.00%> (ø)
native/ripper/ripper.go 70.37% <0.00%> (ø)
vm/range.go 94.11% <0.00%> (ø)
vm/float.go 76.64% <0.00%> (ø)
vm/http_client.go 57.89% <0.00%> (ø)
vm/concurrent_hash.go 96.22% <0.00%> (ø)
vm/repl.go 80.00% <0.00%> (ø)
compiler/parser/parser.go 93.96% <0.00%> (ø)
vm/block.go 63.33% <0.00%> (ø)
... and 44 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1dd1905...bde612b. Read the comment docs.

@st0012
Copy link
Member

st0012 commented Nov 5, 2020

I understand the intention behind this change, but I don't feel the need to format all the code, especially not the vendor files. We use vendor because unlike normal applications, Goby's dependencies should be as steady as possible. And I want to minimize the risk that if a dependency is removed from the source, we won't be able to build our source code again.

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.

2 participants