DscannerComponent.getConfig

Gets the used D-Scanner config, optionally reading from a given dscanner.ini file.

class DscannerComponent
StaticAnalysisConfig
getConfig
(
string ini = "dscanner.ini"
,
bool skipWorkspacedPaths = false
,
const StaticAnalysisConfig defaultConfig = StaticAnalysisConfig.init
)

Parameters

ini string

an ini to load. Only reading from it if it exists. If this is relative, this function will try both in getcwd and in the instance.cwd, if an instance is set.

skipWorkspacedPaths bool

if true, don't attempt to override the given ini with workspace-d user configs.

defaultConfig StaticAnalysisConfig

default D-Scanner configuration to use if no user config exists (workspace-d specific or ini argument)

Meta