The application object is the entry point of the code model, the application object has many fields to get the code elements, the metrics, the diff, the rules, the quality gates and the scanyp queries.
Name:
The name of the application
BaselineApplication:
The application object that represents the baseline.
IsBaselineDefined:
Flag to check if a baseline was defined.
Projects:
To get the project collection of the parsed application.
Methods:
To get all the methods of the application
Types:
To get all the types of the application, a type could be a class, a struct, an enum or a generic class.
Fields:
To get all the fields of the application.
Issues:
To get all the issues of the application
Rules:
To get all the rules checked for this application.
Metrics:
To get all the metrics of this application
Clones:
To get all the clones detected in this application
ClonedLines :
To get the number of lines cloned in this application
ClonedTokens:
To get the number of tokens cloned in this application
Language:
To get the programming language of this application.
QualityGates:
To get the quality gate collection of this application.
Namespaces:
To get the namespace collection of this application
MaintainabilityIndex:
To get the maintainability metric of this application.
NbLinesOfComment:
To get the number of lines of comment of the application
NbLinesOfCode:
To get the number of lines of code of the application
CoverageAvailable:
Flag to check if the coverage data are available
PercentageCoverage:
To get the coverage percent for this application
NbLinesOfCodeCovered:
To get the number of covered lines of code.
NbLinesOfCodeNotCovered:
To get the number of not covered lines of code.
ImportedIssues:
To get the imported issues from external static analysis tools.
SourceFiles:
To get all the source files of the application
CodeWasChanged:
Flag to check if a code was changed
CodeWasAdded:
Flag to check if a code element was added
Debt:
To get the technical debt of the application
Scores:
To get the scores calculated for this application
DebtRank:
To get the debt rank of this application, it could A,B,C,D or E.
DebtRatio:
To get the debt percent for this application
AnalysisDate:
To get the analysis date
MyProjects:
To get only my projects, third party projects are excluded
MyNamespaces:
To get only my namespaces, third party namespaces are excluded
MyTypes:
To get only my types, third party types are excluded.
MyMethods:
To get only my methods.
MyFields:
To get only my fields.
MethodsAndFields:
To get the methods and fields of the application.
ThirdProjects:
To get the third party projects.
ThirdNamespaces:
To get the third party namespaces.
ThirdTypes:
To get the third party types.
ThirdMethods:
To get the third party methods.
ThirdFields:
To get the third party fields.
TotalRating:
To get the total rating of the application.
ImplementationRating:
To get the implementation rating.
DesignRating:
To get the design rating.
BugFreeRating:
To get the bug free rating