All Projects → qax-os → goreporter

qax-os / goreporter

Licence: Apache-2.0 license
A Golang tool that does static analysis, unit testing, code review and generate code quality report.

Programming Languages

go
31211 projects - #10 most used programming language
HTML
75241 projects
Makefile
30231 projects
emacs lisp
2029 projects
Dockerfile
14818 projects
Vim Script
2826 projects

Projects that are alternatives of or similar to goreporter

Goreporter
A Golang tool that does static analysis, unit testing, code review and generate code quality report.
Stars: ✭ 2,943 (-2.52%)
Mutual labels:  unit-testing, test, linter, static-analysis, reporter, codereview, golang-tools, examination, unit-test, staticcheck, quality-report
golintui
A simple terminal UI for Go linters
Stars: ✭ 73 (-97.58%)
Mutual labels:  linter, static-analysis, golang-tools
Reviewdog
🐶 Automated code review tool integrated with any code analysis tools regardless of programming language
Stars: ✭ 4,541 (+50.41%)
Mutual labels:  linter, static-analysis, codereview
staticcheck-action
Staticcheck's official GitHub Action
Stars: ✭ 47 (-98.44%)
Mutual labels:  linter, static-analysis, staticcheck
Go Tools
Staticcheck - The advanced Go linter
Stars: ✭ 4,317 (+42.99%)
Mutual labels:  linter, static-analysis, staticcheck
constyble
CSS complexity linter
Stars: ✭ 92 (-96.95%)
Mutual labels:  test, linter, static-analysis
unittest expander
A library that provides flexible and easy-to-use tools to parameterize Python unit tests, especially those based on unittest.TestCase.
Stars: ✭ 12 (-99.6%)
Mutual labels:  unit-testing, test, unit-test
nestif
Detect deeply nested if statements in Go source code
Stars: ✭ 30 (-99.01%)
Mutual labels:  linter, static-analysis, golang-tools
UTBotCpp
Tool that generates unit test by C/C++ source code, trying to reach all branches and maximize code coverage
Stars: ✭ 59 (-98.05%)
Mutual labels:  unit-testing, static-analysis
testza
Full-featured test framework for Go! Assertions, fuzzing, input testing, output capturing, and much more! 🍕
Stars: ✭ 409 (-86.45%)
Mutual labels:  unit-testing, test
pytest
The pytest framework makes it easy to write small tests, yet scales to support complex functional testing
Stars: ✭ 9,731 (+222.33%)
Mutual labels:  unit-testing, test
EntityFrameworkCore.AutoFixture
A library aimed to minimize the boilerplate required to unit-test Entity Framework Core code using AutoFixture and in-memory providers.
Stars: ✭ 31 (-98.97%)
Mutual labels:  unit-testing, unit-test
tryceratops
A linter to prevent exception handling antipatterns in Python (limited only for those who like dinosaurs).
Stars: ✭ 381 (-87.38%)
Mutual labels:  linter, static-analysis
Tablier
A micro-framework for Table Driven Tests.
Stars: ✭ 33 (-98.91%)
Mutual labels:  unit-testing, test
Alsatian
TypeScript testing framework with test cases
Stars: ✭ 244 (-91.92%)
Mutual labels:  unit-testing, test
dlint
Dlint is a tool for encouraging best coding practices and helping ensure Python code is secure.
Stars: ✭ 130 (-95.69%)
Mutual labels:  linter, static-analysis
lints
Lint all your JavaScript, CSS, HTML, Markdown and Dockerfiles with a single command
Stars: ✭ 14 (-99.54%)
Mutual labels:  linter, static-analysis
Androidunittest
Save time & clear your unit tests on Android !
Stars: ✭ 205 (-93.21%)
Mutual labels:  unit-testing, test
lwc-test
LWC plugins and utilities for testing
Stars: ✭ 39 (-98.71%)
Mutual labels:  test, unit-test
mockingbird
🐦 Decorator Powered TypeScript Library for Creating Mocks
Stars: ✭ 70 (-97.68%)
Mutual labels:  test, unit-test

goreporter

goreporter Version Status

Current Release Build Status GoDoc License

A Golang tool that does static analysis, unit testing, code review and generate code quality report. This is a tool that concurrently runs a whole bunch of those linters and normalizes their output to a report:

Supported linters

  • gofmt - Checks if the code is properly formatted and could not be further simplified.
  • govet - Reports variables that may have been unintentionally shadowed.
  • golint - Golint is a linter for Go source code.
  • unittest - Golang unit test status.
  • deadcode - Finds unused code.
  • gocyclo - Computes the cyclomatic complexity of functions.
  • varcheck - Find unused global variables and constants.
  • structcheck - Find unused struct fields.
  • aligncheck - Warn about un-optimally aligned structures.
  • errcheck - Check that error return values are used.
  • copycode(dupl) - Reports potentially duplicated code.
  • gosimple - Report simplifications in code.
  • staticcheck - Statically detect bugs, both obvious and subtle ones.
  • godepgraph - Godepgraph is a program for generating a dependency graph of Go packages.
  • misspell - Correct commonly misspelled English words... quickly.
  • countcode - Count lines and files of project.
  • interfacer - Suggest narrower interfaces that can be used.
  • depth - Count the maxdepth of go functions.
  • flen - Flen provides stats on functions/methods lengths in a Golang package.

Template

  • html template file which can be loaded via -t <file>.

Todo List

  • This version will re-design the template.
  • Add interfacer and safesql and gofmt(-s),govet linter.

Installing

Requirements

Quickstart

Install goreporter (see above).

go get -u github.com/360EntSecGroup-Skylar/goreporter

Run it:

NOTE

You have to confirm that your project is operational. In particular, the problem with vendor, when the package is not found in the default path, goreporter will look again from the possible vendor path.

goreporter -p [projectRelativePath] -r [reportPath] -e [exceptPackagesName] -f [json/html/text]  {-t templatePathIfHtml}
  • -version Version of GoReporter.
  • -p Must be a valid Golang project path.
  • -r Save the path to the report.
  • -e Exceptional packages (multiple separated by commas, for example: "linters/aligncheck,linters/cyclo" ).
  • -f report format json, html OR text.
  • -t Template path,if not specified, the default template will be used.

By default, the default template is used to generate reports in html format.

Example

goreporter-display

you can see result detail:online-example-report

Credits

Logo is designed by Ri Xu

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].