FileAnalyzer

com.bitblends.scalametrics.analyzer.FileAnalyzer
object FileAnalyzer extends Analyzer

The FileAnalyzer specializes in analyzing characteristics of source files within a project. It extracts file-level metrics, such as package name, lines of code, and file size, and updates the analysis context with these details.

This analyzer primarily works at the file level and serves as the entry point for per-file metadata gathering. It extends the Analyzer class and overrides its behavior to tailor the analysis for file-level insights.

Attributes

Graph
Supertypes
trait Analyzer
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

override def name: String

Returns the name of this analyzer, identifying its specialization.

Returns the name of this analyzer, identifying its specialization.

Attributes

Returns

A string representing the name of the analyzer, which is "file" for the FileAnalyzer.

Definition Classes
override def run(ctx: AnalysisCtx): AnalysisCtx

Executes the analysis logic of this analyzer on the provided context and returns an updated context.

Executes the analysis logic of this analyzer on the provided context and returns an updated context.

Value parameters

ctx

The initial analysis context containing the source file and accumulated metrics or annotations.

Attributes

Returns

A new AnalysisCtx instance with updates or modifications as a result of the analysis performed.

Definition Classes