hyperledger/caliper-benchmarks

Add linting of the Go/Java/Javascript code

davidkel opened this issue · 0 comments

We should add this ability to help contributors/maintainers to delivery quality code. Some thoughts on this feature

  1. It needs to be added to the build to verify PRs
  2. It should use node to run the linters as node is a pre-requisite for caliper so would be installed. Reason for this is that node is platform agnostic so is useable in native Windows
  3. we should match the linter rules used in caliper for node and so use the same lint engine
  4. I don't think we need to run gofmt as all good go ides will do this for you. There is a go linter golangci-lint we can use
  5. for java we could use checkstyle