IScriptCodeAnalysis

class

IScriptCodeAnalysis.

IScriptCodeAnalysis

Bases: object

Interface that describes the script engine of code analysis

metrics

Retrieves the metrics scripting API.

conventions

Retrieves the conventions scripting API.

configuration

Retrieves the code analysis configuration.

query_repository

Retrieves the query repository scripting API.

cloud_connector

Retrieves the cloud connector.

portal

Retrieves the Machine Advisor Code Analysis portal API.

clear

Clears the Dependency Models (Analysis Controller and Query Engines).

perform_full_analysis

Perform full code analysis.

store_ttl

filename

Stores analysis results as ttl file.

Parameters

filename (string) -- The filename.

get_analysis_data

Retrieves the analysis data scripting API.

analyze

Perform code analysis.

Returns

Analysis was successful.

Return type

bool

Note

Alternative for perform_full_analysis() API.

store_distributed_ttl

filename

Stores analysis results as distributed ttl file.

Parameters

filename (string) -- The filename.

import_distributed_ttl

filename

allow_conflicting_overwrite=False

Imports a stored distributed ttl file into dependency model.

Parameters
  • filename (string) -- The filename.

  • allow_conflicting_overwrite (bool) -- Sets that in conflict situations (same main namespace) the model is imported anyway.