opentelemetry-collector-contrib icon indicating copy to clipboard operation
opentelemetry-collector-contrib copied to clipboard

add no lint error checks for signalfx exporter package

Open DiptoChakrabarty opened this issue 3 years ago • 8 comments
trafficstars

Description: <Describe what has changed.>

This adds error checks for the signalf exporter package

Link to tracking Issue: #9749

Testing: <Describe what testing was performed and which tests were added.>

Documentation: <Describe the documentation added.>

DiptoChakrabarty avatar May 24 '22 12:05 DiptoChakrabarty

Selection_004 How to resolve this error , can the tests be re run

DiptoChakrabarty avatar Jun 01 '22 06:06 DiptoChakrabarty

This PR was marked stale due to lack of activity. It will be closed in 14 days.

github-actions[bot] avatar Jun 16 '22 05:06 github-actions[bot]

can the tests be re run

DiptoChakrabarty avatar Jun 18 '22 15:06 DiptoChakrabarty

This PR was marked stale due to lack of activity. It will be closed in 14 days.

github-actions[bot] avatar Jul 04 '22 05:07 github-actions[bot]

@DiptoChakrabarty please fix remaining issues

dmitryax avatar Jul 04 '22 23:07 dmitryax

This PR was marked stale due to lack of activity. It will be closed in 14 days.

github-actions[bot] avatar Jul 19 '22 05:07 github-actions[bot]

Hey @DiptoChakrabarty , there are still linter issues. Please let us know if you can fix them.

golangci-lint run --allow-parallel-runners
Error: dpclient.go:140:9: Error return value of `io.Copy` is not checked (errcheck)
	io.Copy(ioutil.Discard, resp.Body)
	       ^
Error: exporter_test.go:676:25: Error return value of `sfxExp.Shutdown` is not checked (errcheck)
			defer sfxExp.Shutdown(context.Background())
			                     ^
Error: factory_test.go:650:20: Error return value is not checked (errcheck)
	setDefaultExcludes(cfg)
	                  ^
Error: eventclient.go:96:6: shadow: declaration of "err" shadows declaration at line 64 (govet)
		_, err := io.Copy(ioutil.Discard, resp.Body)
		   ^

dmitryax avatar Jul 19 '22 15:07 dmitryax

This PR was marked stale due to lack of activity. It will be closed in 14 days.

github-actions[bot] avatar Aug 05 '22 05:08 github-actions[bot]

This PR was marked stale due to lack of activity. It will be closed in 14 days.

github-actions[bot] avatar Oct 09 '22 05:10 github-actions[bot]

Closing, the code changes are no longer necessary. Please comment or reopen if changes are still needed.

atoulme avatar Jan 13 '23 05:01 atoulme