Skip to content

Add gocritic (2/2)#3864

Merged
melekes merged 2 commits intomasterfrom
marko/go_critic2
Aug 2, 2019
Merged

Add gocritic (2/2)#3864
melekes merged 2 commits intomasterfrom
marko/go_critic2

Conversation

@tac0turtle
Copy link
Contributor

@tac0turtle tac0turtle commented Aug 1, 2019

  • folow up to complete gocritic (1/2)

Refs #3262

  • Referenced an issue explaining the need for the change
  • Updated all relevant documentation in docs
  • Updated all code comments where relevant
  • Wrote tests
  • Updated CHANGELOG_PENDING.md

@tac0turtle tac0turtle added T:code-hygiene General cleanup and restructuring of code to provide clarity, flexibility, and modularity. ready-for-review labels Aug 1, 2019
@tac0turtle tac0turtle requested a review from melekes August 1, 2019 15:09
@tac0turtle tac0turtle requested review from ebuchman and xla as code owners August 1, 2019 15:09
expectErr bool
}{
{"Too Many Channels", func(ni *DefaultNodeInfo) { ni.Channels = append(channels, byte(maxNumChannels)) }, true},
{"Too Many Channels", func(ni *DefaultNodeInfo) { ni.Channels = append(channels, byte(maxNumChannels)) }, true}, // nolint: gocritic
Copy link
Contributor

Choose a reason for hiding this comment

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

curious what's wrong with append?

Copy link
Contributor

@melekes melekes left a comment

Choose a reason for hiding this comment

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

🚀 🤖 🔋

@codecov-io
Copy link

Codecov Report

Merging #3864 into master will increase coverage by 0.04%.
The diff coverage is 59.34%.

@@            Coverage Diff             @@
##           master    #3864      +/-   ##
==========================================
+ Coverage   66.01%   66.06%   +0.04%     
==========================================
  Files         234      234              
  Lines       20265    20277      +12     
==========================================
+ Hits        13378    13396      +18     
- Misses       5818     5832      +14     
+ Partials     1069     1049      -20
Impacted Files Coverage Δ
p2p/fuzz.go 0% <0%> (ø) ⬆️
rpc/lib/server/handlers.go 50.11% <0%> (-0.12%) ⬇️
libs/log/tmfmt_logger.go 88.88% <100%> (+0.2%) ⬆️
crypto/merkle/simple_proof.go 68.22% <100%> (+0.29%) ⬆️
state/execution.go 73.3% <100%> (-0.12%) ⬇️
p2p/switch.go 68.69% <100%> (-0.09%) ⬇️
libs/common/errors.go 85.71% <100%> (ø) ⬆️
p2p/netaddress.go 66.85% <20%> (-0.57%) ⬇️
node/node.go 63.53% <50%> (+0.22%) ⬆️
blockchain/v0/pool.go 82.62% <50%> (+2.03%) ⬆️
... and 15 more

@melekes melekes merged commit f9cce28 into master Aug 2, 2019
tac0turtle added a commit that referenced this pull request Aug 2, 2019
@melekes melekes deleted the marko/go_critic2 branch August 2, 2019 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T:code-hygiene General cleanup and restructuring of code to provide clarity, flexibility, and modularity.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants