class

Analyzer::Go::Revel

Inherits PlayRouteSupport < Analyzer::Go::GoEngine < Analyzer::Go::GoTestPath < Analyzer < FileHelper < Reference < Object

Revel (https://revel.github.io/manual/routing.html) declares every route in a Play-style conf/routes file next to the app's app/ directory:

GET /users/:id Users.Show WS /feed App.Feed

  •   /:controller/:action    :controller.:action

module:testrunner

The routes file is claimed only when Go code under the sibling app/ imports Revel, so a Play app's conf/routes is left to Play.

Constants

ACTION_RE = /^func\s*\(\s*\w+\s+\*?(\w+)\s*\)\s*(\w+)\s*\(([^)]*)\)\s*revel\.Result/m
MARKER = "github.com/revel/revel"
ROUTE_RE = /\A(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|WS|\*)\s+(\S+)\s+(\S+)/
TAGGER = "revel_analyzer"

Class methods

tech_name
Source

Instance methods

analyze
Source
tech

Instance-side view of the same declaration. The per-file rescues live on this base class, which has no way to name the analyzer that is running inside them, so a skipped file could not be attributed to a tech. Deriving it from analyzer_for keeps the name written exactly once.

Source