godel-okgo-asset-outparamcheck

command module
v1.43.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

README

Autorelease

godel-okgo-asset-outparamcheck

godel-okgo-asset-outparamcheck is an asset for the gödel okgo plugin. It provides the functionality of the outparamcheck check.

This check verifies that output parameters are properly passed in to functions as pointers.

Configuration

It is possible to specify functions that should be checked using output parameters using configuration. The check configuration has an out-param-fns key that stores a map from the fully qualified function name to a slice of argument indices that indicate the indices of the function parameters that should be considered output parameters.

Here is an example check.yml configuration that specifies that the second (index 1) argument of the "Load" function in the "github.com/org/repo/config" package is an output parameter:

checks:
  outparamcheck:
    config:
      out-param-fns:
        "github.com/org/repo/config.Load": [1]

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
generated by amalgomate; DO NOT EDIT
generated by amalgomate; DO NOT EDIT
internal/amalgomated_flag
Package flag implements command-line flag parsing.
Package flag implements command-line flag parsing.

Jump to

Keyboard shortcuts

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