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

[WIP] Makefile changes #120

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

[WIP] Makefile changes #120

wants to merge 1 commit into from

Conversation

rafie
Copy link
Contributor

@rafie rafie commented Jul 18, 2021

No description provided.

@sonarcloud
Copy link

sonarcloud bot commented Jul 18, 2021

SonarCloud Quality Gate failed.

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell C 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@@ -30,7 +30,7 @@ type Game struct {
Categories []string `json:"categories"`
}

func init() {
func _init() {
Copy link

Choose a reason for hiding this comment

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

U1000: func _init is unused
(at-me in a reply with help or ignore)

@@ -30,7 +30,7 @@ type Game struct {
Categories []string `json:"categories"`
}

func init() {
func _init() {
Copy link

Choose a reason for hiding this comment

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

deadcode: _init is unused
(at-me in a reply with help or ignore)

@codecov
Copy link

codecov bot commented Jul 18, 2021

Codecov Report

Merging #120 (ef1ab30) into master (dbcb367) will decrease coverage by 0.18%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #120      +/-   ##
==========================================
- Coverage   76.90%   76.72%   -0.19%     
==========================================
  Files          13       13              
  Lines        1104     1104              
==========================================
- Hits          849      847       -2     
- Misses        198      199       +1     
- Partials       57       58       +1     
Impacted Files Coverage Δ
redisearch/client.go 79.23% <0.00%> (-0.55%) ⬇️

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 dbcb367...ef1ab30. Read the comment docs.

@rafie rafie changed the title Makefile changes [WIP] Makefile changes Jul 18, 2021
@rafie rafie marked this pull request as draft July 18, 2021 16:11

fmt:
$(GOFMT) ./...

godoc_examples: get fmt
$(GOTEST) -race -covermode=atomic ./redisearch

TEST ?= Test
ifeq ($(VERBOSE),1)
TEST_FLAGS += -v
Copy link
Collaborator

Choose a reason for hiding this comment

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

we should add -count=1 to TEST_FLAGS to ensure multiple calls to test do indeed trigger the tests.

@@ -60,3 +78,11 @@ godoc:
echo "Open browser tab on localhost:6060"
$(GODOC)

Copy link
Collaborator

Choose a reason for hiding this comment

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

if possible can we take this chance to also add the microbenchamrks rule @rafie ?
sample one:
https://github.com/HdrHistogram/hdrhistogram-go/blob/master/Makefile#L40

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