Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/spring/review/mutableInjectionsReviewer"

Index

Variables

Const InjectedFields

InjectedFields: "//classBodyDeclaration[//annotation[@value='@Autowired']]//fieldDeclaration//variableDeclaratorId |//classBodyDeclaration[//annotation[@value='@Inject']]//fieldDeclaration//variableDeclaratorId |//classBodyDeclaration[//annotation[@value='@Autowired']]//methodDeclaration//methodDeclarator/identifier |//classBodyDeclaration[//annotation[@value='@Inject']]//methodDeclaration//methodDeclarator/identifier" = `//classBodyDeclaration[//annotation[@value='@Autowired']]//fieldDeclaration//variableDeclaratorId |//classBodyDeclaration[//annotation[@value='@Inject']]//fieldDeclaration//variableDeclaratorId |//classBodyDeclaration[//annotation[@value='@Autowired']]//methodDeclaration//methodDeclarator/identifier |//classBodyDeclaration[//annotation[@value='@Inject']]//methodDeclaration//methodDeclarator/identifier`

Const MutableInjectionCategory

MutableInjectionCategory: "Mutable injection" = "Mutable injection"

Functions

findMutableInjections

  • findMutableInjections(p: Project, globPattern?: string): Promise<ProjectReview>
  • Find all fields or setters annotated with @Autowired or @Inject in the codebase. This is an undesirable usage pattern in application code, although acceptable in tests.

    Parameters

    • p: Project

      project to search

    • Default value globPattern: string = JavaSourceFiles

      glob pattern. Defaults to Maven convention Java source files location of source tree.

    Returns Promise<ProjectReview>

Object literals

Const MutableInjectionsReviewer

MutableInjectionsReviewer: object

name

name: string = "mutable-injections-reviewer"

inspection

  • inspection(p: Project): Promise<ProjectReview>

Generated using TypeDoc