Skip to content

Conversation

@asmaloney
Copy link
Contributor

Error texts were also slightly modified so we could just use one error instead of defining several.

Complexity was fixed by replacing a 2-iteration loop with one function call (removing spaces from a string).

Copy link
Collaborator

@gucio321 gucio321 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool

@codecov-commenter
Copy link

codecov-commenter commented Nov 29, 2022

Codecov Report

Merging #613 (0e81422) into master (702a97c) will decrease coverage by 0.00%.
The diff coverage is 3.03%.

@@            Coverage Diff            @@
##           master    #613      +/-   ##
=========================================
- Coverage    2.97%   2.97%   -0.01%     
=========================================
  Files          35      35              
  Lines        3292    3296       +4     
=========================================
  Hits           98      98              
- Misses       3193    3197       +4     
  Partials        1       1              
Impacted Files Coverage Δ
CSS.go 0.00% <0.00%> (ø)
ClickableWidgets.go 0.00% <0.00%> (ø)
CodeEditor.go 0.00% <0.00%> (ø)
EventHandler.go 0.00% <0.00%> (ø)
ExtraWidgets.go 0.00% <0.00%> (ø)
FontAtlasProsessor.go 0.00% <0.00%> (ø)
ImageWidgets.go 0.00% <0.00%> (ø)
MemoryEditor.go 0.00% <0.00%> (ø)
ProgressIndicator.go 0.00% <0.00%> (ø)
SplitLayout.go 0.00% <0.00%> (ø)
... and 3 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@asmaloney
Copy link
Contributor Author

I have no idea how to read those Codecov things. I never use it.

will decrease coverage by 0.00%.

Is it actually useful?

Error texts were also slightly modified so we could just use one error instead of defining several.

Complexity was fixed by replacing a 2-iteration loop with one function call (removing spaces from a string).
@gucio321
Copy link
Collaborator

idk, I rememember that I was playing with this codecov stuff some time ago.
It is useful in projects that has decent test coverage, but for giu (that, since being a C wrapper) it doesn't seem useful.
At least as long as someone develops a way to write tests for our widgets.

@asmaloney
Copy link
Contributor Author

👍 I would suggest disabling codecov then. It's just noise.

I would also suggest enabling "Test and coverage" and "golangci-lint" as required to pass now.

@gucio321
Copy link
Collaborator

gucio321 commented Nov 29, 2022

👍 I would suggest disabling codecov then. It's just noise.

I'd turn off only these comments, but idk how 😄
I suppose it should be done by @AllenDang somewhere on codecov's cotrol panel.

I would also suggest enabling "Test and coverage" and "golangci-lint" as required to pass now.

"Test and coverage" is just for codecov, but golangci-lint could be required ofc ;-)

@asmaloney
Copy link
Contributor Author

"Test and coverage" is just for codecov

Ah - right. That is the codecov. 😄 I though I saw some tests in there that were being run, but alas there are none.

go test is actually run anyways in the build.yml which is fine if tests are added in the future

So I think we just need to remove coverage.yaml from the workflows?

@asmaloney
Copy link
Contributor Author

I suppose it should be done by @AllenDang somewhere on codecov's cotrol panel.

Yes. They don't make it very easy.

Ah here it is: Require status checks to pass before merging in the Settings/Branches/Branch protection rules.

Looks like you have to list them all? Not a great UX!

@gucio321
Copy link
Collaborator

so its just necessary to add golangci-lint there, since build.yaml is required atm.

@asmaloney
Copy link
Contributor Author

From what I read, if you turn it on, you need to add them all (build / Building (ubuntu-latest), build / Building (ubuntu-latest), build / Building (ubuntu-latest), and golangci-lint / Lint).

When I look at another one of my repos, it explicitly lists each item in the matrix...

@gucio321
Copy link
Collaborator

yah, but build is there already:
image

@asmaloney asmaloney mentioned this pull request Nov 29, 2022
@AllenDang AllenDang merged commit 92132de into AllenDang:master Nov 30, 2022
@asmaloney asmaloney deleted the lint-fix-errs-and-complexity branch November 30, 2022 01:15
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.

4 participants