appcontextlinter

package
v0.0.0-...-c407d37 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package appcontextlinter This linter makes sure that we only use *pop.Connections in a few allowed places. We want to do this so that we can ensure our database connections are set up properly and remain consistent for each request we handle. See checkIfPackageCanBeSkipped below for list of packages allowed to use *pop.Connection directly. Another allowed use is handlers.handlerConfig because it sets up appcontext with a DB connection for our handlers.

Index

Constants

This section is empty.

Variables

View Source
var AppContextAnalyzer = &analysis.Analyzer{
	Name:     "appcontextlint",
	Doc:      "Make sure appContext is properly used throughout codebase",
	Run:      run,
	Requires: []*analysis.Analyzer{inspect.Analyzer},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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