Skip to content
This repository has been archived by the owner on Feb 4, 2025. It is now read-only.

fix-143 #152

Merged
merged 2 commits into from
Oct 2, 2020
Merged

fix-143 #152

merged 2 commits into from
Oct 2, 2020

Conversation

Serhii1011010
Copy link

Description

Fixes #143

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Testing steps

make before_commit

Copy link
Collaborator

@tisnik tisnik left a comment

Choose a reason for hiding this comment

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

LGTM!
(probably the first use of continue in our code? :)

@Serhii1011010
Copy link
Author

@tisnik not really :)

> ./grep --include="*.go" -ir 'continue'
insights-content-service/content/content.go:                                    continue
insights-results-aggregator/consumer/benchmark_test.go:                                 continue
insights-results-aggregator/consumer/benchmark_test.go:                                 continue
insights-results-aggregator/conf/configuration.go:                      continue // skip header
insights-results-smart-proxy/server/handlers.go:                        continue
insights-results-smart-proxy/server/handlers.go:                        continue
insights-results-smart-proxy/conf/configuration.go:                     continue // skip header
insights-results-smart-proxy/content/parsing.go:                                continue

@codecov-commenter
Copy link

Codecov Report

Merging #152 into master will decrease coverage by 0.54%.
The diff coverage is 40.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #152      +/-   ##
==========================================
- Coverage   70.78%   70.23%   -0.55%     
==========================================
  Files           9        9              
  Lines         332      336       +4     
==========================================
+ Hits          235      236       +1     
- Misses         78       81       +3     
  Partials       19       19              
Impacted Files Coverage Δ
content-service.go 42.85% <0.00%> (-1.47%) ⬇️
content/content.go 84.00% <100.00%> (+0.12%) ⬆️

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 35cc065...f17eb1d. Read the comment docs.

@joselsegura
Copy link
Collaborator

./grep: don't you have it installed properly? :-D

About the commit, LGTM

@tisnik not really :)

> ./grep --include="*.go" -ir 'continue'
insights-content-service/content/content.go:                                    continue
insights-results-aggregator/consumer/benchmark_test.go:                                 continue
insights-results-aggregator/consumer/benchmark_test.go:                                 continue
insights-results-aggregator/conf/configuration.go:                      continue // skip header
insights-results-smart-proxy/server/handlers.go:                        continue
insights-results-smart-proxy/server/handlers.go:                        continue
insights-results-smart-proxy/conf/configuration.go:                     continue // skip header
insights-results-smart-proxy/content/parsing.go:                                continue

@tisnik
Copy link
Collaborator

tisnik commented Oct 1, 2020

./grep: don't you have it installed properly? :-D

About the commit, LGTM

@tisnik not really :)

> ./grep --include="*.go" -ir 'continue'
insights-content-service/content/content.go:                                    continue
insights-results-aggregator/consumer/benchmark_test.go:                                 continue
insights-results-aggregator/consumer/benchmark_test.go:                                 continue
insights-results-aggregator/conf/configuration.go:                      continue // skip header
insights-results-smart-proxy/server/handlers.go:                        continue
insights-results-smart-proxy/server/handlers.go:                        continue
insights-results-smart-proxy/conf/configuration.go:                     continue // skip header
insights-results-smart-proxy/content/parsing.go:                                continue

Ah, at least we have just few fallthroughs (all written by me, oh :-o )

@Serhii1011010
Copy link
Author

Serhii1011010 commented Oct 1, 2020

./grep: don't you have it installed properly? :-D

@joselsegura, I do ;)

> cat grep
#!/usr/bin/env bash

# TODO: fix colors issue(there's no colors in the output)

grep --exclude-dir="docs/" "$@"

@quarckster quarckster merged commit 13acb6b into RedHatInsights:master Oct 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not serving appropriate rule content when an error happens while parsing
5 participants