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

feat: Added "make lint" to target and added it to make test. Resolved… #60

Merged
merged 1 commit into from
Jan 26, 2022

Conversation

marcpfuller
Copy link
Contributor

@marcpfuller marcpfuller commented Jan 24, 2022

feat: Added "make lint" to target and added it to make test. Resolved all lint errors as well

Signed-off-by: Marc-philippe Fuller marc-philippe.fuller@intel.com

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/device-rfid-llrp-go/blob/main/.github/Contributing.md

PR Checklist

Please check if your PR fulfills the following requirements:

  • I am not introducing a breaking change (if you are, flag in conventional commit message with BREAKING CHANGE: describing the break)
  • I am not introducing a new dependency (add notes below if you are)
  • I have added unit tests for the new feature or bug fix (if not, why?) N/A
  • I have fully tested (add details below) this the new feature or bug fix (if not, why?)
  • I have opened a PR for the related docs change (if not, why?)N/A

Testing Instructions

  1. Ran make test

New Dependency Instructions (If applicable)

N/A

cmd/llrp/llrp.go Outdated Show resolved Hide resolved
Comment on lines 395 to 398
//nolint: gosec
sz := rand.Int31n(1024)
data := make([]byte, sz)
//nolint: gosec
Copy link
Member

Choose a reason for hiding this comment

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

What does linter no like in these?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

internal/llrp/reader_test.go:395:10: G404: Use of weak random number generator (math/rand instead of crypto/rand) (gosec)
                        sz := rand.Int31n(1024)

@marcpfuller marcpfuller force-pushed the lint-feature branch 2 times, most recently from c8e903b to 9b29164 Compare January 26, 2022 18:20
Copy link
Member

@lenny-goodell lenny-goodell left a comment

Choose a reason for hiding this comment

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

LGTM

lenny-goodell
lenny-goodell previously approved these changes Jan 26, 2022
Copy link
Member

@lenny-goodell lenny-goodell left a comment

Choose a reason for hiding this comment

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

LGTM, but want @bnevis-i to also review.

… all lint errors as well

Signed-off-by: Marc-philippe Fuller <marc-philippe.fuller@intel.com>
Copy link
Collaborator

@bnevis-i bnevis-i left a comment

Choose a reason for hiding this comment

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

LGTM

@lenny-goodell lenny-goodell merged commit fdb8dc9 into edgexfoundry:main Jan 26, 2022
@marcpfuller marcpfuller deleted the lint-feature branch January 27, 2022 16:32
@lenny-goodell lenny-goodell linked an issue Feb 16, 2022 that may be closed by this pull request
@marcpfuller marcpfuller restored the lint-feature branch February 28, 2022 19:49
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.

[LLRP Device] Add "make lint" target and add to "make test" target
3 participants