service

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComplexityServiceImpl

type ComplexityServiceImpl struct {
	// contains filtered or unexported fields
}

ComplexityServiceImpl implements the ComplexityService interface

func NewComplexityService

func NewComplexityService(cfg *config.ComplexityConfig) *ComplexityServiceImpl

NewComplexityService creates a new complexity service implementation

func (*ComplexityServiceImpl) Analyze

Analyze performs complexity analysis on multiple files

func (*ComplexityServiceImpl) AnalyzeFile

AnalyzeFile analyzes a single JavaScript/TypeScript file

type ConfigurationLoaderImpl

type ConfigurationLoaderImpl struct{}

ConfigurationLoaderImpl implements the ConfigurationLoader interface

func NewConfigurationLoader

func NewConfigurationLoader() *ConfigurationLoaderImpl

NewConfigurationLoader creates a new configuration loader service

func (*ConfigurationLoaderImpl) FindDefaultConfigFile

func (c *ConfigurationLoaderImpl) FindDefaultConfigFile() string

FindDefaultConfigFile searches for a default configuration file

func (*ConfigurationLoaderImpl) LoadConfig

LoadConfig loads configuration from the specified path

func (*ConfigurationLoaderImpl) LoadDefaultConfig

func (c *ConfigurationLoaderImpl) LoadDefaultConfig() *domain.ComplexityRequest

LoadDefaultConfig loads the default configuration, first checking for jscan.config.json

func (*ConfigurationLoaderImpl) MergeConfig

MergeConfig merges CLI flags with configuration file

func (*ConfigurationLoaderImpl) ValidateConfig

func (c *ConfigurationLoaderImpl) ValidateConfig(req *domain.ComplexityRequest) error

ValidateConfig validates the configuration

Jump to

Keyboard shortcuts

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