errifinline

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 6 Imported by: 0

README

errifinline

Go linter to check if single error assignments are inline.

Google | Uber

Install

go install github.com/bastianccm/errifinline/cmd/errifinline@latest

Usage

errifinline ./...

Example

err := something()
if err != nil {  // this should inline _, err := something()...
    ...
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAnalyzer

func NewAnalyzer() (*analysis.Analyzer, error)

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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