class

Detector::CSharp::AspNetMvc

Inherits Detector < Reference < Object

Constants

CONTROLLER_BASE_INHERITANCE = /:\s*ControllerBase\b/
CONTROLLER_INHERITANCE = /:\s*Controller\b/

Class methods

tech_name

The tech name without needing an instance, so the registry can be read off the classes themselves rather than from a parallel list.

Source

Instance methods

applicable?(filename : String) : Bool

check_routeconfig records every RouteConfig.cs path it sees into CodeLocator for the analyzer to consume. Skipping this detector after its first match would lose the registration on subsequent files.

Source
check_routeconfig(filename : String, file_contents : String)
Source
detect(filename : String, file_contents : String) : Bool
Source
idempotent?

check_routeconfig records every RouteConfig.cs path it sees into CodeLocator for the analyzer to consume. Skipping this detector after its first match would lose the registration on subsequent files.

Source
set_name

check_routeconfig records every RouteConfig.cs path it sees into CodeLocator for the analyzer to consume. Skipping this detector after its first match would lose the registration on subsequent files.

Source