explicitreturn

module
v0.0.0-...-2c550df Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2022 License: GPL-3.0

README

explicitreturn

A Go linter to enforce explicit return values

If you want this linter as a plugin

  1. Run make plugin in the root directory
  2. Put the resulting explicitreturn.so wherever you would like to use it
  3. Update your project's .golangci.yml file with something like this:
linters-settings:
  custom:
    explicitreturn:
      path: path/to/explicitreturn.so
      description: Enforces explicit return statements
      original-url: tildegit.org/indigo/explicitreturn

If the plugin gives an error about versions when it should be linting

Odds are you built it with a different version of golangci-lint than your project is using. Make sure the version in go.mod in this project matches the version that your project is using, then do the steps above

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL