Skip to content
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (31 sloc) 1.1 KB
#Number of objects
#Codeunit 80
$CU80 = $Model.NAVObjects | where {($_.ParentObjectType -eq 'Codeunit' ) -and ($_.ParentObjectID -eq 80)}
#Number of procedures in Codeunit 80
#Stats on CyclomaticComplexity in CU80
$CU80.Procedures.CyclomaticComplexity | measure -Average -Maximum -Minimum
#Lines of code in Codeunit 80
#Where Codeunit 80 is used
#All Obsolete Fields in the base app
$Model.NAVObjects.ChildElements | where ObsoleteState -eq 'Removed' | select FullName
$CU80.Procedures[0].CodeModel.CodeTokens | ft
$CU80.Procedures[0].CodeModel.CodeTokens | Where {($_.Token -like '*if') -or ($_.Token -like '*repeat')} | Measure
$model.EventPublishers | measure
You can’t perform that action at this time.