NDepend Report Build Summary
|
[ For beginners: Where to start ]
[ Quick tips ]
[ NDepend site ]
The present HTML report is a summary of data gathered by the analysis. It is recommended to use the NDepend interactive UI capabilities to make the most of NDepend by mastering all aspects of your code. |
| Compare with project {ccnet v1.5 RC1} most recent analysis (analysis made on 2012 May - 17 Thursday 19:50) | ||
| Loaded! Code Coverage metrics, Queries and Rules relative to code Coverage, can be used. |
Diagrams |
Application Metrics | Note: Further Application Statistics are available. |
Third Party Usage | Percentage … |
| Rules summary |
|
» Number of Rules or Queries with Error (syntax error, exception thrown, time-out): 0» Number of Rules violated : 93
Summary of Rules violated
| |||||||||
|
Application Statistics
| Stat | # Occurences | Avg | StdDev | Max |
|---|---|---|---|---|
| Stat | # Occurences | Avg | StdDev | Max |
| Properties on interfaces | 171 interfaces | 1.29 | 3.76 | 32 properties on ThoughtWorks.CruiseControl.Core.IIntegrationResult |
| Methods on interfaces | 171 interfaces | 5.23 | 9.28 | 70 methods on ThoughtWorks.CruiseControl.Remote.ICruiseServer |
| Arguments on methods on interfaces | 894 methods | 0.94 | 0.95 | 7 arguments on ThoughtWorks.CruiseControl.WebDashboard.Dashboard.IProjectGrid.GenerateProjectGridRows(ProjectStatusOnServer[],String,ProjectGridSortColumn,Boolean,String,ICruiseUrlBuilder,Translations) |
| Public properties on classes | 889 Classes | 1.6 | 3.39 | 35 public properties on ThoughtWorks.CruiseControl.Core.IntegrationResult |
| Public methods on classes | 889 classes | 6.35 | 8.34 | 75 public methods on ThoughtWorks.CruiseControl.Core.Project |
| Arguments on public methods on classes | 5,643 methods | 0.82 | 0.95 | 13 arguments on ThoughtWorks.CruiseControl.Remote.ProjectStatus..ctor(String,String,ProjectActivity,IntegrationStatus,ProjectIntegratorState,String,DateTime,String,String,DateTime,String,String,Int32) |
| IL instructions in non-abstract methods | 7,366 methods | 25.65 | 61.49 | 1856 IL instructions in Validator.MainForm.InitializeComponent() |
| Cyclomatic complexity on non abstract Methods | 7,366 Methods | 2.09 | 2.98 | CC = 76 for ThoughtWorks.CruiseControl.Core.Util.PathUtils.Match(String,String,Boolean) |
Assemblies Metrics
If you wish to define thresholds on assemblies' Code Metrics, consider writing some Rules.
Clicking column header arrows sorts values.
Clicking column header title text redirect to the online Code Metric definition.
Clicking column header arrows sorts values.
Clicking column header title text redirect to the online Code Metric definition.
| Assemblies | # lines of code | # IL instruction | # Types | # Abstract Types | # lines of comment | % Comment | % Coverage | Afferent Coupling | Efferent Coupling | Relational Cohesion | Instability | Abstractness | Distance |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Assemblies | # lines of code | # IL instruction | # Types | # Abstract Types | # lines of comment | % Comment | % Coverage | Afferent Coupling | Efferent Coupling | Relational Cohesion | Instability | Abstractness | Distance |
| ThoughtWorks.CruiseControl.Remote v1.5.7256.1 | 2903 | 19307 | 153 | 19 | 4995 | 63 | 50 | 276 | 146 | 3.42 | 0.35 | 0.12 | 0.37 |
| Objection v1.5.7256.1 | 172 | 1266 | 14 | 6 | 17 | 8 | 83 | 8 | 28 | 1.43 | 0.78 | 0.43 | 0.15 |
| ThoughtWorks.CruiseControl.Core v1.5.7256.1 | 14002 | 95579 | 528 | 99 | 17908 | 56 | 71 | 116 | 453 | 4.12 | 0.8 | 0.19 | 0.01 |
| ThoughtWorks.CruiseControl.WebDashboard v1.5.7256.1 | 3170 | 22071 | 209 | 41 | 2116 | 40 | 28 | 0 | 218 | 4.6 | 1 | 0.2 | 0.14 |
| ThoughtWorks.CruiseControl.CCTrayLib v1.5.7256.1 | 6178 | 38763 | 176 | 24 | 2108 | 25 | 43 | 1 | 372 | 3.18 | 1 | 0.14 | 0.1 |
| cctray v1.5.7256.1 | 51 | 240 | 2 | 0 | 18 | 26 | - | 0 | 46 | 1 | 1 | 0 | 0 |
| ccnet v1.5.7256.1 | 81 | 527 | 5 | 0 | 46 | 36 | - | 0 | 46 | 1.6 | 1 | 0 | 0 |
| ccservice v1.5.7256.1 | 118 | 769 | 3 | 0 | 39 | 24 | - | 0 | 58 | 0.67 | 1 | 0 | 0 |
| CCValidator v1.5.7256.1 | 1226 | 8212 | 21 | 1 | 695 | 36 | - | 0 | 230 | 1.33 | 1 | 0.05 | 0.03 |
| CCCmd v1.0.0.0 | 141 | 855 | 2 | 0 | 17 | 10 | - | 0 | 42 | 1 | 1 | 0 | 0 |
| ThoughtWorks.CruiseControl.Core.Extensions v1.5.7256.1 | 24 | 172 | 3 | 1 | 64 | 72 | - | 0 | 22 | 1 | 1 | 0.33 | 0.24 |
| ThoughtWorks.CruiseControl.Remote.Extensions v1.5.7256.1 | 61 | 449 | 7 | 2 | 118 | 65 | - | 0 | 41 | 1.71 | 1 | 0.29 | 0.2 |
| ThoughtWorks.CruiseControl.MSBuild v1.5.7256.1 | 97 | 764 | 3 | 0 | 40 | 29 | - | 0 | 48 | 1 | 1 | 0 | 0 |
Types Metrics : Code Quality
For a particular Code Metric defined for types, values in red represent the 15% highest values.
If you wish to define thresholds on types' Code Metrics, consider writing some Rule.
Clicking column header arrows sorts values.
Clicking column header title text redirect to the online Code Metric definition.
If you wish to define thresholds on types' Code Metrics, consider writing some Rule.
Clicking column header arrows sorts values.
Clicking column header title text redirect to the online Code Metric definition.
If the code base analyzed has too many types, NDepend doesn't list Types Metrics to avoid a too big report. The section Types Metrics can be activated by unchecking the option:
NDepend Project Properties > Report > Avoid too big report for large code base > Hide section Types Metrics if...
It is recommended to use the NDepend interactive UI capabilities to browse large applications.
NDepend Project Properties > Report > Avoid too big report for large code base > Hide section Types Metrics if...
It is recommended to use the NDepend interactive UI capabilities to browse large applications.
| Type Name | Type Rank | # Lines Of Code | # IL Instructions | # Lines Of Comment | % Comment | Cyclomatic Complexity | IL Cyclomatic Complexity | % Coverage | Afferent Coupling | Efferent Coupling | Type Namespace |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Type Name | Type Rank | # Lines Of Code | # IL Instructions | # Lines Of Comment | Percentage Comment | Cyclomatic Complexity | IL Cyclomatic Complexity | % coverage | Afferent Coupling | Efferent Coupling | Type Namespace |
Types Metrics : Code Members and Inheritance
| Type Name | # Instance Methods | Nb Static Methods | Nb Properties | # Fields | # Children Classes | Depth Of Inheritance Tree | Type Namespace |
|---|---|---|---|---|---|---|---|
| Type Name | Nb Instance Methods | Nb Static Methods | Nb Properties | Nb Fields | Nb Children Classes | Depth Of Inheritance Tree | Type Namespace |
Types Metrics : Lack Of Cohesion Of Methods and Association Between Classes
| Type Name | Lack Of Cohesion Of Methods | Lack Of Cohesion Of Methods HS | Association Between Classes | Type Namespace |
|---|---|---|---|---|
| Type Name | Lack Of Cohesion Of Methods | Lack Of Cohesion Of Methods HS | Association Between Classes | Type Namespace |
Namespaces Metrics
If you wish to define thresholds on namespaces' Code Metrics, consider writing some Rules.
Clicking column header arrows sorts values.
Clicking column header title text redirect to the online Code Metric definition.
Clicking column header arrows sorts values.
Clicking column header title text redirect to the online Code Metric definition.
| Namespaces | # lines of code | # IL instruction | # Types | # lines of comment | % Comment | % Coverage | Afferent Coupling | Efferent Coupling |
|---|---|---|---|---|---|---|---|---|
| Namespaces | # lines of code | # IL instruction | # Types | # lines of comment | % Comment | % Coverage | Afferent Coupling | Efferent Coupling |
| ThoughtWorks.CruiseControl.Remote.dll::ThoughtWorks.CruiseControl.Core | 32 | 232 | 5 | 3 | 8 | 100 | 21 | 2 |
| ThoughtWorks.CruiseControl.Remote.dll::ThoughtWorks.CruiseControl.Remote | 1179 | 7512 | 58 | 2620 | 68 | 56 | 36 | 24 |
| ThoughtWorks.CruiseControl.Remote.Security | 117 | 707 | 14 | 369 | 75 | 77 | 7 | 4 |
| ThoughtWorks.CruiseControl.Remote.Events | 27 | 146 | 7 | 88 | 76 | 100 | 4 | 2 |
| ThoughtWorks.CruiseControl.Remote.Messages | 272 | 1580 | 32 | 618 | 69 | 79 | 10 | 10 |
| ThoughtWorks.CruiseControl.Remote.Monitor | 578 | 4219 | 18 | 606 | 51 | 56 | 0 | 8 |
| ThoughtWorks.CruiseControl.Remote.Parameters | 232 | 1551 | 6 | 544 | 70 | 49 | 12 | 9 |
| ThoughtWorks.CruiseControl.Remote.Mono | 466 | 3360 | 13 | 6 | 1 | - | 4 | 13 |
| Objection | 169 | 1248 | 13 | 3 | 1 | 83 | 6 | 4 |
| Objection.NetReflectorPlugin | 3 | 18 | 1 | 0 | 0 | 100 | 1 | 3 |
| ThoughtWorks.CruiseControl.Core.dll::ThoughtWorks.CruiseControl.Core | 2418 | 16868 | 100 | 1994 | 45 | 67 | 24 | 42 |
| ThoughtWorks.CruiseControl.Core.Tasks | 2265 | 17126 | 69 | 3999 | 63 | 62 | 7 | 26 |
| ThoughtWorks.CruiseControl.Core.Triggers | 244 | 1544 | 8 | 438 | 64 | 83 | 2 | 12 |
| ThoughtWorks.CruiseControl.Core.Queues | 223 | 1660 | 11 | 272 | 54 | 92 | 1 | 13 |
| ThoughtWorks.CruiseControl.Core.Logging | 62 | 496 | 4 | 3 | 4 | 87 | 1 | 7 |
| ThoughtWorks.CruiseControl.Core.Label | 196 | 1386 | 10 | 367 | 65 | 85 | 1 | 17 |
| ThoughtWorks.CruiseControl.Core.dll::ThoughtWorks.CruiseControl.Core.Extensions | 130 | 816 | 5 | 74 | 36 | 33 | 0 | 9 |
| ThoughtWorks.CruiseControl.Core.State | 93 | 648 | 4 | 125 | 57 | 98 | 3 | 12 |
| ThoughtWorks.CruiseControl.Core.Util | 1785 | 11882 | 82 | 1422 | 44 | 66 | 30 | 36 |
| ThoughtWorks.CruiseControl.Core.Util.Log4NetTrace | 34 | 270 | 3 | 165 | 82 | 38 | 1 | 7 |
| ThoughtWorks.CruiseControl.Core.Sourcecontrol | 2963 | 20009 | 70 | 3634 | 55 | 71 | 5 | 26 |
| ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic | 398 | 2784 | 10 | 1256 | 75 | 64 | 0 | 16 |
| ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mercurial | 153 | 879 | 6 | 103 | 40 | 92 | 0 | 10 |
| ThoughtWorks.CruiseControl.Core.Sourcecontrol.Perforce | 267 | 1703 | 8 | 186 | 41 | 89 | 0 | 13 |
| ThoughtWorks.CruiseControl.Core.Sourcecontrol.BitKeeper | 157 | 937 | 3 | 99 | 38 | 90 | 0 | 10 |
| ThoughtWorks.CruiseControl.Core.Security | 739 | 4420 | 35 | 1465 | 66 | 68 | 3 | 20 |
| ThoughtWorks.CruiseControl.Core.Security.Auditing | 83 | 558 | 5 | 136 | 62 | 96 | 1 | 8 |
| ThoughtWorks.CruiseControl.Core.Config | 271 | 1837 | 29 | 304 | 52 | 91 | 9 | 24 |
| ThoughtWorks.CruiseControl.Core.Config.Preprocessor | 179 | 1224 | 11 | 175 | 49 | 69 | 2 | 15 |
| ThoughtWorks.CruiseControl.Core.Reporting.Dashboard.Navigation | 104 | 754 | 13 | 15 | 12 | 73 | 21 | 4 |
| ThoughtWorks.CruiseControl.Core.Publishers | 1002 | 6386 | 28 | 1088 | 52 | 83 | 3 | 26 |
| ThoughtWorks.CruiseControl.Core.Publishers.Statistics | 236 | 1392 | 14 | 412 | 63 | 72 | 1 | 21 |
| 0 | 0 | 1 | - | - | - | 3 | 1 | |
| ThoughtWorks.CruiseControl.WebDashboard.dll::ThoughtWorks.CruiseControl.Remote | 4 | 27 | 1 | 9 | 69 | - | 2 | 3 |
| ThoughtWorks.CruiseControl.WebDashboard.ServerConnection | 208 | 1429 | 9 | 205 | 49 | 45 | 10 | 13 |
| ThoughtWorks.CruiseControl.WebDashboard.IO | 83 | 558 | 11 | 44 | 34 | 48 | 17 | 15 |
| ThoughtWorks.CruiseControl.WebDashboard.Configuration | 91 | 594 | 9 | 21 | 18 | 16 | 7 | 18 |
| ThoughtWorks.CruiseControl.WebDashboard.Resources | 63 | 419 | 1 | 62 | 49 | 23 | 5 | 10 |
| ThoughtWorks.CruiseControl.WebDashboard.MVC | 170 | 1117 | 16 | 11 | 6 | 32 | 18 | 11 |
| ThoughtWorks.CruiseControl.WebDashboard.MVC.Cruise | 68 | 421 | 13 | 5 | 6 | 77 | 14 | 10 |
| ThoughtWorks.CruiseControl.WebDashboard.MVC.ASPNET | 17 | 119 | 2 | 1 | 5 | - | 0 | 8 |
| ThoughtWorks.CruiseControl.WebDashboard.MVC.View | 49 | 348 | 5 | 1 | 2 | 69 | 9 | 13 |
| ThoughtWorks.CruiseControl.WebDashboard.Dashboard | 691 | 5149 | 57 | 130 | 15 | 48 | 17 | 34 |
| ThoughtWorks.CruiseControl.WebDashboard.Dashboard.Actions | 48 | 371 | 4 | 32 | 40 | 64 | 3 | 15 |
| ThoughtWorks.CruiseControl.WebDashboard.Dashboard.GenericPlugins | 56 | 424 | 5 | 110 | 66 | 78 | 1 | 12 |
| ThoughtWorks.CruiseControl.WebDashboard.Dashboard.ActionDecorators | 29 | 322 | 2 | 4 | 12 | - | 1 | 11 |
| ThoughtWorks.CruiseControl.WebDashboard.Plugins.ServerReport | 233 | 1516 | 9 | 156 | 40 | 7 | 2 | 19 |
| ThoughtWorks.CruiseControl.WebDashboard.Plugins.ProjectReport | 376 | 2687 | 18 | 269 | 41 | 2 | 1 | 27 |
| ThoughtWorks.CruiseControl.WebDashboard.Plugins.Security | 70 | 386 | 4 | 24 | 25 | - | 1 | 13 |
| ThoughtWorks.CruiseControl.WebDashboard.Plugins.Administration | 491 | 3358 | 12 | 369 | 42 | - | 0 | 20 |
| ThoughtWorks.CruiseControl.WebDashboard.Plugins.FarmReport | 125 | 711 | 6 | 11 | 8 | 38 | 2 | 17 |
| ThoughtWorks.CruiseControl.WebDashboard.Plugins.BuildReport | 115 | 824 | 10 | 45 | 28 | 30 | 6 | 20 |
| ThoughtWorks.CruiseControl.WebDashboard.Plugins.ViewAllBuilds | 6 | 45 | 1 | 10 | 62 | 16 | 1 | 7 |
| ThoughtWorks.CruiseControl.WebDashboard.Plugins.DeleteProject | 39 | 336 | 5 | 38 | 49 | 84 | 0 | 7 |
| ThoughtWorks.CruiseControl.WebDashboard.Plugins.Statistics | 99 | 678 | 4 | 36 | 26 | 57 | 1 | 15 |
| ThoughtWorks.CruiseControl.WebDashboard.Plugins.CCTray | 30 | 181 | 2 | 0 | 0 | - | 0 | 9 |
| ThoughtWorks.CruiseControl.WebDashboard.Plugins.AddProject | 6 | 31 | 1 | 397 | 98 | - | 0 | 1 |
| ThoughtWorks.CruiseControl.WebDashboard.Plugins.RSS | 3 | 20 | 1 | 0 | 0 | - | 1 | 6 |
| ThoughtWorks.CruiseControl.CCTrayLib | 146 | 896 | 16 | 44 | 23 | 47 | 6 | 15 |
| ThoughtWorks.CruiseControl.CCTrayLib.Presentation | 4428 | 27539 | 55 | 1270 | 22 | 41 | 2 | 30 |
| ThoughtWorks.CruiseControl.CCTrayLib.Properties | 13 | 76 | 1 | 14 | 51 | - | 1 | 9 |
| ThoughtWorks.CruiseControl.CCTrayLib.Monitoring | 739 | 4877 | 57 | 369 | 33 | 57 | 7 | 23 |
| ThoughtWorks.CruiseControl.CCTrayLib.Configuration | 236 | 1444 | 17 | 60 | 20 | 86 | 7 | 10 |
| ThoughtWorks.CruiseControl.CCTrayLib.X10 | 317 | 2015 | 19 | 223 | 41 | 34 | 1 | 11 |
| ThoughtWorks.CruiseControl.CCTrayLib.Security | 196 | 1200 | 7 | 64 | 24 | - | 0 | 10 |
| ThoughtWorks.CruiseControl.CCTrayLib.Speech | 53 | 345 | 2 | 7 | 11 | 49 | 1 | 9 |
| ThoughtWorks.CruiseControl.CCTrayLib.Growl | 50 | 371 | 2 | 0 | 0 | 36 | 1 | 12 |
| ThoughtWorks.CruiseControl.CCTray | 51 | 240 | 2 | 4 | 7 | - | 0 | 14 |
| ThoughtWorks.CruiseControl.Console | 81 | 527 | 5 | 32 | 28 | - | 0 | 14 |
| ThoughtWorks.CruiseControl.Service | 118 | 769 | 3 | 30 | 20 | - | 0 | 20 |
| Validator | 1197 | 8038 | 19 | 648 | 35 | - | 0 | 33 |
| Validator.Properties | 29 | 174 | 2 | 14 | 32 | - | 1 | 10 |
| ThoughtWorks.CruiseControl.CCCmd | 141 | 855 | 2 | 0 | 0 | - | 0 | 9 |
| ThoughtWorks.CruiseControl.Core.Extensions.dll::ThoughtWorks.CruiseControl.Core.Extensions | 24 | 172 | 3 | 50 | 67 | - | 0 | 7 |
| ThoughtWorks.CruiseControl.Remote.Extensions.dll::ThoughtWorks.CruiseControl.Remote | 61 | 449 | 7 | 100 | 62 | - | 0 | 10 |
| ThoughtWorks.CruiseControl.MSBuild | 97 | 764 | 3 | 24 | 19 | - | 0 | 4 |
| Code Quality |
|
|
| Critical Rule warning: Types too big - critical |
// <Name>Types too big - critical</Name>
warnif count > 0 from t in JustMyCode.Types where
t.NbLinesOfCode > 500 ||
t.NbILInstructions > 3000
orderby t.NbLinesOfCode descending
select new { t, t.NbLinesOfCode, t.NbILInstructions,
t.Methods, t.Fields }
// Types where NbLinesOfCode > 500 are extremely complex
// and should be split in a smaller group of types.
// See the definition of the NbLinesOfCode metric here
// http://www.ndepend.com/Metrics.aspx#NbLinesOfCode
// In average, a line of code is compiled to around
// 6 IL instructions. This is why the code metric
// NbILInstructions is used here, in case the
// code metric NbLinesOfCode is un-available because
// of missing assemblies corresponding PDB files.
// See the definition of the NbILInstructions metric here
// http://www.ndepend.com/Metrics.aspx#NbILInstructions
warnif count > 0 from t in JustMyCode.Types where
t.NbLinesOfCode > 500 ||
t.NbILInstructions > 3000
orderby t.NbLinesOfCode descending
select new { t, t.NbLinesOfCode, t.NbILInstructions,
t.Methods, t.Fields }
// Types where NbLinesOfCode > 500 are extremely complex
// and should be split in a smaller group of types.
// See the definition of the NbLinesOfCode metric here
// http://www.ndepend.com/Metrics.aspx#NbLinesOfCode
// In average, a line of code is compiled to around
// 6 IL instructions. This is why the code metric
// NbILInstructions is used here, in case the
// code metric NbLinesOfCode is un-available because
// of missing assemblies corresponding PDB files.
// See the definition of the NbILInstructions metric here
// http://www.ndepend.com/Metrics.aspx#NbILInstructions
4 types matched
| types | # lines of code (LOC) | # IL instructions | Methods | Fields | Full Name |
|---|---|---|---|---|---|
| types | # lines of code (LOC) | # IL instructions | Methods | Fields | Full Name |
| MainForm | 638 | 4 360 | 43 methods | 51 fields | Validator.MainForm |
| MainForm | 529 | 3 380 | 52 methods | 62 fields | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm |
| Project | 512 | 3 294 | 93 methods | 26 fields | ThoughtWorks.CruiseControl.Core.Project |
| CruiseServer | 407 | 3 055 | 71 methods | 19 fields | ThoughtWorks.CruiseControl.Core.CruiseServer |
Statistics
| Stat | # lines of code (LOC) | # IL instructions | Methods | Fields |
|---|---|---|---|---|
| Sum: | 2 086 | 14 089 | 0 | 0 |
| Average: | 521.5 | 3 522 | 0 | 0 |
| Minimum: | 407 | 3 055 | 0 | 0 |
| Maximum: | 638 | 4 360 | 0 | 0 |
| Standard deviation: | 81.898 | 498.12 | 0 | 0 |
| Variance: | 6 707 | 248 119 | 0 | 0 |
| Critical Rule warning: Methods too complex - critical |
// <Name>Methods too complex - critical</Name>
warnif count > 0 from m in JustMyCode.Methods where
m.ILCyclomaticComplexity > 40 &&
m.ILNestingDepth > 5
orderby m.ILCyclomaticComplexity descending,
m.ILNestingDepth descending
select new { m, m.ILCyclomaticComplexity, m.ILNestingDepth }
// Methods with ILCyclomaticComplexity > 40 and ILNestingDepth > 4
// are really too complex and should be split
// in smaller methods, or even types.
// See the definition of the ILCyclomaticComplexity metric here
// http://www.ndepend.com/Metrics.aspx#ILCC
// See the definition of the ILNestingDepth metric here
// http://www.NDepend.com/Metrics.aspx#ILNestingDepth
warnif count > 0 from m in JustMyCode.Methods where
m.ILCyclomaticComplexity > 40 &&
m.ILNestingDepth > 5
orderby m.ILCyclomaticComplexity descending,
m.ILNestingDepth descending
select new { m, m.ILCyclomaticComplexity, m.ILNestingDepth }
// Methods with ILCyclomaticComplexity > 40 and ILNestingDepth > 4
// are really too complex and should be split
// in smaller methods, or even types.
// See the definition of the ILCyclomaticComplexity metric here
// http://www.ndepend.com/Metrics.aspx#ILCC
// See the definition of the ILNestingDepth metric here
// http://www.NDepend.com/Metrics.aspx#ILNestingDepth
1 methods matched
| method | IL Cyclomatic Complexity (ILCC) | IL Nesting Depth | Full Name |
|---|---|---|---|
| method | IL Cyclomatic Complexity (ILCC) | IL Nesting Depth | Full Name |
| HandleServerSnapshotChange(Object,ServerSnapshotChangedEventArgs) | 43 | 6 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainFormController .HandleServerSnapshotChange(Object,ServerSnapshotChangedEventArgs) |
Statistics
| Stat | IL Cyclomatic Complexity (ILCC) | IL Nesting Depth |
|---|---|---|
| Sum: | 43 | 6 |
| Average: | 43 | 6 |
| Minimum: | 43 | 6 |
| Maximum: | 43 | 6 |
| Standard deviation: | 0 | 0 |
| Variance: | 0 | 0 |
| Critical Rule warning: Methods with too many parameters - critical |
// <Name>Methods with too many parameters - critical</Name>
warnif count > 0 from m in JustMyCode.Methods where
m.NbParameters > 8
orderby m.NbParameters descending
select new { m, m.NbParameters }
// Methods with more than 8 parameters might be painful to call
// and might degrade performance. You should prefer using
// additional properties/fields to the declaring type to
// handle numerous states. Another alternative is to provide
// a class or structure dedicated to handle arguments passing
// (for example see the class System.Diagnostics.ProcessStartInfo
// and the method System.Diagnostics.Process.Start(ProcessStartInfo))
// See the definition of the NbParameters metric here
// http://www.ndepend.com/Metrics.aspx#NbParameters
warnif count > 0 from m in JustMyCode.Methods where
m.NbParameters > 8
orderby m.NbParameters descending
select new { m, m.NbParameters }
// Methods with more than 8 parameters might be painful to call
// and might degrade performance. You should prefer using
// additional properties/fields to the declaring type to
// handle numerous states. Another alternative is to provide
// a class or structure dedicated to handle arguments passing
// (for example see the class System.Diagnostics.ProcessStartInfo
// and the method System.Diagnostics.Process.Start(ProcessStartInfo))
// See the definition of the NbParameters metric here
// http://www.ndepend.com/Metrics.aspx#NbParameters
2 methods matched
| methods | # Parameters | Full Name |
|---|---|---|
| methods | # Parameters | Full Name |
| .ctor(String,String,ProjectActivity,IntegrationStatus ,ProjectIntegratorState,String,DateTime,String,String,DateTime,String ,String,Int32) | 13 | ThoughtWorks.CruiseControl.Remote.ProjectStatus..ctor(String,String ,ProjectActivity,IntegrationStatus,ProjectIntegratorState,String ,DateTime,String,String,DateTime,String,String,Int32) |
| .ctor(ICruiseRequest,IBuildNameRetriever,IRecentBuildsViewBuilder ,IPluginLinkCalculator,IVelocityViewGenerator,ILinkFactory ,ILinkListFactory,IFarmService,IFingerprintFactory) | 9 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.SideBarViewBuilder. .ctor(ICruiseRequest,IBuildNameRetriever,IRecentBuildsViewBuilder ,IPluginLinkCalculator,IVelocityViewGenerator,ILinkFactory ,ILinkListFactory,IFarmService,IFingerprintFactory) |
Statistics
| Stat | # Parameters |
|---|---|
| Sum: | 22 |
| Average: | 11 |
| Minimum: | 9 |
| Maximum: | 13 |
| Standard deviation: | 2 |
| Variance: | 4 |
| Rule warning: Quick summary of methods to refactor |
// <Name>Quick summary of methods to refactor</Name>
warnif count > 0 from m in JustMyCode.Methods where
// Code Metrics' definitions
m.NbLinesOfCode > 30 || // http://www.ndepend.com/Metrics.aspx#NbLinesOfCode
m.NbILInstructions > 200 || // http://www.ndepend.com/Metrics.aspx#NbILInstructions
m.CyclomaticComplexity > 20 || // http://www.ndepend.com/Metrics.aspx#CC
m.ILCyclomaticComplexity > 50 || // http://www.ndepend.com/Metrics.aspx#ILCC
m.ILNestingDepth > 5 || // http://www.ndepend.com/Metrics.aspx#ILNestingDepth
m.NbParameters > 5 || // http://www.ndepend.com/Metrics.aspx#NbParameters
m.NbVariables > 8 || // http://www.ndepend.com/Metrics.aspx#NbVariables
m.NbOverloads > 6 // http://www.ndepend.com/Metrics.aspx#NbOverloads
select new { m, m.NbLinesOfCode, m.NbILInstructions, m.CyclomaticComplexity,
m.ILCyclomaticComplexity, m.ILNestingDepth,
m.NbParameters, m.NbVariables, m.NbOverloads }
warnif count > 0 from m in JustMyCode.Methods where
// Code Metrics' definitions
m.NbLinesOfCode > 30 || // http://www.ndepend.com/Metrics.aspx#NbLinesOfCode
m.NbILInstructions > 200 || // http://www.ndepend.com/Metrics.aspx#NbILInstructions
m.CyclomaticComplexity > 20 || // http://www.ndepend.com/Metrics.aspx#CC
m.ILCyclomaticComplexity > 50 || // http://www.ndepend.com/Metrics.aspx#ILCC
m.ILNestingDepth > 5 || // http://www.ndepend.com/Metrics.aspx#ILNestingDepth
m.NbParameters > 5 || // http://www.ndepend.com/Metrics.aspx#NbParameters
m.NbVariables > 8 || // http://www.ndepend.com/Metrics.aspx#NbVariables
m.NbOverloads > 6 // http://www.ndepend.com/Metrics.aspx#NbOverloads
select new { m, m.NbLinesOfCode, m.NbILInstructions, m.CyclomaticComplexity,
m.ILCyclomaticComplexity, m.ILNestingDepth,
m.NbParameters, m.NbVariables, m.NbOverloads }
105 methods matched
The following list of methods is truncated and contains only the first 100 methods of the 105 methods matched. All matched methods could be listed in the report by unchecking the option:
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched methods.
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched methods.
| methods | # lines of code (LOC) | # IL instructions | Cyclomatic Complexity (CC) | IL Cyclomatic Complexity (ILCC) | IL Nesting Depth | # Parameters | # Variables | # Overloads | Full Name |
|---|---|---|---|---|---|---|---|---|---|
| methods | # lines of code (LOC) | # IL instructions | Cyclomatic Complexity (CC) | IL Cyclomatic Complexity (ILCC) | IL Nesting Depth | # Parameters | # Variables | # Overloads | Full Name |
| .ctor(String,String,ProjectActivity,IntegrationStatus ,ProjectIntegratorState,String,DateTime,String,String,DateTime,String ,String,Int32) | 19 | 63 | 1 | 1 | 0 | 13 | 0 | 3 | ThoughtWorks.CruiseControl.Remote.ProjectStatus..ctor(String,String ,ProjectActivity,IntegrationStatus,ProjectIntegratorState,String ,DateTime,String,String,DateTime,String,String,Int32) |
| InitialisePassword() | 25 | 123 | 4 | 4 | 1 | 0 | 10 | 1 | ThoughtWorks.CruiseControl.Remote.EncryptingConnection .InitialisePassword() |
| Update(QueueSnapshot) | 55 | 305 | 12 | 30 | 2 | 1 | 12 | 1 | ThoughtWorks.CruiseControl.Remote.Monitor.BuildQueue.Update (QueueSnapshot) |
| OnWatcherUpdate(Object,ServerUpdateArgs) | 92 | 513 | 18 | 48 | 3 | 2 | 20 | 1 | ThoughtWorks.CruiseControl.Remote.Monitor.Server.OnWatcherUpdate (Object,ServerUpdateArgs) |
| Update(ProjectStatus) | 49 | 316 | 20 | 25 | 2 | 1 | 4 | 1 | ThoughtWorks.CruiseControl.Remote.Monitor.Project.Update(ProjectStatus ) |
| Add(Option) | 2 | 10 | 1 | 1 | 0 | 1 | 0 | 9 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet.Add(Option) |
| Add(String,Action<String>) | 1 | 10 | 1 | 1 | 0 | 2 | 0 | 9 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet.Add(String,Action <String>) |
| Add(String,String,Action<String>) | 5 | 35 | 2 | 2 | 1 | 3 | 1 | 9 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet.Add(String,String ,Action<String>) |
| Add(String,OptionAction<String,String>) | 1 | 10 | 1 | 1 | 0 | 2 | 0 | 9 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet.Add(String ,OptionAction<String,String>) |
| Add(String,String,OptionAction<String,String>) | 5 | 35 | 2 | 2 | 1 | 3 | 1 | 9 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet.Add(String,String ,OptionAction<String,String>) |
| Add<T>(String,Action<T>) | 1 | 10 | 1 | 1 | 0 | 2 | 0 | 9 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet.Add<T>(String,Action <T>) |
| Add<T>(String,String,Action<T>) | 1 | 11 | 1 | 1 | 0 | 3 | 0 | 9 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet.Add<T>(String,String ,Action<T>) |
| Add<TKey,TValue>(String,OptionAction<TKey,TValue>) | 1 | 10 | 1 | 1 | 0 | 2 | 0 | 9 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet.Add<TKey,TValue> (String,OptionAction<TKey,TValue>) |
| Add<TKey,TValue>(String,String,OptionAction<TKey,TValue>) | 1 | 11 | 1 | 1 | 0 | 3 | 0 | 9 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet.Add<TKey,TValue> (String,String,OptionAction<TKey,TValue>) |
| WriteOptionPrototype(TextWriter,Option,Int32&) | 27 | 231 | 12 | 19 | 3 | 3 | 4 | 1 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet.WriteOptionPrototype (TextWriter,Option,Int32&) |
| Instantiate(Type,String,Object[]) | 31 | 215 | 9 | 14 | 3 | 3 | 8 | 2 | Objection.ObjectionStore.Instantiate(Type,String,Object[]) |
| Integrate(IntegrationRequest) | 45 | 301 | 12 | 17 | 2 | 1 | 7 | 1 | ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate (IntegrationRequest) |
| InitialiseSecureConnection(LoginRequest) | 12 | 76 | 1 | 1 | 0 | 1 | 9 | 1 | ThoughtWorks.CruiseControl.Core.CruiseServerClient .InitialiseSecureConnection(LoginRequest) |
| Integrate() | 41 | 274 | 20 | 32 | 5 | 0 | 5 | 1 | ThoughtWorks.CruiseControl.Core.ProjectIntegrator.Integrate() |
| .ctor(IConfigurationService,IProjectIntegratorListFactory ,IProjectSerializer,IProjectStateManager,IFileSystem ,IExecutionEnvironment,List<ExtensionConfiguration>) | 30 | 158 | 4 | 6 | 1 | 7 | 1 | 1 | ThoughtWorks.CruiseControl.Core.CruiseServer..ctor (IConfigurationService,IProjectIntegratorListFactory ,IProjectSerializer,IProjectStateManager,IFileSystem ,IExecutionEnvironment,List<ExtensionConfiguration>) |
| CheckSecurity(String,String,SecurityPermission,Nullable<SecurityEvent> ) | 52 | 416 | 23 | 26 | 4 | 4 | 8 | 1 | ThoughtWorks.CruiseControl.Core.CruiseServer.CheckSecurity(String ,String,SecurityPermission,Nullable<SecurityEvent>) |
| Integrate(IntegrationRequest) | 41 | 226 | 10 | 15 | 3 | 1 | 6 | 1 | ThoughtWorks.CruiseControl.Core.Project.Integrate(IntegrationRequest) |
| PublishResults(IIntegrationResult,Dictionary<String,String>) | 42 | 247 | 13 | 25 | 3 | 2 | 8 | 2 | ThoughtWorks.CruiseControl.Core.Project.PublishResults (IIntegrationResult,Dictionary<String,String>) |
| Execute(IIntegrationResult) | 64 | 422 | 19 | 26 | 5 | 1 | 15 | 1 | ThoughtWorks.CruiseControl.Core.Tasks.HttpStatusTask.Execute (IIntegrationResult) |
| GetRequestStatus(HttpRequestSettings) | 72 | 556 | 23 | 41 | 5 | 1 | 18 | 1 | ThoughtWorks.CruiseControl.Core.Tasks.HttpStatusTask.GetRequestStatus (HttpRequestSettings) |
| Validate(IConfiguration,ConfigurationTrace ,IConfigurationErrorProcesser) | 26 | 141 | 10 | 15 | 4 | 3 | 11 | 1 | ThoughtWorks.CruiseControl.Core.Tasks.BaseExecutableTask.Validate (IConfiguration,ConfigurationTrace,IConfigurationErrorProcesser) |
| Execute(IIntegrationResult) | 26 | 204 | 9 | 15 | 4 | 1 | 8 | 1 | ThoughtWorks.CruiseControl.Core.Tasks.CruiseServerControlTask.Execute (IIntegrationResult) |
| Execute(IIntegrationResult) | 34 | 250 | 14 | 19 | 4 | 1 | 8 | 1 | ThoughtWorks.CruiseControl.Core.Tasks.MergeFilesTask.Execute (IIntegrationResult) |
| FindProperty(Object,String) | 32 | 190 | 11 | 14 | 5 | 2 | 8 | 1 | ThoughtWorks.CruiseControl.Core.Tasks.DynamicValueUtility.FindProperty (Object,String) |
| ConvertXmlToDynamicValues(NetReflectorTypeTable,XmlNode,String[]) | 70 | 459 | 20 | 38 | 5 | 3 | 22 | 1 | ThoughtWorks.CruiseControl.Core.Tasks.DynamicValueUtility .ConvertXmlToDynamicValues(NetReflectorTypeTable,XmlNode,String[]) |
| Read(XmlNode,NetReflectorTypeTable) | 26 | 232 | 10 | 16 | 5 | 2 | 7 | 1 | ThoughtWorks.CruiseControl.Core.Tasks.MergeFileSerialiser.Read(XmlNode ,NetReflectorTypeTable) |
| Execute(IIntegrationResult) | 27 | 184 | 7 | 11 | 2 | 1 | 9 | 1 | ThoughtWorks.CruiseControl.Core.Tasks.SequentialTask.Execute (IIntegrationResult) |
| Execute(IIntegrationResult) | 34 | 190 | 7 | 14 | 2 | 1 | 12 | 1 | ThoughtWorks.CruiseControl.Core.Tasks.ModificationReaderTask.Execute (IIntegrationResult) |
| Execute(IIntegrationResult) | 35 | 262 | 10 | 17 | 3 | 1 | 10 | 1 | ThoughtWorks.CruiseControl.Core.Tasks.SynchronisationTask.Execute (IIntegrationResult) |
| GetProcessArguments(IIntegrationResult) | 37 | 369 | 4 | 6 | 2 | 1 | 2 | 1 | ThoughtWorks.CruiseControl.Core.Tasks.NCoverProfileTask .GetProcessArguments(IIntegrationResult) |
| GetProcessArguments(IIntegrationResult) | 34 | 308 | 9 | 14 | 1 | 1 | 4 | 1 | ThoughtWorks.CruiseControl.Core.Tasks.NCoverReportTask .GetProcessArguments(IIntegrationResult) |
| ImportCode(XmlDocument) | 56 | 323 | 10 | 28 | 3 | 1 | 21 | 1 | ThoughtWorks.CruiseControl.Core.Tasks.DupFinderTask.ImportCode (XmlDocument) |
| Enqueue(IIntegrationQueueItem) | 46 | 319 | 14 | 26 | 3 | 1 | 5 | 1 | ThoughtWorks.CruiseControl.Core.Queues.IntegrationQueue.Enqueue (IIntegrationQueueItem) |
| Generate(IIntegrationResult) | 24 | 208 | 9 | 15 | 1 | 1 | 4 | 1 | ThoughtWorks.CruiseControl.Core.Label.AssemblyVersionLabeller.Generate (IIntegrationResult) |
| RetrieveUserInformation(String) | 32 | 208 | 4 | 5 | 1 | 1 | 6 | 1 | ThoughtWorks.CruiseControl.Core.Util.LdapHelper .RetrieveUserInformation(String) |
| Match(String,String,Boolean) | 102 | 620 | 50 | 76 | 5 | 3 | 15 | 1 | ThoughtWorks.CruiseControl.Core.Util.PathUtils.Match(String,String ,Boolean) |
| MatchPath(String,String,Boolean) | 83 | 479 | 34 | 52 | 4 | 3 | 16 | 1 | ThoughtWorks.CruiseControl.Core.Util.PathUtils.MatchPath(String,String ,Boolean) |
| KillPid(Int32) | 38 | 193 | 9 | 13 | 2 | 1 | 6 | 1 | ThoughtWorks.CruiseControl.Core.Util.KillUtil.KillPid(Int32) |
| LogonUser(String,String,String,Int32,Int32,IntPtr&) | 0 | 0 | N/A | 0 | 0 | 6 | 0 | 1 | ThoughtWorks.CruiseControl.Core.Util.Impersonation.LogonUser(String ,String,String,Int32,Int32,IntPtr&) |
| DownloadFolder(String,String,Boolean) | 42 | 247 | 13 | 16 | 4 | 3 | 7 | 1 | ThoughtWorks.CruiseControl.Core.Util.FtpLib.DownloadFolder(String ,String,Boolean) |
| UploadFolder(String,String,Boolean) | 37 | 224 | 9 | 15 | 2 | 3 | 8 | 1 | ThoughtWorks.CruiseControl.Core.Util.FtpLib.UploadFolder(String,String ,Boolean) |
| GetTheList(List<Modification>,String,String,Boolean) | 42 | 231 | 13 | 16 | 4 | 4 | 8 | 1 | ThoughtWorks.CruiseControl.Core.Util.FtpLib.GetTheList(List <Modification>,String,String,Boolean) |
| ParseChangeSet(StringBuilder) | 25 | 149 | 4 | 8 | 3 | 1 | 12 | 1 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VstsHistoryParser .ParseChangeSet(StringBuilder) |
| Parse(TextReader,DateTime,DateTime) | 26 | 127 | 4 | 6 | 3 | 3 | 11 | 1 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.StarTeamHistoryParser .Parse(TextReader,DateTime,DateTime) |
| Parse(TextReader,DateTime,DateTime) | 34 | 149 | 5 | 8 | 2 | 3 | 16 | 1 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.MksHistoryParser.Parse (TextReader,DateTime,DateTime) |
| CreateNewModification(String,String,String,String,String,String) | 8 | 36 | 2 | 3 | 1 | 6 | 1 | 1 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.ClearCaseHistoryParser .CreateNewModification(String,String,String,String,String,String) |
| GetModifications(IIntegrationResult,IIntegrationResult) | 50 | 314 | 17 | 24 | 3 | 2 | 12 | 1 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn.GetModifications (IIntegrationResult,IIntegrationResult) |
| GetFolderVersion(IIntegrationResult,IIntegrationResult) | 36 | 208 | 12 | 14 | 3 | 2 | 11 | 1 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault317 .GetFolderVersion(IIntegrationResult,IIntegrationResult) |
| ParseModificationsFromLogEntry(XmlNode,DateTime,DateTime) | 29 | 153 | 8 | 12 | 4 | 3 | 10 | 1 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.SvnHistoryParser .ParseModificationsFromLogEntry(XmlNode,DateTime,DateTime) |
| Parse(TextReader,DateTime,DateTime) | 28 | 159 | 12 | 13 | 7 | 3 | 7 | 1 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.AccuRevHistoryParser .Parse(TextReader,DateTime,DateTime) |
| GetCommitModifications(Match,DateTime,DateTime) | 26 | 214 | 4 | 9 | 2 | 3 | 10 | 1 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.GitHistoryParser .GetCommitModifications(Match,DateTime,DateTime) |
| GetTypeString(String) | 25 | 187 | 24 | 27 | 3 | 1 | 0 | 1 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VaultHistoryParser .GetTypeString(String) |
| AnalyzeModifications(IList) | 34 | 215 | 9 | 19 | 3 | 1 | 13 | 1 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.PvcsHistoryParser .AnalyzeModifications(IList) |
| Parse(String,String,DateTime) | 35 | 225 | 9 | 17 | 4 | 3 | 9 | 1 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic.SynergyParser .Parse(String,String,DateTime) |
| Open() | 33 | 210 | 8 | 11 | 4 | 0 | 5 | 1 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic.SynergyCommand .Open() |
| Parse(TextReader,DateTime,DateTime) | 31 | 162 | 5 | 8 | 2 | 3 | 11 | 1 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Perforce.P4HistoryParser .Parse(TextReader,DateTime,DateTime) |
| .ctor(String,SecurityRight,SecurityRight,SecurityRight,SecurityRight ,UserName[]) | 8 | 32 | 1 | 1 | 0 | 6 | 0 | 2 | ThoughtWorks.CruiseControl.Core.Security.RolePermission..ctor(String ,SecurityRight,SecurityRight,SecurityRight,SecurityRight,UserName[]) |
| Initialise() | 23 | 136 | 5 | 10 | 4 | 0 | 10 | 1 | ThoughtWorks.CruiseControl.Core.Security.FileBasedSessionCache .Initialise() |
| eval_constant(String) | 27 | 189 | 7 | 12 | 3 | 1 | 10 | 1 | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.eval_constant(String) |
| SendMessage(String,String,String,String,String,String) | 4 | 43 | 2 | 4 | 2 | 6 | 2 | 1 | ThoughtWorks.CruiseControl.Core.Publishers.EmailPublisher.SendMessage (String,String,String,String,String,String) |
| GetMailMessage(String,String,String,String,String,String,String[]) | 20 | 100 | 6 | 7 | 3 | 7 | 4 | 1 | ThoughtWorks.CruiseControl.Core.Publishers.EmailPublisher .GetMailMessage(String,String,String,String,String,String,String[]) |
| get_Recipients() | 50 | 282 | 21 | 26 | 3 | 0 | 4 | 1 | ThoughtWorks.CruiseControl.Core.Publishers.EmailMessage.get_Recipients () |
| Execute(IIntegrationResult) | 34 | 192 | 8 | 13 | 3 | 1 | 9 | 1 | ThoughtWorks.CruiseControl.Core.Publishers.PackagePublisher.Execute (IIntegrationResult) |
| GenerateFileList(IIntegrationResult) | 30 | 201 | 9 | 15 | 5 | 1 | 9 | 1 | ThoughtWorks.CruiseControl.Core.Publishers.PackagePublisher .GenerateFileList(IIntegrationResult) |
| Process(XmlDocument,String) | 21 | 109 | 5 | 7 | 2 | 2 | 9 | 1 | ThoughtWorks.CruiseControl.Core.Publishers.Statistics .StatisticsChartGenerator.Process(XmlDocument,String) |
| GenerateProjectGridRows(ProjectStatusOnServer[],String ,ProjectGridSortColumn,Boolean,String,ICruiseUrlBuilder,Translations) | N/A | N/A | N/A | N/A | N/A | 7 | N/A | 1 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.IProjectGrid .GenerateProjectGridRows(ProjectStatusOnServer[],String ,ProjectGridSortColumn,Boolean,String,ICruiseUrlBuilder,Translations) |
| GenerateProjectGridRows(ProjectStatusOnServer[],String ,ProjectGridSortColumn,Boolean,String,ICruiseUrlBuilder,Translations) | 13 | 85 | 5 | 7 | 2 | 7 | 5 | 1 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.ProjectGrid .GenerateProjectGridRows(ProjectStatusOnServer[],String ,ProjectGridSortColumn,Boolean,String,ICruiseUrlBuilder,Translations) |
| .ctor(ICruiseRequest,IBuildNameRetriever,IRecentBuildsViewBuilder ,IPluginLinkCalculator,IVelocityViewGenerator,ILinkFactory ,ILinkListFactory,IFarmService,IFingerprintFactory) | 10 | 33 | 1 | 1 | 0 | 9 | 0 | 1 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.SideBarViewBuilder. .ctor(ICruiseRequest,IBuildNameRetriever,IRecentBuildsViewBuilder ,IPluginLinkCalculator,IVelocityViewGenerator,ILinkFactory ,ILinkListFactory,IFarmService,IFingerprintFactory) |
| Execute(ICruiseRequest) | 36 | 249 | 7 | 12 | 2 | 1 | 10 | 1 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.SideBarViewBuilder .Execute(ICruiseRequest) |
| .ctor(ICruiseRequest,ILinkFactory,IVelocityViewGenerator ,IDashboardConfiguration,ISessionRetriever,ISessionStorer) | 7 | 24 | 1 | 1 | 0 | 6 | 0 | 1 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.LoginViewBuilder. .ctor(ICruiseRequest,ILinkFactory,IVelocityViewGenerator ,IDashboardConfiguration,ISessionRetriever,ISessionStorer) |
| .ctor(ICruiseRequest,ILinkFactory,IVelocityViewGenerator,IFarmService ,IFingerprintFactory,ISessionRetriever) | 7 | 24 | 1 | 1 | 0 | 6 | 0 | 1 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard .TopControlsViewBuilder..ctor(ICruiseRequest,ILinkFactory ,IVelocityViewGenerator,IFarmService,IFingerprintFactory ,ISessionRetriever) |
| ForceBuildIfNecessary(IRequest) | 23 | 217 | 9 | 12 | 2 | 1 | 3 | 1 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard .VelocityProjectGridAction.ForceBuildIfNecessary(IRequest) |
| .ctor(IFarmService,IVelocityTransformer,IVelocityViewGenerator ,ILinkFactory,ILinkListFactory,IFingerprintFactory,ICruiseUrlBuilder ,ISessionRetriever) | 9 | 30 | 1 | 1 | 0 | 8 | 0 | 1 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.RecentBuildLister. .ctor(IFarmService,IVelocityTransformer,IVelocityViewGenerator ,ILinkFactory,ILinkListFactory,IFingerprintFactory,ICruiseUrlBuilder ,ISessionRetriever) |
| SetupObjectSourceForRequest(HttpContext) | 130 | 1 136 | 26 | 45 | 3 | 1 | 16 | 1 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard .CruiseObjectSourceInitializer.SetupObjectSourceForRequest(HttpContext ) |
| .ctor(IAction,IVelocityViewGenerator,ObjectSource,IVersionProvider ,IFingerprintFactory,IUrlBuilder,IPluginConfiguration,ICruiseRequest) | 9 | 30 | 1 | 1 | 0 | 8 | 0 | 1 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.ActionDecorators .SiteTemplateActionDecorator..ctor(IAction,IVelocityViewGenerator ,ObjectSource,IVersionProvider,IFingerprintFactory,IUrlBuilder ,IPluginConfiguration,ICruiseRequest) |
| Execute(ICruiseRequest) | 23 | 142 | 3 | 5 | 1 | 1 | 10 | 1 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.ServerReport .ServerSecurityConfigurationServerPlugin.Execute(ICruiseRequest) |
| Execute(ICruiseRequest) | 41 | 315 | 11 | 17 | 1 | 1 | 12 | 1 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.ProjectReport .ProjectReportProjectPlugin.Execute(ICruiseRequest) |
| UpdateConfigurationSetting(XmlDocument,ConfigurationSetting,Boolean) | 27 | 262 | 9 | 14 | 3 | 3 | 5 | 1 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.Administration.Package .UpdateConfigurationSetting(XmlDocument,ConfigurationSetting,Boolean) |
| Execute(ICruiseRequest) | 36 | 306 | 13 | 15 | 2 | 1 | 5 | 1 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.Administration .AdministerAction.Execute(ICruiseRequest) |
| SaveServer(IRequest,Hashtable) | 44 | 250 | 10 | 17 | 2 | 2 | 11 | 1 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.Administration .AdministerAction.SaveServer(IRequest,Hashtable) |
| .ctor(IProjectSpecifier,String,Boolean,Boolean,Boolean,Boolean) | 7 | 24 | 1 | 1 | 0 | 6 | 0 | 1 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.DeleteProject .DeleteProjectModel..ctor(IProjectSpecifier,String,Boolean,Boolean ,Boolean,Boolean) |
| Equals(Object) | 4 | 65 | 9 | 7 | 7 | 1 | 1 | 1 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.DeleteProject .DeleteProjectModel.Equals(Object) |
| PlaySound(Byte[],Boolean,Boolean,Boolean,Boolean,Boolean) | 14 | 66 | 7 | 7 | 2 | 6 | 1 | 5 | ThoughtWorks.CruiseControl.CCTrayLib.Audio.PlaySound(Byte[],Boolean ,Boolean,Boolean,Boolean,Boolean) |
| PlaySound(String,Boolean,Boolean,Boolean,Boolean,Boolean) | 28 | 175 | 14 | 14 | 2 | 6 | 2 | 5 | ThoughtWorks.CruiseControl.CCTrayLib.Audio.PlaySound(String,Boolean ,Boolean,Boolean,Boolean,Boolean) |
| BindX10Controls(X10Configuration) | 32 | 197 | 2 | 3 | 1 | 1 | 3 | 1 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.X10SettingsControl .BindX10Controls(X10Configuration) |
| .ctor(ICCTrayMultiConfiguration,ISynchronizeInvoke,MainForm) | 28 | 214 | 4 | 5 | 1 | 3 | 3 | 1 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainFormController. .ctor(ICCTrayMultiConfiguration,ISynchronizeInvoke,MainForm) |
| HandleServerSnapshotChange(Object,ServerSnapshotChangedEventArgs) | 48 | 406 | 22 | 43 | 6 | 2 | 5 | 1 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainFormController .HandleServerSnapshotChange(Object,ServerSnapshotChangedEventArgs) |
| <UpdateProjectList>b__10(List<ServerSnapshotChangedEventArgs>) | 29 | 177 | 8 | 20 | 4 | 1 | 9 | 1 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainFormController. <UpdateProjectList>b__10(List<ServerSnapshotChangedEventArgs>) |
| InitializeComponent() | 272 | 1 505 | 1 | 1 | 0 | 0 | 1 | 1 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AddBuildServer .InitializeComponent() |
| InitializeComponent() | 303 | 1 752 | 1 | 1 | 0 | 0 | 2 | 1 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .InitializeComponent() |
| .ctor(CheckBox,TextBox,Button,Button,OpenFileDialog,String) | 12 | 56 | 1 | 1 | 0 | 6 | 0 | 1 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .SelectAudioFileController..ctor(CheckBox,TextBox,Button,Button ,OpenFileDialog,String) |
| updateButton_Click(Object,EventArgs) | 41 | 277 | 12 | 28 | 4 | 2 | 11 | 1 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .DisplayChangedProjects.updateButton_Click(Object,EventArgs) |
| DisplayIntegrationQueueInTreeViewNode() | 35 | 203 | 10 | 14 | 4 | 0 | 11 | 1 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .IntegrationQueueTreeNodeAdaptor.DisplayIntegrationQueueInTreeViewNode () |
| .ctor(String,String,Int32,Parity,Int32,StopBits) | 9 | 56 | 2 | 2 | 1 | 6 | 1 | 2 | ThoughtWorks.CruiseControl.CCTrayLib.X10.Cm11LowLevelDriver..ctor (String,String,Int32,Parity,Int32,StopBits) |
| .ctor(Cm11LowLevelDriver+CM11aHouseCode,String,Int32,Parity,Int32 ,StopBits) | 13 | 47 | 1 | 1 | 0 | 6 | 0 | 1 | ThoughtWorks.CruiseControl.CCTrayLib.X10 .Cm11LowLevelDriver+Cm11LowLevelDriverWorker..ctor (Cm11LowLevelDriver+CM11aHouseCode,String,Int32,Parity,Int32,StopBits) |
Statistics
| Stat | # lines of code (LOC) | # IL instructions | Cyclomatic Complexity (CC) | IL Cyclomatic Complexity (ILCC) | IL Nesting Depth | # Parameters | # Variables | # Overloads |
|---|---|---|---|---|---|---|---|---|
| Sum: | 3 661 | 23 837 | 897 | 1 397 | 240 | 285 | 684 | 191 |
| Average: | 35.202 | 229.2 | 8.7087 | 13.433 | 2.3077 | 2.7143 | 6.5769 | 1.819 |
| Minimum: | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
| Maximum: | 303 | 1 752 | 50 | 76 | 7 | 13 | 22 | 9 |
| Standard deviation: | 41.405 | 253.66 | 7.8439 | 12.902 | 1.738 | 2.4131 | 5.3398 | 2.2794 |
| Variance: | 1 714 | 64 341 | 61.527 | 166.46 | 3.0207 | 5.8231 | 28.513 | 5.1958 |
| Rule warning: Methods too big |
// <Name>Methods too big</Name>
warnif count > 0 from m in JustMyCode.Methods where
m.NbLinesOfCode > 30 ||
m.NbILInstructions > 200
orderby m.NbLinesOfCode descending,
m.NbILInstructions descending
select new { m, m.NbLinesOfCode, m.NbILInstructions }
// Methods where NbLinesOfCode > 30 or NbILInstructions > 200
// are extremely complex and should be split in smaller methods.
// See the definition of the NbLinesOfCode metric here
// http://www.ndepend.com/Metrics.aspx#NbLinesOfCode
warnif count > 0 from m in JustMyCode.Methods where
m.NbLinesOfCode > 30 ||
m.NbILInstructions > 200
orderby m.NbLinesOfCode descending,
m.NbILInstructions descending
select new { m, m.NbLinesOfCode, m.NbILInstructions }
// Methods where NbLinesOfCode > 30 or NbILInstructions > 200
// are extremely complex and should be split in smaller methods.
// See the definition of the NbLinesOfCode metric here
// http://www.ndepend.com/Metrics.aspx#NbLinesOfCode
60 methods matched
| methods | # lines of code (LOC) | # IL instructions | Full Name |
|---|---|---|---|
| methods | # lines of code (LOC) | # IL instructions | Full Name |
| InitializeComponent() | 303 | 1 752 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .InitializeComponent() |
| InitializeComponent() | 272 | 1 505 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AddBuildServer .InitializeComponent() |
| SetupObjectSourceForRequest(HttpContext) | 130 | 1 136 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard .CruiseObjectSourceInitializer.SetupObjectSourceForRequest(HttpContext ) |
| Match(String,String,Boolean) | 102 | 620 | ThoughtWorks.CruiseControl.Core.Util.PathUtils.Match(String,String ,Boolean) |
| OnWatcherUpdate(Object,ServerUpdateArgs) | 92 | 513 | ThoughtWorks.CruiseControl.Remote.Monitor.Server.OnWatcherUpdate (Object,ServerUpdateArgs) |
| MatchPath(String,String,Boolean) | 83 | 479 | ThoughtWorks.CruiseControl.Core.Util.PathUtils.MatchPath(String,String ,Boolean) |
| GetRequestStatus(HttpRequestSettings) | 72 | 556 | ThoughtWorks.CruiseControl.Core.Tasks.HttpStatusTask.GetRequestStatus (HttpRequestSettings) |
| ConvertXmlToDynamicValues(NetReflectorTypeTable,XmlNode,String[]) | 70 | 459 | ThoughtWorks.CruiseControl.Core.Tasks.DynamicValueUtility .ConvertXmlToDynamicValues(NetReflectorTypeTable,XmlNode,String[]) |
| Execute(IIntegrationResult) | 64 | 422 | ThoughtWorks.CruiseControl.Core.Tasks.HttpStatusTask.Execute (IIntegrationResult) |
| ImportCode(XmlDocument) | 56 | 323 | ThoughtWorks.CruiseControl.Core.Tasks.DupFinderTask.ImportCode (XmlDocument) |
| Update(QueueSnapshot) | 55 | 305 | ThoughtWorks.CruiseControl.Remote.Monitor.BuildQueue.Update (QueueSnapshot) |
| CheckSecurity(String,String,SecurityPermission,Nullable<SecurityEvent> ) | 52 | 416 | ThoughtWorks.CruiseControl.Core.CruiseServer.CheckSecurity(String ,String,SecurityPermission,Nullable<SecurityEvent>) |
| GetModifications(IIntegrationResult,IIntegrationResult) | 50 | 314 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn.GetModifications (IIntegrationResult,IIntegrationResult) |
| get_Recipients() | 50 | 282 | ThoughtWorks.CruiseControl.Core.Publishers.EmailMessage.get_Recipients () |
| Update(ProjectStatus) | 49 | 316 | ThoughtWorks.CruiseControl.Remote.Monitor.Project.Update(ProjectStatus ) |
| HandleServerSnapshotChange(Object,ServerSnapshotChangedEventArgs) | 48 | 406 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainFormController .HandleServerSnapshotChange(Object,ServerSnapshotChangedEventArgs) |
| Enqueue(IIntegrationQueueItem) | 46 | 319 | ThoughtWorks.CruiseControl.Core.Queues.IntegrationQueue.Enqueue (IIntegrationQueueItem) |
| Integrate(IntegrationRequest) | 45 | 301 | ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate (IntegrationRequest) |
| SaveServer(IRequest,Hashtable) | 44 | 250 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.Administration .AdministerAction.SaveServer(IRequest,Hashtable) |
| PublishResults(IIntegrationResult,Dictionary<String,String>) | 42 | 247 | ThoughtWorks.CruiseControl.Core.Project.PublishResults (IIntegrationResult,Dictionary<String,String>) |
| DownloadFolder(String,String,Boolean) | 42 | 247 | ThoughtWorks.CruiseControl.Core.Util.FtpLib.DownloadFolder(String ,String,Boolean) |
| GetTheList(List<Modification>,String,String,Boolean) | 42 | 231 | ThoughtWorks.CruiseControl.Core.Util.FtpLib.GetTheList(List <Modification>,String,String,Boolean) |
| Execute(ICruiseRequest) | 41 | 315 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.ProjectReport .ProjectReportProjectPlugin.Execute(ICruiseRequest) |
| updateButton_Click(Object,EventArgs) | 41 | 277 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .DisplayChangedProjects.updateButton_Click(Object,EventArgs) |
| Integrate() | 41 | 274 | ThoughtWorks.CruiseControl.Core.ProjectIntegrator.Integrate() |
| Integrate(IntegrationRequest) | 41 | 226 | ThoughtWorks.CruiseControl.Core.Project.Integrate(IntegrationRequest) |
| KillPid(Int32) | 38 | 193 | ThoughtWorks.CruiseControl.Core.Util.KillUtil.KillPid(Int32) |
| GetProcessArguments(IIntegrationResult) | 37 | 369 | ThoughtWorks.CruiseControl.Core.Tasks.NCoverProfileTask .GetProcessArguments(IIntegrationResult) |
| StartConfigurationLoad() | 37 | 256 | Validator.MainForm.StartConfigurationLoad() |
| UploadFolder(String,String,Boolean) | 37 | 224 | ThoughtWorks.CruiseControl.Core.Util.FtpLib.UploadFolder(String,String ,Boolean) |
| Execute(ICruiseRequest) | 36 | 306 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.Administration .AdministerAction.Execute(ICruiseRequest) |
| Execute(ICruiseRequest) | 36 | 249 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.SideBarViewBuilder .Execute(ICruiseRequest) |
| GetFolderVersion(IIntegrationResult,IIntegrationResult) | 36 | 208 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault317 .GetFolderVersion(IIntegrationResult,IIntegrationResult) |
| Execute(IIntegrationResult) | 35 | 262 | ThoughtWorks.CruiseControl.Core.Tasks.SynchronisationTask.Execute (IIntegrationResult) |
| Parse(String,String,DateTime) | 35 | 225 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic.SynergyParser .Parse(String,String,DateTime) |
| DisplayIntegrationQueueInTreeViewNode() | 35 | 203 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .IntegrationQueueTreeNodeAdaptor.DisplayIntegrationQueueInTreeViewNode () |
| GetProcessArguments(IIntegrationResult) | 34 | 308 | ThoughtWorks.CruiseControl.Core.Tasks.NCoverReportTask .GetProcessArguments(IIntegrationResult) |
| Execute(IIntegrationResult) | 34 | 250 | ThoughtWorks.CruiseControl.Core.Tasks.MergeFilesTask.Execute (IIntegrationResult) |
| AnalyzeModifications(IList) | 34 | 215 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.PvcsHistoryParser .AnalyzeModifications(IList) |
| Execute(IIntegrationResult) | 34 | 192 | ThoughtWorks.CruiseControl.Core.Publishers.PackagePublisher.Execute (IIntegrationResult) |
| Execute(IIntegrationResult) | 34 | 190 | ThoughtWorks.CruiseControl.Core.Tasks.ModificationReaderTask.Execute (IIntegrationResult) |
| Parse(TextReader,DateTime,DateTime) | 34 | 149 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.MksHistoryParser.Parse (TextReader,DateTime,DateTime) |
| ValidateElement(HtmlElement,XmlNode,Int32,Configuration) | 33 | 490 | Validator.MainForm.ValidateElement(HtmlElement,XmlNode,Int32 ,Configuration) |
| Open() | 33 | 210 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic.SynergyCommand .Open() |
| RetrieveUserInformation(String) | 32 | 208 | ThoughtWorks.CruiseControl.Core.Util.LdapHelper .RetrieveUserInformation(String) |
| BindX10Controls(X10Configuration) | 32 | 197 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.X10SettingsControl .BindX10Controls(X10Configuration) |
| FindProperty(Object,String) | 32 | 190 | ThoughtWorks.CruiseControl.Core.Tasks.DynamicValueUtility.FindProperty (Object,String) |
| Instantiate(Type,String,Object[]) | 31 | 215 | Objection.ObjectionStore.Instantiate(Type,String,Object[]) |
| Parse(TextReader,DateTime,DateTime) | 31 | 162 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Perforce.P4HistoryParser .Parse(TextReader,DateTime,DateTime) |
| ValidateData(XmlDocument) | 30 | 268 | Validator.MainForm.ValidateData(XmlDocument) |
| GenerateFileList(IIntegrationResult) | 30 | 201 | ThoughtWorks.CruiseControl.Core.Publishers.PackagePublisher .GenerateFileList(IIntegrationResult) |
| InternalValidation(Configuration) | 28 | 230 | Validator.MainForm.InternalValidation(Configuration) |
| .ctor(ICCTrayMultiConfiguration,ISynchronizeInvoke,MainForm) | 28 | 214 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainFormController. .ctor(ICCTrayMultiConfiguration,ISynchronizeInvoke,MainForm) |
| UpdateConfigurationSetting(XmlDocument,ConfigurationSetting,Boolean) | 27 | 262 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.Administration.Package .UpdateConfigurationSetting(XmlDocument,ConfigurationSetting,Boolean) |
| WriteOptionPrototype(TextWriter,Option,Int32&) | 27 | 231 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet.WriteOptionPrototype (TextWriter,Option,Int32&) |
| Read(XmlNode,NetReflectorTypeTable) | 26 | 232 | ThoughtWorks.CruiseControl.Core.Tasks.MergeFileSerialiser.Read(XmlNode ,NetReflectorTypeTable) |
| GetCommitModifications(Match,DateTime,DateTime) | 26 | 214 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.GitHistoryParser .GetCommitModifications(Match,DateTime,DateTime) |
| Execute(IIntegrationResult) | 26 | 204 | ThoughtWorks.CruiseControl.Core.Tasks.CruiseServerControlTask.Execute (IIntegrationResult) |
| Generate(IIntegrationResult) | 24 | 208 | ThoughtWorks.CruiseControl.Core.Label.AssemblyVersionLabeller.Generate (IIntegrationResult) |
| ForceBuildIfNecessary(IRequest) | 23 | 217 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard .VelocityProjectGridAction.ForceBuildIfNecessary(IRequest) |
Statistics
| Stat | # lines of code (LOC) | # IL instructions |
|---|---|---|
| Sum: | 3 058 | 20 443 |
| Average: | 50.967 | 340.72 |
| Minimum: | 23 | 149 |
| Maximum: | 303 | 1 752 |
| Standard deviation: | 48.066 | 281.86 |
| Variance: | 2 310 | 79 447 |
| Rule warning: Methods too complex |
// <Name>Methods too complex</Name>
warnif count > 0 from m in JustMyCode.Methods where
m.CyclomaticComplexity > 20 ||
m.ILCyclomaticComplexity > 40 ||
m.ILNestingDepth > 5
orderby m.CyclomaticComplexity descending,
m.ILCyclomaticComplexity descending,
m.ILNestingDepth descending
select new { m, m.CyclomaticComplexity,
m.ILCyclomaticComplexity,
m.ILNestingDepth }
// Methods where CyclomaticComplexity > 20
// or ILCyclomaticComplexity > 40
// or ILNestingDepth > 4
// are hard to understand and maintain
// and should be split in smaller methods.
// See the definition of the complexity metrics here:
// http://www.ndepend.com/Metrics.aspx#CC
// http://www.ndepend.com/Metrics.aspx#ILCC
// http://www.NDepend.com/Metrics.aspx#ILNestingDepth
warnif count > 0 from m in JustMyCode.Methods where
m.CyclomaticComplexity > 20 ||
m.ILCyclomaticComplexity > 40 ||
m.ILNestingDepth > 5
orderby m.CyclomaticComplexity descending,
m.ILCyclomaticComplexity descending,
m.ILNestingDepth descending
select new { m, m.CyclomaticComplexity,
m.ILCyclomaticComplexity,
m.ILNestingDepth }
// Methods where CyclomaticComplexity > 20
// or ILCyclomaticComplexity > 40
// or ILNestingDepth > 4
// are hard to understand and maintain
// and should be split in smaller methods.
// See the definition of the complexity metrics here:
// http://www.ndepend.com/Metrics.aspx#CC
// http://www.ndepend.com/Metrics.aspx#ILCC
// http://www.NDepend.com/Metrics.aspx#ILNestingDepth
11 methods matched
| methods | Cyclomatic Complexity (CC) | IL Cyclomatic Complexity (ILCC) | IL Nesting Depth | Full Name |
|---|---|---|---|---|
| methods | Cyclomatic Complexity (CC) | IL Cyclomatic Complexity (ILCC) | IL Nesting Depth | Full Name |
| Match(String,String,Boolean) | 50 | 76 | 5 | ThoughtWorks.CruiseControl.Core.Util.PathUtils.Match(String,String ,Boolean) |
| MatchPath(String,String,Boolean) | 34 | 52 | 4 | ThoughtWorks.CruiseControl.Core.Util.PathUtils.MatchPath(String,String ,Boolean) |
| SetupObjectSourceForRequest(HttpContext) | 26 | 45 | 3 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard .CruiseObjectSourceInitializer.SetupObjectSourceForRequest(HttpContext ) |
| GetTypeString(String) | 24 | 27 | 3 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VaultHistoryParser .GetTypeString(String) |
| GetRequestStatus(HttpRequestSettings) | 23 | 41 | 5 | ThoughtWorks.CruiseControl.Core.Tasks.HttpStatusTask.GetRequestStatus (HttpRequestSettings) |
| CheckSecurity(String,String,SecurityPermission,Nullable<SecurityEvent> ) | 23 | 26 | 4 | ThoughtWorks.CruiseControl.Core.CruiseServer.CheckSecurity(String ,String,SecurityPermission,Nullable<SecurityEvent>) |
| HandleServerSnapshotChange(Object,ServerSnapshotChangedEventArgs) | 22 | 43 | 6 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainFormController .HandleServerSnapshotChange(Object,ServerSnapshotChangedEventArgs) |
| get_Recipients() | 21 | 26 | 3 | ThoughtWorks.CruiseControl.Core.Publishers.EmailMessage.get_Recipients () |
| OnWatcherUpdate(Object,ServerUpdateArgs) | 18 | 48 | 3 | ThoughtWorks.CruiseControl.Remote.Monitor.Server.OnWatcherUpdate (Object,ServerUpdateArgs) |
| Parse(TextReader,DateTime,DateTime) | 12 | 13 | 7 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.AccuRevHistoryParser .Parse(TextReader,DateTime,DateTime) |
| Equals(Object) | 9 | 7 | 7 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.DeleteProject .DeleteProjectModel.Equals(Object) |
Statistics
| Stat | Cyclomatic Complexity (CC) | IL Cyclomatic Complexity (ILCC) | IL Nesting Depth |
|---|---|---|---|
| Sum: | 262 | 404 | 50 |
| Average: | 23.818 | 36.727 | 4.5455 |
| Minimum: | 9 | 7 | 3 |
| Maximum: | 50 | 76 | 7 |
| Standard deviation: | 10.443 | 18.587 | 1.4993 |
| Variance: | 109.06 | 345.47 | 2.2479 |
| Rule warning: Methods potentially poorly commented |
// <Name>Methods potentially poorly commented</Name>
warnif count > 0 from m in JustMyCode.Methods where
m.PercentageComment < 20 &&
m.NbLinesOfCode > 20
orderby m.PercentageComment ascending
select new { m, m.PercentageComment, m.NbLinesOfCode, m.NbLinesOfComment }
// Methods where %Comment < 20 and that have
// at least 20 lines of code might need to be more commented.
// See the definition of the Comments metric here
// http://www.ndepend.com/Metrics.aspx#PercentageComment
// http://www.ndepend.com/Metrics.aspx#NbLinesOfComment
warnif count > 0 from m in JustMyCode.Methods where
m.PercentageComment < 20 &&
m.NbLinesOfCode > 20
orderby m.PercentageComment ascending
select new { m, m.PercentageComment, m.NbLinesOfCode, m.NbLinesOfComment }
// Methods where %Comment < 20 and that have
// at least 20 lines of code might need to be more commented.
// See the definition of the Comments metric here
// http://www.ndepend.com/Metrics.aspx#PercentageComment
// http://www.ndepend.com/Metrics.aspx#NbLinesOfComment
145 methods matched
The following list of methods is truncated and contains only the first 100 methods of the 145 methods matched. All matched methods could be listed in the report by unchecking the option:
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched methods.
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched methods.
| methods | Percentage Comment | # lines of code (LOC) | # lines of comment | Full Name |
|---|---|---|---|---|
| methods | Percentage Comment | # lines of code (LOC) | # lines of comment | Full Name |
| IsQueueSetSnapshotChanged(QueueSetSnapshot) | 0 | 27 | 0 | ThoughtWorks.CruiseControl.Remote.CruiseServerSnapshot .IsQueueSetSnapshotChanged(QueueSetSnapshot) |
| ParsePrototype() | 0 | 27 | 0 | ThoughtWorks.CruiseControl.Remote.Mono.Option.ParsePrototype() |
| Parse(IEnumerable<String>) | 0 | 21 | 0 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet.Parse(IEnumerable <String>) |
| ParseBundledValue(String,String,OptionContext) | 0 | 22 | 0 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet.ParseBundledValue (String,String,OptionContext) |
| WriteOptionDescriptions(TextWriter) | 0 | 21 | 0 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet .WriteOptionDescriptions(TextWriter) |
| WriteOptionPrototype(TextWriter,Option,Int32&) | 0 | 27 | 0 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet.WriteOptionPrototype (TextWriter,Option,Int32&) |
| GetDescription(String) | 0 | 30 | 0 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet.GetDescription(String ) |
| Instantiate(Type,String,Object[]) | 0 | 31 | 0 | Objection.ObjectionStore.Instantiate(Type,String,Object[]) |
| FilterProjects(String,ProjectStatus[]) | 0 | 21 | 0 | ThoughtWorks.CruiseControl.Core.CruiseServer.FilterProjects(String ,ProjectStatus[]) |
| ValidateParameters(Dictionary<String,String>) | 0 | 22 | 0 | ThoughtWorks.CruiseControl.Core.Project.ValidateParameters(Dictionary <String,String>) |
| WriteTo(XmlWriter,Boolean) | 0 | 28 | 0 | ThoughtWorks.CruiseControl.Core.Tasks.HttpStatusTask+HttpRequestStatus .WriteTo(XmlWriter,Boolean) |
| GetFBArgs() | 0 | 21 | 0 | ThoughtWorks.CruiseControl.Core.Tasks.FinalBuilderTask.GetFBArgs() |
| TryLock(IDisposable&) | 0 | 29 | 0 | ThoughtWorks.CruiseControl.Core.Queues.IntegrationQueue.TryLock (IDisposable&) |
| server_IntegrationStarted(Object,IntegrationStartedEventArgs) | 0 | 22 | 0 | ThoughtWorks.CruiseControl.Core.Extensions .IntegrationRequestThrottleExtension.server_IntegrationStarted(Object ,IntegrationStartedEventArgs) |
| RetrieveUserInformation(String) | 0 | 32 | 0 | ThoughtWorks.CruiseControl.Core.Util.LdapHelper .RetrieveUserInformation(String) |
| ReflectionToString(Object) | 0 | 22 | 0 | ThoughtWorks.CruiseControl.Core.Util.ReflectionUtil.ReflectionToString (Object) |
| SplitPath(String) | 0 | 28 | 0 | ThoughtWorks.CruiseControl.Core.Util.PathUtils.SplitPath(String) |
| Parse(TextReader,DateTime,DateTime) | 0 | 26 | 0 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VstsHistoryParser.Parse (TextReader,DateTime,DateTime) |
| ParseChangeSet(StringBuilder) | 0 | 25 | 0 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VstsHistoryParser .ParseChangeSet(StringBuilder) |
| .ctor(IHistoryParser,ProcessExecutor ,VaultVersionChecker+EForcedVaultVersion) | 0 | 23 | 0 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VaultVersionChecker. .ctor(IHistoryParser,ProcessExecutor ,VaultVersionChecker+EForcedVaultVersion) |
| GetCommitModifications(Match,DateTime,DateTime) | 0 | 26 | 0 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.GitHistoryParser .GetCommitModifications(Match,DateTime,DateTime) |
| GetPermission(SecurityPermission) | 0 | 21 | 0 | ThoughtWorks.CruiseControl.Core.Security.Permissions.GetPermission (SecurityPermission) |
| Initialise() | 0 | 21 | 0 | ThoughtWorks.CruiseControl.Core.Security.InternalSecurityManager .Initialise() |
| LoadFile(String) | 0 | 26 | 0 | ThoughtWorks.CruiseControl.Core.Security.ExternalFileSecurityManager .LoadFile(String) |
| get_Subject() | 0 | 24 | 0 | ThoughtWorks.CruiseControl.Core.Publishers.EmailMessage.get_Subject() |
| WriteIntegrationProperties(IIntegrationResult) | 0 | 25 | 0 | ThoughtWorks.CruiseControl.Core.Publishers.XmlIntegrationResultWriter .WriteIntegrationProperties(IIntegrationResult) |
| WriteModifications(String,IIntegrationResult) | 0 | 22 | 0 | ThoughtWorks.CruiseControl.Core.Publishers .ModificationHistoryPublisher.WriteModifications(String ,IIntegrationResult) |
| Process(XmlDocument,String) | 0 | 21 | 0 | ThoughtWorks.CruiseControl.Core.Publishers.Statistics .StatisticsChartGenerator.Process(XmlDocument,String) |
| Execute() | 0 | 24 | 0 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard .TopControlsViewBuilder.Execute() |
| GenerateView(ProjectStatusListAndExceptions,String,ICruiseRequest ,IServerSpecifier) | 0 | 24 | 0 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard .VelocityProjectGridAction.GenerateView(ProjectStatusListAndExceptions ,String,ICruiseRequest,IServerSpecifier) |
| Execute(ICruiseRequest) | 0 | 23 | 0 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.ServerReport .ServerSecurityConfigurationServerPlugin.Execute(ICruiseRequest) |
| GenerateUserList(ICruiseRequest,String,String) | 0 | 27 | 0 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.ServerReport .ServerUserListServerPlugin.GenerateUserList(ICruiseRequest,String ,String) |
| AppendStatusDetails(ItemStatus,StringBuilder) | 0 | 22 | 0 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.ProjectReport .ProjectStatusAction.AppendStatusDetails(ItemStatus,StringBuilder) |
| WriteProjectStatus(XmlWriter,ProjectStatus,IServerSpecifier) | 0 | 23 | 0 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.FarmReport .XmlReportAction.WriteProjectStatus(XmlWriter,ProjectStatus ,IServerSpecifier) |
| Execute(IRequest) | 0 | 24 | 0 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.FarmReport .XmlProjectParametersReportAction.Execute(IRequest) |
| Read(XmlNode,NetReflectorTypeTable) | 0 | 26 | 0 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.BuildReport .BuildReportXslFilenameSerialiser.Read(XmlNode,NetReflectorTypeTable) |
| Execute(ICruiseRequest) | 0 | 24 | 0 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.CCTray .CCTrayDownloadAction.Execute(ICruiseRequest) |
| PlaySound(String,Boolean,Boolean,Boolean,Boolean,Boolean) | 0 | 28 | 0 | ThoughtWorks.CruiseControl.CCTrayLib.Audio.PlaySound(String,Boolean ,Boolean,Boolean,Boolean,Boolean) |
| BindX10Controls(X10Configuration) | 0 | 32 | 0 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.X10SettingsControl .BindX10Controls(X10Configuration) |
| UpdateEnabledState() | 0 | 25 | 0 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.X10SettingsControl .UpdateEnabledState() |
| .ctor(ICCTrayMultiConfiguration,ISynchronizeInvoke,MainForm) | 0 | 28 | 0 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainFormController. .ctor(ICCTrayMultiConfiguration,ISynchronizeInvoke,MainForm) |
| ConstructBuildServerFromSelectedOptions() | 0 | 21 | 0 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AddBuildServer .ConstructBuildServerFromSelectedOptions() |
| DisplayIntegrationQueueInTreeViewNode() | 0 | 35 | 0 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .IntegrationQueueTreeNodeAdaptor.DisplayIntegrationQueueInTreeViewNode () |
| Main(String[]) | 0 | 25 | 0 | ThoughtWorks.CruiseControl.CCTray.Bootstrap.Main(String[]) |
| Run(String[],Boolean) | 0 | 24 | 0 | ThoughtWorks.CruiseControl.Console.AppRunner.Run(String[],Boolean) |
| ValidateData(XmlDocument) | 0 | 30 | 0 | Validator.MainForm.ValidateData(XmlDocument) |
| ValidateElement(HtmlElement,XmlNode,Int32,Configuration) | 0 | 33 | 0 | Validator.MainForm.ValidateElement(HtmlElement,XmlNode,Int32 ,Configuration) |
| InternalValidation(Configuration) | 0 | 28 | 0 | Validator.MainForm.InternalValidation(Configuration) |
| Main(String[]) | 0 | 25 | 0 | Validator.Program.Main(String[]) |
| Main(String[]) | 0 | 27 | 0 | ThoughtWorks.CruiseControl.CCCmd.Program.Main(String[]) |
| Execute(IIntegrationResult) | 1 | 64 | 1 | ThoughtWorks.CruiseControl.Core.Tasks.HttpStatusTask.Execute (IIntegrationResult) |
| GetProcessArguments(IIntegrationResult) | 2 | 37 | 1 | ThoughtWorks.CruiseControl.Core.Tasks.NCoverProfileTask .GetProcessArguments(IIntegrationResult) |
| GetProcessArguments(IIntegrationResult) | 2 | 34 | 1 | ThoughtWorks.CruiseControl.Core.Tasks.NCoverReportTask .GetProcessArguments(IIntegrationResult) |
| Parse(TextReader,DateTime,DateTime) | 2 | 34 | 1 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.MksHistoryParser.Parse (TextReader,DateTime,DateTime) |
| Execute(ICruiseRequest) | 2 | 36 | 1 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.SideBarViewBuilder .Execute(ICruiseRequest) |
| .ctor() | 3 | 26 | 1 | ThoughtWorks.CruiseControl.Core.Project..ctor() |
| ParseModificationsFromLogEntry(XmlNode,DateTime,DateTime) | 3 | 29 | 1 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.SvnHistoryParser .ParseModificationsFromLogEntry(XmlNode,DateTime,DateTime) |
| GetTypeString(String) | 3 | 25 | 1 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VaultHistoryParser .GetTypeString(String) |
| eval_constant(String) | 3 | 27 | 1 | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.eval_constant(String) |
| get_Recipients() | 3 | 50 | 2 | ThoughtWorks.CruiseControl.Core.Publishers.EmailMessage.get_Recipients () |
| .ctor(String,String,String,IntegrationRequest,IntegrationSummary) | 4 | 21 | 1 | ThoughtWorks.CruiseControl.Core.IntegrationResult..ctor(String,String ,String,IntegrationRequest,IntegrationSummary) |
| RetrieveFileTransfer(FileTransferRequest) | 4 | 23 | 1 | ThoughtWorks.CruiseControl.Core.CruiseServer.RetrieveFileTransfer (FileTransferRequest) |
| AddBreakersToMessages(IIntegrationResult) | 4 | 23 | 1 | ThoughtWorks.CruiseControl.Core.Project.AddBreakersToMessages (IIntegrationResult) |
| GetRequestStatus(HttpRequestSettings) | 4 | 72 | 3 | ThoughtWorks.CruiseControl.Core.Tasks.HttpStatusTask.GetRequestStatus (HttpRequestSettings) |
| StartProcess() | 4 | 23 | 1 | ThoughtWorks.CruiseControl.Core.Util.ProcessExecutor+RunnableProcess .StartProcess() |
| Initialise() | 4 | 23 | 1 | ThoughtWorks.CruiseControl.Core.Security.FileBasedSessionCache .Initialise() |
| Compare(Object,Object) | 4 | 21 | 1 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .MainForm+ListViewItemComparer.Compare(Object,Object) |
| FindProperty(Object,String) | 5 | 32 | 2 | ThoughtWorks.CruiseControl.Core.Tasks.DynamicValueUtility.FindProperty (Object,String) |
| RetrieveUser(String) | 6 | 27 | 2 | ThoughtWorks.CruiseControl.Core.Security.InternalSecurityManager .RetrieveUser(String) |
| SaveSession(String) | 6 | 27 | 2 | ThoughtWorks.CruiseControl.Core.Security.FileBasedSessionCache .SaveSession(String) |
| Read(XmlDocument,IConfigurationErrorProcesser) | 6 | 27 | 2 | ThoughtWorks.CruiseControl.Core.Config.NetReflectorConfigurationReader .Read(XmlDocument,IConfigurationErrorProcesser) |
| .ctor(IIntegrationResult,EmailPublisher) | 6 | 27 | 2 | ThoughtWorks.CruiseControl.Core.Publishers.EmailMessage..ctor (IIntegrationResult,EmailPublisher) |
| GetCategoryLinks(IServerSpecifier[],ICruiseRequest) | 6 | 27 | 2 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.SideBarViewBuilder .GetCategoryLinks(IServerSpecifier[],ICruiseRequest) |
| FormatDetailString(ISingleProjectDetail) | 6 | 27 | 2 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.DetailStringProvider .FormatDetailString(ISingleProjectDetail) |
| updateButton_Click(Object,EventArgs) | 6 | 41 | 3 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .DisplayChangedProjects.updateButton_Click(Object,EventArgs) |
| Parse(String,OptionContext) | 8 | 21 | 2 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet.Parse(String ,OptionContext) |
| Execute(IIntegrationResult) | 8 | 34 | 3 | ThoughtWorks.CruiseControl.Core.Tasks.ModificationReaderTask.Execute (IIntegrationResult) |
| Execute(IIntegrationResult) | 8 | 21 | 2 | ThoughtWorks.CruiseControl.Core.Tasks.FtpTask.Execute (IIntegrationResult) |
| DownloadFolder(String,String,Boolean) | 8 | 42 | 4 | ThoughtWorks.CruiseControl.Core.Util.FtpLib.DownloadFolder(String ,String,Boolean) |
| GetTheList(List<Modification>,String,String,Boolean) | 8 | 42 | 4 | ThoughtWorks.CruiseControl.Core.Util.FtpLib.GetTheList(List <Modification>,String,String,Boolean) |
| Parse(TextReader,DateTime,DateTime) | 8 | 31 | 3 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Perforce.P4HistoryParser .Parse(TextReader,DateTime,DateTime) |
| ForceBuildIfNecessary(IRequest) | 8 | 23 | 2 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard .VelocityProjectGridAction.ForceBuildIfNecessary(IRequest) |
| .ctor(Object) | 8 | 22 | 2 | Validator.ConfigurationTypeDescriptor..ctor(Object) |
| OnWatcherUpdate(Object,ServerUpdateArgs) | 9 | 92 | 10 | ThoughtWorks.CruiseControl.Remote.Monitor.Server.OnWatcherUpdate (Object,ServerUpdateArgs) |
| Update(ProjectStatus) | 9 | 49 | 5 | ThoughtWorks.CruiseControl.Remote.Monitor.Project.Update(ProjectStatus ) |
| GetModifications(IIntegrationResult,IIntegrationResult) | 9 | 50 | 5 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn.GetModifications (IIntegrationResult,IIntegrationResult) |
| PublishResults(IIntegrationResult,Dictionary<String,String>) | 10 | 42 | 5 | ThoughtWorks.CruiseControl.Core.Project.PublishResults (IIntegrationResult,Dictionary<String,String>) |
| GetModification(XmlNode) | 10 | 26 | 3 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VaultHistoryParser .GetModification(XmlNode) |
| Initialize() | 10 | 27 | 3 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic.SynergyCommand .Initialize() |
| SetupObjectSourceForRequest(HttpContext) | 10 | 130 | 15 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard .CruiseObjectSourceInitializer.SetupObjectSourceForRequest(HttpContext ) |
| CheckSecurity(String,String,SecurityPermission,Nullable<SecurityEvent> ) | 11 | 52 | 7 | ThoughtWorks.CruiseControl.Core.CruiseServer.CheckSecurity(String ,String,SecurityPermission,Nullable<SecurityEvent>) |
| KillPid(Int32) | 11 | 38 | 5 | ThoughtWorks.CruiseControl.Core.Util.KillUtil.KillPid(Int32) |
| LoadInformation(NetReflectorTypeTable) | 11 | 23 | 3 | Validator.VersionInformationForm.LoadInformation(NetReflectorTypeTable ) |
| Integrate(IntegrationRequest) | 12 | 41 | 6 | ThoughtWorks.CruiseControl.Core.Project.Integrate(IntegrationRequest) |
| Execute(IIntegrationResult) | 12 | 34 | 5 | ThoughtWorks.CruiseControl.Core.Tasks.MergeFilesTask.Execute (IIntegrationResult) |
| Parse(TextReader,DateTime,DateTime) | 12 | 28 | 4 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.AccuRevHistoryParser .Parse(TextReader,DateTime,DateTime) |
| Execute(IIntegrationResult) | 12 | 21 | 3 | ThoughtWorks.CruiseControl.Core.Publishers.ConditionalPublisher .Execute(IIntegrationResult) |
| GetCategoryLinks(IServerSpecifier) | 12 | 21 | 3 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.SideBarViewBuilder .GetCategoryLinks(IServerSpecifier) |
| UpdateConfigurationFile(Boolean) | 12 | 22 | 3 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.Administration.Package .UpdateConfigurationFile(Boolean) |
| GetBuildHistory(Int32) | 12 | 29 | 4 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.Statistics.BuildGraph .GetBuildHistory(Int32) |
Statistics
| Stat | Percentage Comment | # lines of code (LOC) | # lines of comment |
|---|---|---|---|
| Sum: | 1 067 | 4 476 | 428 |
| Average: | 7.3586 | 30.869 | 2.9517 |
| Minimum: | 0 | 21 | 0 |
| Maximum: | 19 | 130 | 15 |
| Standard deviation: | 6.8578 | 14.414 | 3.1782 |
| Variance: | 47.03 | 207.76 | 10.101 |
| Rule warning: Methods with too many parameters |
// <Name>Methods with too many parameters</Name>
warnif count > 0 from m in JustMyCode.Methods where
m.NbParameters > 5
orderby m.NbParameters descending
select new { m, m.NbParameters }
// Methods where NbParameters > 5 might be painful to call
// and might degrade performance. You should prefer using
// additional properties/fields to the declaring type to
// handle numerous states. Another alternative is to provide
// a class or structure dedicated to handle arguments passing
// (for example see the class System.Diagnostics.ProcessStartInfo
// and the method System.Diagnostics.Process.Start(ProcessStartInfo))
// See the definition of the NbParameters metric here
// http://www.ndepend.com/Metrics.aspx#NbParameters
warnif count > 0 from m in JustMyCode.Methods where
m.NbParameters > 5
orderby m.NbParameters descending
select new { m, m.NbParameters }
// Methods where NbParameters > 5 might be painful to call
// and might degrade performance. You should prefer using
// additional properties/fields to the declaring type to
// handle numerous states. Another alternative is to provide
// a class or structure dedicated to handle arguments passing
// (for example see the class System.Diagnostics.ProcessStartInfo
// and the method System.Diagnostics.Process.Start(ProcessStartInfo))
// See the definition of the NbParameters metric here
// http://www.ndepend.com/Metrics.aspx#NbParameters
21 methods matched
| methods | # Parameters | Full Name |
|---|---|---|
| methods | # Parameters | Full Name |
| .ctor(String,String,ProjectActivity,IntegrationStatus ,ProjectIntegratorState,String,DateTime,String,String,DateTime,String ,String,Int32) | 13 | ThoughtWorks.CruiseControl.Remote.ProjectStatus..ctor(String,String ,ProjectActivity,IntegrationStatus,ProjectIntegratorState,String ,DateTime,String,String,DateTime,String,String,Int32) |
| .ctor(ICruiseRequest,IBuildNameRetriever,IRecentBuildsViewBuilder ,IPluginLinkCalculator,IVelocityViewGenerator,ILinkFactory ,ILinkListFactory,IFarmService,IFingerprintFactory) | 9 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.SideBarViewBuilder. .ctor(ICruiseRequest,IBuildNameRetriever,IRecentBuildsViewBuilder ,IPluginLinkCalculator,IVelocityViewGenerator,ILinkFactory ,ILinkListFactory,IFarmService,IFingerprintFactory) |
| .ctor(IFarmService,IVelocityTransformer,IVelocityViewGenerator ,ILinkFactory,ILinkListFactory,IFingerprintFactory,ICruiseUrlBuilder ,ISessionRetriever) | 8 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.RecentBuildLister. .ctor(IFarmService,IVelocityTransformer,IVelocityViewGenerator ,ILinkFactory,ILinkListFactory,IFingerprintFactory,ICruiseUrlBuilder ,ISessionRetriever) |
| .ctor(IAction,IVelocityViewGenerator,ObjectSource,IVersionProvider ,IFingerprintFactory,IUrlBuilder,IPluginConfiguration,ICruiseRequest) | 8 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.ActionDecorators .SiteTemplateActionDecorator..ctor(IAction,IVelocityViewGenerator ,ObjectSource,IVersionProvider,IFingerprintFactory,IUrlBuilder ,IPluginConfiguration,ICruiseRequest) |
| .ctor(IConfigurationService,IProjectIntegratorListFactory ,IProjectSerializer,IProjectStateManager,IFileSystem ,IExecutionEnvironment,List<ExtensionConfiguration>) | 7 | ThoughtWorks.CruiseControl.Core.CruiseServer..ctor (IConfigurationService,IProjectIntegratorListFactory ,IProjectSerializer,IProjectStateManager,IFileSystem ,IExecutionEnvironment,List<ExtensionConfiguration>) |
| GetMailMessage(String,String,String,String,String,String,String[]) | 7 | ThoughtWorks.CruiseControl.Core.Publishers.EmailPublisher .GetMailMessage(String,String,String,String,String,String,String[]) |
| GenerateProjectGridRows(ProjectStatusOnServer[],String ,ProjectGridSortColumn,Boolean,String,ICruiseUrlBuilder,Translations) | 7 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.IProjectGrid .GenerateProjectGridRows(ProjectStatusOnServer[],String ,ProjectGridSortColumn,Boolean,String,ICruiseUrlBuilder,Translations) |
| GenerateProjectGridRows(ProjectStatusOnServer[],String ,ProjectGridSortColumn,Boolean,String,ICruiseUrlBuilder,Translations) | 7 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.ProjectGrid .GenerateProjectGridRows(ProjectStatusOnServer[],String ,ProjectGridSortColumn,Boolean,String,ICruiseUrlBuilder,Translations) |
| LogErrorOrWarning(String,String,String,String,Int32,Int32,DateTime) | 7 | ThoughtWorks.CruiseControl.MSBuild.XmlLogger.LogErrorOrWarning(String ,String,String,String,Int32,Int32,DateTime) |
| LogonUser(String,String,String,Int32,Int32,IntPtr&) | 6 | ThoughtWorks.CruiseControl.Core.Util.Impersonation.LogonUser(String ,String,String,Int32,Int32,IntPtr&) |
| CreateNewModification(String,String,String,String,String,String) | 6 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.ClearCaseHistoryParser .CreateNewModification(String,String,String,String,String,String) |
| .ctor(String,SecurityRight,SecurityRight,SecurityRight,SecurityRight ,UserName[]) | 6 | ThoughtWorks.CruiseControl.Core.Security.RolePermission..ctor(String ,SecurityRight,SecurityRight,SecurityRight,SecurityRight,UserName[]) |
| SendMessage(String,String,String,String,String,String) | 6 | ThoughtWorks.CruiseControl.Core.Publishers.EmailPublisher.SendMessage (String,String,String,String,String,String) |
| .ctor(ICruiseRequest,ILinkFactory,IVelocityViewGenerator ,IDashboardConfiguration,ISessionRetriever,ISessionStorer) | 6 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.LoginViewBuilder. .ctor(ICruiseRequest,ILinkFactory,IVelocityViewGenerator ,IDashboardConfiguration,ISessionRetriever,ISessionStorer) |
| .ctor(ICruiseRequest,ILinkFactory,IVelocityViewGenerator,IFarmService ,IFingerprintFactory,ISessionRetriever) | 6 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard .TopControlsViewBuilder..ctor(ICruiseRequest,ILinkFactory ,IVelocityViewGenerator,IFarmService,IFingerprintFactory ,ISessionRetriever) |
| .ctor(IProjectSpecifier,String,Boolean,Boolean,Boolean,Boolean) | 6 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.DeleteProject .DeleteProjectModel..ctor(IProjectSpecifier,String,Boolean,Boolean ,Boolean,Boolean) |
| PlaySound(Byte[],Boolean,Boolean,Boolean,Boolean,Boolean) | 6 | ThoughtWorks.CruiseControl.CCTrayLib.Audio.PlaySound(Byte[],Boolean ,Boolean,Boolean,Boolean,Boolean) |
| PlaySound(String,Boolean,Boolean,Boolean,Boolean,Boolean) | 6 | ThoughtWorks.CruiseControl.CCTrayLib.Audio.PlaySound(String,Boolean ,Boolean,Boolean,Boolean,Boolean) |
| .ctor(CheckBox,TextBox,Button,Button,OpenFileDialog,String) | 6 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .SelectAudioFileController..ctor(CheckBox,TextBox,Button,Button ,OpenFileDialog,String) |
| .ctor(String,String,Int32,Parity,Int32,StopBits) | 6 | ThoughtWorks.CruiseControl.CCTrayLib.X10.Cm11LowLevelDriver..ctor (String,String,Int32,Parity,Int32,StopBits) |
| .ctor(Cm11LowLevelDriver+CM11aHouseCode,String,Int32,Parity,Int32 ,StopBits) | 6 | ThoughtWorks.CruiseControl.CCTrayLib.X10 .Cm11LowLevelDriver+Cm11LowLevelDriverWorker..ctor (Cm11LowLevelDriver+CM11aHouseCode,String,Int32,Parity,Int32,StopBits) |
Statistics
| Stat | # Parameters |
|---|---|
| Sum: | 145 |
| Average: | 6.9048 |
| Minimum: | 6 |
| Maximum: | 13 |
| Standard deviation: | 1.6007 |
| Variance: | 2.5624 |
| Rule warning: Methods with too many local variables |
// <Name>Methods with too many local variables</Name>
warnif count > 0 from m in JustMyCode.Methods where
m.NbVariables > 15
orderby m.NbVariables descending
select new { m, m.NbVariables }
// Methods where NbVariables > 8 are hard to understand and maintain.
// Methods where NbVariables > 15 are extremely complex
// and should be split in smaller methods.
// See the definition of the Nbvariables metric here
// http://www.ndepend.com/Metrics.aspx#Nbvariables
warnif count > 0 from m in JustMyCode.Methods where
m.NbVariables > 15
orderby m.NbVariables descending
select new { m, m.NbVariables }
// Methods where NbVariables > 8 are hard to understand and maintain.
// Methods where NbVariables > 15 are extremely complex
// and should be split in smaller methods.
// See the definition of the Nbvariables metric here
// http://www.ndepend.com/Metrics.aspx#Nbvariables
7 methods matched
| methods | # Variables | Full Name |
|---|---|---|
| methods | # Variables | Full Name |
| ConvertXmlToDynamicValues(NetReflectorTypeTable,XmlNode,String[]) | 22 | ThoughtWorks.CruiseControl.Core.Tasks.DynamicValueUtility .ConvertXmlToDynamicValues(NetReflectorTypeTable,XmlNode,String[]) |
| ImportCode(XmlDocument) | 21 | ThoughtWorks.CruiseControl.Core.Tasks.DupFinderTask.ImportCode (XmlDocument) |
| OnWatcherUpdate(Object,ServerUpdateArgs) | 20 | ThoughtWorks.CruiseControl.Remote.Monitor.Server.OnWatcherUpdate (Object,ServerUpdateArgs) |
| GetRequestStatus(HttpRequestSettings) | 18 | ThoughtWorks.CruiseControl.Core.Tasks.HttpStatusTask.GetRequestStatus (HttpRequestSettings) |
| MatchPath(String,String,Boolean) | 16 | ThoughtWorks.CruiseControl.Core.Util.PathUtils.MatchPath(String,String ,Boolean) |
| Parse(TextReader,DateTime,DateTime) | 16 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.MksHistoryParser.Parse (TextReader,DateTime,DateTime) |
| SetupObjectSourceForRequest(HttpContext) | 16 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard .CruiseObjectSourceInitializer.SetupObjectSourceForRequest(HttpContext ) |
Statistics
| Stat | # Variables |
|---|---|
| Sum: | 129 |
| Average: | 18.429 |
| Minimum: | 16 |
| Maximum: | 22 |
| Standard deviation: | 2.3819 |
| Variance: | 5.6735 |
| Rule warning: Methods with too many overloads |
// <Name>Methods with too many overloads</Name>
warnif count > 0 from m in JustMyCode.Methods where
m.NbOverloads > 6 &&
!m.IsOperator // Don't report operator overload
orderby m.NbOverloads descending
select new { m, m.NbOverloads }
// Methods where NbOverloads > 6 might
// be a problem to maintain and provoke higher coupling
// than necessary.
// This might also reveal a potential misused of the
// C# and VB.NET language that since C#3 and VB9 support
// object initialization. This feature helps reducing the number
// of constructors of a class.
// See the definition of the NbOverloads metric here
// http://www.ndepend.com/Metrics.aspx#NbOverloads
warnif count > 0 from m in JustMyCode.Methods where
m.NbOverloads > 6 &&
!m.IsOperator // Don't report operator overload
orderby m.NbOverloads descending
select new { m, m.NbOverloads }
// Methods where NbOverloads > 6 might
// be a problem to maintain and provoke higher coupling
// than necessary.
// This might also reveal a potential misused of the
// C# and VB.NET language that since C#3 and VB9 support
// object initialization. This feature helps reducing the number
// of constructors of a class.
// See the definition of the NbOverloads metric here
// http://www.ndepend.com/Metrics.aspx#NbOverloads
9 methods matched
| methods | # Overloads | Full Name |
|---|---|---|
| methods | # Overloads | Full Name |
| Add(Option) | 9 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet.Add(Option) |
| Add(String,Action<String>) | 9 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet.Add(String,Action <String>) |
| Add(String,String,Action<String>) | 9 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet.Add(String,String ,Action<String>) |
| Add(String,OptionAction<String,String>) | 9 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet.Add(String ,OptionAction<String,String>) |
| Add(String,String,OptionAction<String,String>) | 9 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet.Add(String,String ,OptionAction<String,String>) |
| Add<T>(String,Action<T>) | 9 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet.Add<T>(String,Action <T>) |
| Add<T>(String,String,Action<T>) | 9 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet.Add<T>(String,String ,Action<T>) |
| Add<TKey,TValue>(String,OptionAction<TKey,TValue>) | 9 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet.Add<TKey,TValue> (String,OptionAction<TKey,TValue>) |
| Add<TKey,TValue>(String,String,OptionAction<TKey,TValue>) | 9 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet.Add<TKey,TValue> (String,String,OptionAction<TKey,TValue>) |
Statistics
| Stat | # Overloads |
|---|---|
| Sum: | 81 |
| Average: | 9 |
| Minimum: | 9 |
| Maximum: | 9 |
| Standard deviation: | 0 |
| Variance: | 0 |
| Rule warning: Types with too many methods |
// <Name>Types with too many methods</Name>
warnif count > 0 from t in JustMyCode.Types where
t.Methods.Count() > 20
orderby t.Methods.Count() descending
select new { t, t.InstanceMethods, t.StaticMethods }
// Types where Methods.Count() > 20 might be hard to
// understand and maintain
// but there might be cases where it is relevant
// to have a high number of methods.
// For example, the System.Windows.Forms.DataGridView
// standard class has more than 1000 methods.
warnif count > 0 from t in JustMyCode.Types where
t.Methods.Count() > 20
orderby t.Methods.Count() descending
select new { t, t.InstanceMethods, t.StaticMethods }
// Types where Methods.Count() > 20 might be hard to
// understand and maintain
// but there might be cases where it is relevant
// to have a high number of methods.
// For example, the System.Windows.Forms.DataGridView
// standard class has more than 1000 methods.
65 types matched
| types | InstanceMethods | StaticMethods | Full Name |
|---|---|---|---|
| types | InstanceMethods | StaticMethods | Full Name |
| Project | 92 methods | 1 method | ThoughtWorks.CruiseControl.Core.Project |
| NCoverProfileTask | 73 methods | 0 method | ThoughtWorks.CruiseControl.Core.Tasks.NCoverProfileTask |
| CruiseServer | 70 methods | 1 method | ThoughtWorks.CruiseControl.Core.CruiseServer |
| ICruiseServer | 70 methods | 0 method | ThoughtWorks.CruiseControl.Remote.ICruiseServer |
| IntegrationResult | 69 methods | 1 method | ThoughtWorks.CruiseControl.Core.IntegrationResult |
| Svn | 62 methods | 4 methods | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn |
| CruiseServerClientBase | 63 methods | 0 method | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase |
| RemoteCruiseServer | 62 methods | 0 method | ThoughtWorks.CruiseControl.Core.RemoteCruiseServer |
| NCoverReportTask | 56 methods | 0 method | ThoughtWorks.CruiseControl.Core.Tasks.NCoverReportTask |
| IIntegrationResult | 55 methods | 0 method | ThoughtWorks.CruiseControl.Core.IIntegrationResult |
| ServerAggregatingCruiseManagerWrapper | 55 methods | 0 method | ThoughtWorks.CruiseControl.WebDashboard.ServerConnection .ServerAggregatingCruiseManagerWrapper |
| CruiseServerClient | 54 methods | 0 method | ThoughtWorks.CruiseControl.Remote.CruiseServerClient |
| MainFormController | 51 methods | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainFormController |
| MainForm | 52 methods | 0 method | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm |
| CruiseServerClient | 49 methods | 2 methods | ThoughtWorks.CruiseControl.Core.CruiseServerClient |
| ProjectMonitor | 50 methods | 0 method | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring.ProjectMonitor |
| StubProjectMonitor | 49 methods | 0 method | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.StubProjectMonitor |
| Project | 45 methods | 0 method | ThoughtWorks.CruiseControl.Remote.Monitor.Project |
| Server | 44 methods | 0 method | ThoughtWorks.CruiseControl.Remote.Monitor.Server |
| MainForm | 42 methods | 1 method | Validator.MainForm |
| EmailPublisher | 40 methods | 2 methods | ThoughtWorks.CruiseControl.Core.Publishers.EmailPublisher |
| ICruiseServerClient | 41 methods | 0 method | ThoughtWorks.CruiseControl.Remote.ICruiseServerClient |
| IFarmService | 41 methods | 0 method | ThoughtWorks.CruiseControl.WebDashboard.ServerConnection.IFarmService |
| Pvcs | 34 methods | 4 methods | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Pvcs |
| CCTrayMultiConfiguration | 37 methods | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration .CCTrayMultiConfiguration |
| Workflow | 36 methods | 0 method | ThoughtWorks.CruiseControl.Core.Workflow |
| CruiseServerEventsBase | 36 methods | 0 method | ThoughtWorks.CruiseControl.Core.CruiseServerEventsBase |
| DupFinderTask | 36 methods | 0 method | ThoughtWorks.CruiseControl.Core.Tasks.DupFinderTask |
| OptionSet | 25 methods | 10 methods | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet |
| ICCTrayMultiConfiguration | 35 methods | 0 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration .ICCTrayMultiConfiguration |
| IProject | 34 methods | 0 method | ThoughtWorks.CruiseControl.Core.IProject |
| StarTeam | 34 methods | 0 method | ThoughtWorks.CruiseControl.Core.Sourcecontrol.StarTeam |
| ProjectStatus | 33 methods | 0 method | ThoughtWorks.CruiseControl.Remote.ProjectStatus |
| CruiseServerRemotingClient | 32 methods | 0 method | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient |
| CruiseManager | 32 methods | 0 method | ThoughtWorks.CruiseControl.Core.CruiseManager |
| HttpStatusTask+HttpRequestStatus | 31 methods | 0 method | ThoughtWorks.CruiseControl.Core.Tasks.HttpStatusTask+HttpRequestStatus |
| NDependTask | 31 methods | 0 method | ThoughtWorks.CruiseControl.Core.Tasks.NDependTask |
| OptionValueCollection | 30 methods | 0 method | ThoughtWorks.CruiseControl.Remote.Mono.OptionValueCollection |
| AggregatingProjectMonitor | 30 methods | 0 method | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring .AggregatingProjectMonitor |
| ICruiseManager | 28 methods | 0 method | ThoughtWorks.CruiseControl.Remote.ICruiseManager |
| ProjectIntegrator | 28 methods | 0 method | ThoughtWorks.CruiseControl.Core.ProjectIntegrator |
| HttpRequestSettings | 28 methods | 0 method | ThoughtWorks.CruiseControl.Core.Tasks.HttpRequestSettings |
| CodeItRightTask | 27 methods | 1 method | ThoughtWorks.CruiseControl.Core.Tasks.CodeItRightTask |
| SecurityManagerBase | 28 methods | 0 method | ThoughtWorks.CruiseControl.Core.Security.SecurityManagerBase |
| SynchronizedProjectMonitor | 28 methods | 0 method | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .SynchronizedProjectMonitor |
| ProjectGridRow | 27 methods | 0 method | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.ProjectGridRow |
| ItemStatus | 24 methods | 0 method | ThoughtWorks.CruiseControl.Remote.ItemStatus |
| Vsts | 24 methods | 0 method | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vsts |
| SynergyCommandBuilder | 0 method | 24 methods | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic .SynergyCommandBuilder |
| PackagePublisher | 24 methods | 0 method | ThoughtWorks.CruiseControl.Core.Publishers.PackagePublisher |
| SystemIoFileSystem | 23 methods | 0 method | ThoughtWorks.CruiseControl.Core.Util.SystemIoFileSystem |
| Git | 23 methods | 0 method | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Git |
| SynchronizedServerMonitor | 23 methods | 0 method | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .SynchronizedServerMonitor |
| IProjectMonitor | 23 methods | 0 method | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring.IProjectMonitor |
| ServerMonitor | 23 methods | 0 method | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring.ServerMonitor |
| CruiseServerClientFactory | 19 methods | 3 methods | ThoughtWorks.CruiseControl.Remote.CruiseServerClientFactory |
| IntegrationQueue | 22 methods | 0 method | ThoughtWorks.CruiseControl.Core.Queues.IntegrationQueue |
| LdapHelper | 22 methods | 0 method | ThoughtWorks.CruiseControl.Core.Util.LdapHelper |
| Vss | 22 methods | 0 method | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vss |
| Mercurial | 21 methods | 1 method | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mercurial.Mercurial |
| ProjectBase | 21 methods | 0 method | ThoughtWorks.CruiseControl.Core.ProjectBase |
| DevenvTask | 21 methods | 0 method | ThoughtWorks.CruiseControl.Core.Tasks.DevenvTask |
| MultipleTrigger | 21 methods | 0 method | ThoughtWorks.CruiseControl.Core.Triggers.MultipleTrigger |
| Cvs | 21 methods | 0 method | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Cvs |
| Program | 0 method | 21 methods | ThoughtWorks.CruiseControl.CCCmd.Program |
Statistics
| Stat | InstanceMethods | StaticMethods |
|---|---|---|
| Sum: | 0 | 0 |
| Average: | 0 | 0 |
| Minimum: | 0 | 0 |
| Maximum: | 0 | 0 |
| Standard deviation: | 0 | 0 |
| Variance: | 0 | 0 |
| Rule warning: Types with too many fields |
// <Name>Types with too many fields</Name>
warnif count > 0 from t in JustMyCode.Types where
t.Fields.Count() > 20 &&
!t.IsEnumeration
orderby t.Fields.Count() descending
select new { t, t.InstanceFields, t.StaticFields, t.SizeOfInst }
// Types where Fields.Count() > 20 and not IsEnumeration
// might be hard to understand and maintain
// but there might be cases where it is relevant
// to have a high number of fields.
// For example, the System.Windows.Forms.Control
// standard class has more than 200 fields.
warnif count > 0 from t in JustMyCode.Types where
t.Fields.Count() > 20 &&
!t.IsEnumeration
orderby t.Fields.Count() descending
select new { t, t.InstanceFields, t.StaticFields, t.SizeOfInst }
// Types where Fields.Count() > 20 and not IsEnumeration
// might be hard to understand and maintain
// but there might be cases where it is relevant
// to have a high number of fields.
// For example, the System.Windows.Forms.Control
// standard class has more than 200 fields.
19 types matched
| types | InstanceFields | StaticFields | Size of instance | Full Name |
|---|---|---|---|---|
| types | InstanceFields | StaticFields | Size of instance | Full Name |
| MainForm | 61 fields | 1 field | 544 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm |
| MainForm | 49 fields | 2 fields | 499 | Validator.MainForm |
| NCoverProfileTask | 35 fields | 1 field | 157 | ThoughtWorks.CruiseControl.Core.Tasks.NCoverProfileTask |
| AddBuildServer | 33 fields | 0 field | 438 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AddBuildServer |
| VaultVersionChecker | 25 fields | 6 fields | 89 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VaultVersionChecker |
| Pvcs | 20 fields | 7 fields | 85 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Pvcs |
| X10SettingsControl | 27 fields | 0 field | 317 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.X10SettingsControl |
| Project | 26 fields | 0 field | 141 | ThoughtWorks.CruiseControl.Core.Project |
| NCoverReportTask | 25 fields | 1 field | 123 | ThoughtWorks.CruiseControl.Core.Tasks.NCoverReportTask |
| CCTrayMultiSettingsForm | 26 fields | 0 field | 410 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .CCTrayMultiSettingsForm |
| P4 | 20 fields | 5 fields | 76 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Perforce.P4 |
| GendarmeTask | 16 fields | 8 fields | 84 | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask |
| Svn | 22 fields | 2 fields | 78 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn |
| Vsts | 15 fields | 9 fields | 65 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vsts |
| DevenvTask | 12 fields | 11 fields | 65 | ThoughtWorks.CruiseControl.Core.Tasks.DevenvTask |
| IntegrationResult | 21 fields | 1 field | 89 | ThoughtWorks.CruiseControl.Core.IntegrationResult |
| IconSettingsControl | 22 fields | 0 field | 297 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.IconSettingsControl |
| AudioSettingsControl | 22 fields | 0 field | 297 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AudioSettingsControl |
| MainFormController | 21 fields | 0 field | 84 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainFormController |
Statistics
| Stat | InstanceFields | StaticFields | Size of instance |
|---|---|---|---|
| Sum: | 0 | 0 | 3 938 |
| Average: | 0 | 0 | 207.26 |
| Minimum: | 0 | 0 | 65 |
| Maximum: | 0 | 0 | 544 |
| Standard deviation: | 0 | 0 | 159.4 |
| Variance: | 0 | 0 | 25 407 |
| Rule warning: Types with poor cohesion |
// <Name>Types with poor cohesion</Name>
warnif count > 0 from t in JustMyCode.Types where
(t.LCOM > 0.8 || t.LCOMHS > 0.95) &&
t.NbFields > 10 &&
t.NbMethods >10
orderby t.LCOM descending, t.LCOMHS descending
select new { t, t.LCOM, t.LCOMHS,
t.NbMethods, t.NbFields }
// Types where LCOM > 0.8 and NbFields > 10
// and NbMethods >10 might be problematic.
// However, it is very hard to avoid such
// non-cohesive types. The LCOMHS metric
// is often considered as more efficient to
// detect non-cohesive types.
// See the definition of the LCOM metric here
// http://www.ndepend.com/Metrics.aspx#LCOM
warnif count > 0 from t in JustMyCode.Types where
(t.LCOM > 0.8 || t.LCOMHS > 0.95) &&
t.NbFields > 10 &&
t.NbMethods >10
orderby t.LCOM descending, t.LCOMHS descending
select new { t, t.LCOM, t.LCOMHS,
t.NbMethods, t.NbFields }
// Types where LCOM > 0.8 and NbFields > 10
// and NbMethods >10 might be problematic.
// However, it is very hard to avoid such
// non-cohesive types. The LCOMHS metric
// is often considered as more efficient to
// detect non-cohesive types.
// See the definition of the LCOM metric here
// http://www.ndepend.com/Metrics.aspx#LCOM
40 types matched
| types | Lack of Cohesion Of Methods (LCOM) | LCOM Henderson-Sellers (LCOMHS) | # Methods | # Fields | Full Name |
|---|---|---|---|---|---|
| types | Lack of Cohesion Of Methods (LCOM) | LCOM Henderson-Sellers (LCOMHS) | # Methods | # Fields | Full Name |
| NCoverProfileTask | 0.96667 | 0.97973 | 75 | 36 | ThoughtWorks.CruiseControl.Core.Tasks.NCoverProfileTask |
| CruiseServer | 0.95698 | 0.97148 | 72 | 19 | ThoughtWorks.CruiseControl.Core.CruiseServer |
| NCoverReportTask | 0.9569 | 0.97368 | 58 | 26 | ThoughtWorks.CruiseControl.Core.Tasks.NCoverReportTask |
| Svn | 0.95652 | 0.97059 | 69 | 24 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn |
| Project | 0.95479 | 0.96505 | 95 | 26 | ThoughtWorks.CruiseControl.Core.Project |
| MainForm | 0.95427 | 0.97812 | 44 | 51 | Validator.MainForm |
| MainForm | 0.9502 | 0.96847 | 54 | 62 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm |
| DupFinderTask | 0.94737 | 0.97297 | 38 | 17 | ThoughtWorks.CruiseControl.Core.Tasks.DupFinderTask |
| IntegrationResult | 0.93933 | 0.95256 | 72 | 22 | ThoughtWorks.CruiseControl.Core.IntegrationResult |
| MainFormController | 0.93862 | 0.95996 | 53 | 21 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainFormController |
| Git | 0.936 | 0.975 | 25 | 16 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Git |
| Pvcs | 0.93 | 0.95385 | 40 | 27 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Pvcs |
| EmailPublisher | 0.92769 | 0.94926 | 44 | 12 | ThoughtWorks.CruiseControl.Core.Publishers.EmailPublisher |
| Project | 0.92683 | 0.95 | 46 | 13 | ThoughtWorks.CruiseControl.Remote.Monitor.Project |
| StarTeam | 0.92063 | 0.94694 | 36 | 16 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.StarTeam |
| Mks | 0.91905 | 0.965 | 21 | 16 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mks |
| CruiseServerEventsBase | 0.91892 | 0.94444 | 37 | 12 | ThoughtWorks.CruiseControl.Core.CruiseServerEventsBase |
| Mercurial | 0.91288 | 0.95257 | 24 | 15 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mercurial.Mercurial |
| Server | 0.90667 | 0.92517 | 50 | 15 | ThoughtWorks.CruiseControl.Remote.Monitor.Server |
| DevenvTask | 0.9058 | 0.94697 | 23 | 23 | ThoughtWorks.CruiseControl.Core.Tasks.DevenvTask |
| SynergyConnectionInfo | 0.90476 | 0.96939 | 15 | 14 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic .SynergyConnectionInfo |
| NDependTask | 0.90152 | 0.92969 | 33 | 16 | ThoughtWorks.CruiseControl.Core.Tasks.NDependTask |
| Vss | 0.89846 | 0.9359 | 25 | 19 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vss |
| AddBuildServer | 0.89755 | 0.94242 | 21 | 33 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AddBuildServer |
| ProjectStatus | 0.89444 | 0.92 | 36 | 16 | ThoughtWorks.CruiseControl.Remote.ProjectStatus |
| Cvs | 0.8913 | 0.93182 | 23 | 19 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Cvs |
| Vsts | 0.88974 | 0.92533 | 26 | 24 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vsts |
| VaultVersionChecker | 0.88667 | 0.96727 | 12 | 31 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VaultVersionChecker |
| AddProjects | 0.87843 | 0.94118 | 15 | 17 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AddProjects |
| P4 | 0.87826 | 0.91818 | 23 | 25 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Perforce.P4 |
| ProjectBase | 0.875 | 0.91304 | 24 | 12 | ThoughtWorks.CruiseControl.Core.ProjectBase |
| MsBuildTask | 0.86713 | 0.93939 | 13 | 13 | ThoughtWorks.CruiseControl.Core.Tasks.MsBuildTask |
| PowerShellTask | 0.85802 | 0.9085 | 18 | 16 | ThoughtWorks.CruiseControl.Core.Tasks.PowerShellTask |
| Cm11LowLevelDriver+Cm11LowLevelDriverWorker | 0.84921 | 0.89916 | 18 | 16 | ThoughtWorks.CruiseControl.CCTrayLib.X10 .Cm11LowLevelDriver+Cm11LowLevelDriverWorker |
| PackagesListForm | 0.84868 | 0.90526 | 16 | 19 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.PackagesListForm |
| BuildProjectsControl | 0.83929 | 0.89524 | 16 | 14 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.BuildProjectsControl |
| ClearCase | 0.82828 | 0.86772 | 22 | 11 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.ClearCase |
| CurrentStatusWindow | 0.81538 | 0.88333 | 13 | 15 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.CurrentStatusWindow |
| GendarmeTask | 0.8125 | 0.89375 | 11 | 24 | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask |
| NAntTask | 0.80357 | 0.86538 | 14 | 19 | ThoughtWorks.CruiseControl.Core.Tasks.NAntTask |
Statistics
| Stat | Lack of Cohesion Of Methods (LCOM) | LCOM Henderson-Sellers (LCOMHS) | # Methods | # Fields |
|---|---|---|---|---|
| Sum: | 36.044 | 37.554 | 1 370 | 842 |
| Average: | 0.90111 | 0.93884 | 34.25 | 21.05 |
| Minimum: | 0.80357 | 0.86538 | 11 | 11 |
| Maximum: | 0.96667 | 0.97973 | 95 | 62 |
| Standard deviation: | 0.043555 | 0.030608 | 20.596 | 10.109 |
| Variance: | 0.001897 | 0.00093685 | 424.19 | 102.2 |
| Code Quality Regression |
|
|
| Rule warning: From now, all methods added or refactored should respect basic quality principles |
// <Name>From now, all methods added or refactored should respect basic quality principles</Name>
warnif count > 0 from m in JustMyCode.Methods where
// *** Only new or modified methods since Baseline for Comparison ***
(m.WasAdded() || m.CodeWasChanged()) &&
// Low Quality methods// Metrics' definitions
( m.NbLinesOfCode > 30 || // http://www.ndepend.com/Metrics.aspx#NbLinesOfCode
m.NbILInstructions > 200 || // http://www.ndepend.com/Metrics.aspx#NbILInstructions
m.CyclomaticComplexity > 20 || // http://www.ndepend.com/Metrics.aspx#CC
m.ILCyclomaticComplexity > 50 || // http://www.ndepend.com/Metrics.aspx#ILCC
m.ILNestingDepth > 4 || // http://www.ndepend.com/Metrics.aspx#ILNestingDepth
m.NbParameters > 5 || // http://www.ndepend.com/Metrics.aspx#NbParameters
m.NbVariables > 8 || // http://www.ndepend.com/Metrics.aspx#NbVariables
m.NbOverloads > 6 )
select new { m, m.NbLinesOfCode, m.NbILInstructions, m.CyclomaticComplexity,
m.ILCyclomaticComplexity, m.ILNestingDepth,
m.NbParameters, m.NbVariables, m.NbOverloads } // http://www.ndepend.com/Metrics.aspx#NbOverloads
// This rule warns if a method with
// low-quality has been added or refactored.
// With NDepend and such rule, you can
// Ensure Quality From Now! as explained here:
// http://codebetter.com/blogs/patricksmacchia/archive/2008/01/01/ensure-the-quality-of-the-code-that-will-be-developed-this-year.aspx
warnif count > 0 from m in JustMyCode.Methods where
// *** Only new or modified methods since Baseline for Comparison ***
(m.WasAdded() || m.CodeWasChanged()) &&
// Low Quality methods// Metrics' definitions
( m.NbLinesOfCode > 30 || // http://www.ndepend.com/Metrics.aspx#NbLinesOfCode
m.NbILInstructions > 200 || // http://www.ndepend.com/Metrics.aspx#NbILInstructions
m.CyclomaticComplexity > 20 || // http://www.ndepend.com/Metrics.aspx#CC
m.ILCyclomaticComplexity > 50 || // http://www.ndepend.com/Metrics.aspx#ILCC
m.ILNestingDepth > 4 || // http://www.ndepend.com/Metrics.aspx#ILNestingDepth
m.NbParameters > 5 || // http://www.ndepend.com/Metrics.aspx#NbParameters
m.NbVariables > 8 || // http://www.ndepend.com/Metrics.aspx#NbVariables
m.NbOverloads > 6 )
select new { m, m.NbLinesOfCode, m.NbILInstructions, m.CyclomaticComplexity,
m.ILCyclomaticComplexity, m.ILNestingDepth,
m.NbParameters, m.NbVariables, m.NbOverloads } // http://www.ndepend.com/Metrics.aspx#NbOverloads
// This rule warns if a method with
// low-quality has been added or refactored.
// With NDepend and such rule, you can
// Ensure Quality From Now! as explained here:
// http://codebetter.com/blogs/patricksmacchia/archive/2008/01/01/ensure-the-quality-of-the-code-that-will-be-developed-this-year.aspx
20 methods matched
| methods | # lines of code (LOC) | # IL instructions | Cyclomatic Complexity (CC) | IL Cyclomatic Complexity (ILCC) | IL Nesting Depth | # Parameters | # Variables | # Overloads | Full Name |
|---|---|---|---|---|---|---|---|---|---|
| methods | # lines of code (LOC) | # IL instructions | Cyclomatic Complexity (CC) | IL Cyclomatic Complexity (ILCC) | IL Nesting Depth | # Parameters | # Variables | # Overloads | Full Name |
| Integrate(IntegrationRequest) | 45 | 301 | 12 | 17 | 2 | 1 | 7 | 1 | ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate (IntegrationRequest) |
| .ctor(IConfigurationService,IProjectIntegratorListFactory ,IProjectSerializer,IProjectStateManager,IFileSystem ,IExecutionEnvironment,List<ExtensionConfiguration>) | 30 | 158 | 4 | 6 | 1 | 7 | 1 | 1 | ThoughtWorks.CruiseControl.Core.CruiseServer..ctor (IConfigurationService,IProjectIntegratorListFactory ,IProjectSerializer,IProjectStateManager,IFileSystem ,IExecutionEnvironment,List<ExtensionConfiguration>) |
| CheckSecurity(String,String,SecurityPermission,Nullable<SecurityEvent> ) | 52 | 416 | 23 | 26 | 4 | 4 | 8 | 1 | ThoughtWorks.CruiseControl.Core.CruiseServer.CheckSecurity(String ,String,SecurityPermission,Nullable<SecurityEvent>) |
| PublishResults(IIntegrationResult,Dictionary<String,String>) | 42 | 247 | 13 | 25 | 3 | 2 | 8 | 2 | ThoughtWorks.CruiseControl.Core.Project.PublishResults (IIntegrationResult,Dictionary<String,String>) |
| Validate(IConfiguration,ConfigurationTrace ,IConfigurationErrorProcesser) | 26 | 141 | 10 | 15 | 4 | 3 | 11 | 1 | ThoughtWorks.CruiseControl.Core.Tasks.BaseExecutableTask.Validate (IConfiguration,ConfigurationTrace,IConfigurationErrorProcesser) |
| Execute(IIntegrationResult) | 26 | 204 | 9 | 15 | 4 | 1 | 8 | 1 | ThoughtWorks.CruiseControl.Core.Tasks.CruiseServerControlTask.Execute (IIntegrationResult) |
| Execute(IIntegrationResult) | 34 | 250 | 14 | 19 | 4 | 1 | 8 | 1 | ThoughtWorks.CruiseControl.Core.Tasks.MergeFilesTask.Execute (IIntegrationResult) |
| Execute(IIntegrationResult) | 27 | 184 | 7 | 11 | 2 | 1 | 9 | 1 | ThoughtWorks.CruiseControl.Core.Tasks.SequentialTask.Execute (IIntegrationResult) |
| Execute(IIntegrationResult) | 35 | 262 | 10 | 17 | 3 | 1 | 10 | 1 | ThoughtWorks.CruiseControl.Core.Tasks.SynchronisationTask.Execute (IIntegrationResult) |
| ImportCode(XmlDocument) | 56 | 323 | 10 | 28 | 3 | 1 | 21 | 1 | ThoughtWorks.CruiseControl.Core.Tasks.DupFinderTask.ImportCode (XmlDocument) |
| Enqueue(IIntegrationQueueItem) | 46 | 319 | 14 | 26 | 3 | 1 | 5 | 1 | ThoughtWorks.CruiseControl.Core.Queues.IntegrationQueue.Enqueue (IIntegrationQueueItem) |
| RetrieveUserInformation(String) | 32 | 208 | 4 | 5 | 1 | 1 | 6 | 1 | ThoughtWorks.CruiseControl.Core.Util.LdapHelper .RetrieveUserInformation(String) |
| GetModifications(IIntegrationResult,IIntegrationResult) | 50 | 314 | 17 | 24 | 3 | 2 | 12 | 1 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn.GetModifications (IIntegrationResult,IIntegrationResult) |
| GetFolderVersion(IIntegrationResult,IIntegrationResult) | 36 | 208 | 12 | 14 | 3 | 2 | 11 | 1 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault317 .GetFolderVersion(IIntegrationResult,IIntegrationResult) |
| eval_constant(String) | 27 | 189 | 7 | 12 | 3 | 1 | 10 | 1 | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.eval_constant(String) |
| .ctor() | 21 | 143 | 10 | 14 | 5 | 0 | 3 | 2 | ThoughtWorks.CruiseControl.WebDashboard.Resources.Translations..ctor() |
| Read(XmlNode,NetReflectorTypeTable) | 26 | 199 | 8 | 20 | 5 | 2 | 5 | 1 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.BuildReport .BuildReportXslFilenameSerialiser.Read(XmlNode,NetReflectorTypeTable) |
| FormatDetailString(ISingleProjectDetail) | 27 | 196 | 13 | 15 | 5 | 1 | 4 | 1 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.DetailStringProvider .FormatDetailString(ISingleProjectDetail) |
| InitializeComponent() | 303 | 1 752 | 1 | 1 | 0 | 0 | 2 | 1 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .InitializeComponent() |
| StartConfigurationLoad() | 37 | 256 | 7 | 7 | 5 | 0 | 9 | 1 | Validator.MainForm.StartConfigurationLoad() |
Statistics
| Stat | # lines of code (LOC) | # IL instructions | Cyclomatic Complexity (CC) | IL Cyclomatic Complexity (ILCC) | IL Nesting Depth | # Parameters | # Variables | # Overloads |
|---|---|---|---|---|---|---|---|---|
| Sum: | 978 | 6 270 | 205 | 317 | 63 | 32 | 158 | 22 |
| Average: | 48.9 | 313.5 | 10.25 | 15.85 | 3.15 | 1.6 | 7.9 | 1.1 |
| Minimum: | 21 | 141 | 1 | 1 | 0 | 0 | 1 | 1 |
| Maximum: | 303 | 1 752 | 23 | 28 | 5 | 7 | 21 | 2 |
| Standard deviation: | 59.1 | 336.97 | 4.7945 | 7.3978 | 1.3883 | 1.562 | 4.2532 | 0.3 |
| Variance: | 3 492 | 113 546 | 22.987 | 54.727 | 1.9275 | 2.44 | 18.09 | 0.09 |
| Rule warning: From now, all types added or refactored should respect basic quality principles |
// <Name>From now, all types added or refactored should respect basic quality principles</Name>
warnif count > 0 from t in JustMyCode.Types where
// *** Only match new or modified types since Baseline for Comparison ***
(t.WasAdded() || t.CodeWasChanged()) &&
// Eliminate interfaces, enumerations or types only with constant fields
// by making sure we are matching type with code.
t.NbLinesOfCode > 10 &&
// Low Quality types Metrics' definitions are available here:
// http://www.ndepend.com/Metrics.aspx#MetricsOnTypes
( // Types with too many methods
t.NbMethods > 20 ||
// Types with too many fields
t.NbFields > 20 ||
// Complex Types that use more than 50 other types
t.NbTypesUsed > 50
)
select new { t, t.Methods, t.Fields, t.TypesUsed }
// This rule warns if a type with
// low-quality has been added or refactored.
// With NDepend and such rule, you can
// Ensure Quality From Now! as explained here:
// http://codebetter.com/blogs/patricksmacchia/archive/2008/01/01/ensure-the-quality-of-the-code-that-will-be-developed-this-year.aspx
warnif count > 0 from t in JustMyCode.Types where
// *** Only match new or modified types since Baseline for Comparison ***
(t.WasAdded() || t.CodeWasChanged()) &&
// Eliminate interfaces, enumerations or types only with constant fields
// by making sure we are matching type with code.
t.NbLinesOfCode > 10 &&
// Low Quality types Metrics' definitions are available here:
// http://www.ndepend.com/Metrics.aspx#MetricsOnTypes
( // Types with too many methods
t.NbMethods > 20 ||
// Types with too many fields
t.NbFields > 20 ||
// Complex Types that use more than 50 other types
t.NbTypesUsed > 50
)
select new { t, t.Methods, t.Fields, t.TypesUsed }
// This rule warns if a type with
// low-quality has been added or refactored.
// With NDepend and such rule, you can
// Ensure Quality From Now! as explained here:
// http://codebetter.com/blogs/patricksmacchia/archive/2008/01/01/ensure-the-quality-of-the-code-that-will-be-developed-this-year.aspx
32 types matched
| types | Methods | Fields | TypesUsed | Full Name |
|---|---|---|---|---|
| types | Methods | Fields | TypesUsed | Full Name |
| CruiseServerClientBase | 63 methods | 5 fields | 34 types | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase |
| CruiseServerClient | 54 methods | 2 fields | 68 types | ThoughtWorks.CruiseControl.Remote.CruiseServerClient |
| ItemStatus | 24 methods | 10 fields | 26 types | ThoughtWorks.CruiseControl.Remote.ItemStatus |
| IntegrationResult | 70 methods | 22 fields | 44 types | ThoughtWorks.CruiseControl.Core.IntegrationResult |
| CruiseServerClient | 51 methods | 5 fields | 83 types | ThoughtWorks.CruiseControl.Core.CruiseServerClient |
| CruiseServer | 71 methods | 19 fields | 173 types | ThoughtWorks.CruiseControl.Core.CruiseServer |
| Project | 93 methods | 26 fields | 122 types | ThoughtWorks.CruiseControl.Core.Project |
| RemoteCruiseServer | 62 methods | 8 fields | 63 types | ThoughtWorks.CruiseControl.Core.RemoteCruiseServer |
| DevenvTask | 21 methods | 23 fields | 42 types | ThoughtWorks.CruiseControl.Core.Tasks.DevenvTask |
| DupFinderTask | 36 methods | 17 fields | 47 types | ThoughtWorks.CruiseControl.Core.Tasks.DupFinderTask |
| CodeItRightTask | 28 methods | 11 fields | 32 types | ThoughtWorks.CruiseControl.Core.Tasks.CodeItRightTask |
| IntegrationQueue | 22 methods | 7 fields | 35 types | ThoughtWorks.CruiseControl.Core.Queues.IntegrationQueue |
| LdapHelper | 22 methods | 10 fields | 20 types | ThoughtWorks.CruiseControl.Core.Util.LdapHelper |
| Svn | 66 methods | 24 fields | 60 types | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn |
| Vsts | 24 methods | 24 fields | 37 types | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vsts |
| Git | 23 methods | 16 fields | 38 types | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Git |
| Cvs | 21 methods | 19 fields | 43 types | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Cvs |
| Synergy | 18 methods | 6 fields | 32 types | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic.Synergy |
| SecurityManagerBase | 28 methods | 6 fields | 29 types | ThoughtWorks.CruiseControl.Core.Security.SecurityManagerBase |
| NullSecurityManager | 20 methods | 0 field | 23 types | ThoughtWorks.CruiseControl.Core.Security.NullSecurityManager |
| ExternalFileSecurityManager | 14 methods | 11 fields | 55 types | ThoughtWorks.CruiseControl.Core.Security.ExternalFileSecurityManager |
| ConfigPreprocessorEnvironment | 19 methods | 7 fields | 45 types | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment |
| EmailPublisher | 42 methods | 12 fields | 46 types | ThoughtWorks.CruiseControl.Core.Publishers.EmailPublisher |
| ProjectGridRow | 27 methods | 4 fields | 17 types | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.ProjectGridRow |
| SynchronizedProjectMonitor | 28 methods | 5 fields | 27 types | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .SynchronizedProjectMonitor |
| MainFormController | 52 methods | 21 fields | 104 types | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainFormController |
| BuildParameters | 10 methods | 7 fields | 77 types | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.BuildParameters |
| MainForm | 52 methods | 62 fields | 116 types | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm |
| StubProjectMonitor | 49 methods | 10 fields | 31 types | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.StubProjectMonitor |
| AggregatingProjectMonitor | 30 methods | 4 fields | 30 types | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring .AggregatingProjectMonitor |
| ProjectMonitor | 50 methods | 9 fields | 46 types | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring.ProjectMonitor |
| MainForm | 43 methods | 51 fields | 151 types | Validator.MainForm |
Statistics
| Stat | Methods | Fields | TypesUsed |
|---|---|---|---|
| Sum: | 0 | 0 | 0 |
| Average: | 0 | 0 | 0 |
| Minimum: | 0 | 0 | 0 |
| Maximum: | 0 | 0 | 0 |
| Standard deviation: | 0 | 0 | 0 |
| Variance: | 0 | 0 | 0 |
| Rule warning: From now, all types added or refactored should be 100% covered by tests |
// <Name>From now, all types added or refactored should be 100% covered by tests</Name>
warnif count > 0 from t in JustMyCode.Types where
// Match methods new or modified since Baseline for Comparison...
(t.WasAdded() || t.CodeWasChanged()) &&
// ...that are not 100% covered by tests
t.PercentageCoverage < 100
let methodsCulprit = t.Methods.Where(m => m.PercentageCoverage < 100)
select new { t, t.PercentageCoverage, methodsCulprit }
// Having types 100% covered by tests is a good idea because
// the small portion of code hard to cover, is also the
// portion of code that is the most likely to contain bugs.
warnif count > 0 from t in JustMyCode.Types where
// Match methods new or modified since Baseline for Comparison...
(t.WasAdded() || t.CodeWasChanged()) &&
// ...that are not 100% covered by tests
t.PercentageCoverage < 100
let methodsCulprit = t.Methods.Where(m => m.PercentageCoverage < 100)
select new { t, t.PercentageCoverage, methodsCulprit }
// Having types 100% covered by tests is a good idea because
// the small portion of code hard to cover, is also the
// portion of code that is the most likely to contain bugs.
85 types matched
| types | Percentage Coverage | methodsCulprit | Full Name |
|---|---|---|---|
| types | Percentage Coverage | methodsCulprit | Full Name |
| CruiseServerClientBase | 14 | 47 methods | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase |
| CruiseServerClient | 70 | 19 methods | ThoughtWorks.CruiseControl.Remote.CruiseServerClient |
| QueueSnapshot | 50 | 1 method | ThoughtWorks.CruiseControl.Remote.QueueSnapshot |
| HttpConnection | 13 | 9 methods | ThoughtWorks.CruiseControl.Remote.HttpConnection |
| ItemStatus | 58 | 8 methods | ThoughtWorks.CruiseControl.Remote.ItemStatus |
| NameValuePair | 96 | 1 method | ThoughtWorks.CruiseControl.Remote.NameValuePair |
| ServerRequest | 96 | 1 method | ThoughtWorks.CruiseControl.Remote.Messages.ServerRequest |
| ExternalLinksListResponse | 87 | 1 method | ThoughtWorks.CruiseControl.Remote.Messages.ExternalLinksListResponse |
| PollingServerWatcher | 0 | 6 methods | ThoughtWorks.CruiseControl.Remote.Monitor.PollingServerWatcher |
| DateParameter | 0 | 16 methods | ThoughtWorks.CruiseControl.Remote.Parameters.DateParameter |
| NMockAwareImplementationResolver | 60 | 2 methods | Objection.NMockAwareImplementationResolver |
| IntegrationRunner | 88 | 1 method | ThoughtWorks.CruiseControl.Core.IntegrationRunner |
| IntegrationResult | 83 | 7 methods | ThoughtWorks.CruiseControl.Core.IntegrationResult |
| CruiseServerClient | 34 | 42 methods | ThoughtWorks.CruiseControl.Core.CruiseServerClient |
| CruiseServer | 53 | 39 methods | ThoughtWorks.CruiseControl.Core.CruiseServer |
| CruiseServer+<>c__DisplayClass5f | 0 | 1 method | ThoughtWorks.CruiseControl.Core.CruiseServer+<>c__DisplayClass5f |
| CruiseServer+<>c__DisplayClass62 | 0 | 1 method | ThoughtWorks.CruiseControl.Core.CruiseServer+<>c__DisplayClass62 |
| Project | 72 | 28 methods | ThoughtWorks.CruiseControl.Core.Project |
| RemoteCruiseServer | 66 | 41 methods | ThoughtWorks.CruiseControl.Core.RemoteCruiseServer |
| TaskBase | 94 | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.TaskBase |
| TaskContainerBase | 90 | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.TaskContainerBase |
| BaseExecutableTask | 82 | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.BaseExecutableTask |
| CruiseServerControlTask | 96 | 1 method | ThoughtWorks.CruiseControl.Core.Tasks.CruiseServerControlTask |
| MergeFilesTask | 94 | 1 method | ThoughtWorks.CruiseControl.Core.Tasks.MergeFilesTask |
| FinalBuilderTask | 87 | 4 methods | ThoughtWorks.CruiseControl.Core.Tasks.FinalBuilderTask |
| DevenvTask | 94 | 3 methods | ThoughtWorks.CruiseControl.Core.Tasks.DevenvTask |
| DupFinderTask | 0 | 10 methods | ThoughtWorks.CruiseControl.Core.Tasks.DupFinderTask |
| CodeItRightTask | 0 | 8 methods | ThoughtWorks.CruiseControl.Core.Tasks.CodeItRightTask |
| ParallelTask | 0 | 4 methods | ThoughtWorks.CruiseControl.Core.Tasks.ParallelTask |
| FileTaskResult | 65 | 4 methods | ThoughtWorks.CruiseControl.Core.Tasks.FileTaskResult |
| ScheduleTrigger | 88 | 3 methods | ThoughtWorks.CruiseControl.Core.Triggers.ScheduleTrigger |
| ProjectTrigger | 89 | 2 methods | ThoughtWorks.CruiseControl.Core.Triggers.ProjectTrigger |
| IntegrationQueue | 90 | 3 methods | ThoughtWorks.CruiseControl.Core.Queues.IntegrationQueue |
| LdapHelper | 21 | 2 methods | ThoughtWorks.CruiseControl.Core.Util.LdapHelper |
| IoService | 38 | 3 methods | ThoughtWorks.CruiseControl.Core.Util.IoService |
| Vault3 | 86 | 4 methods | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault3 |
| Svn | 54 | 15 methods | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn |
| Vsts | 0 | 24 methods | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vsts |
| Vault317 | 85 | 6 methods | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault317 |
| GitHistoryParser | 97 | 1 method | ThoughtWorks.CruiseControl.Core.Sourcecontrol.GitHistoryParser |
| Git | 88 | 5 methods | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Git |
| Cvs | 12 | 21 methods | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Cvs |
| Synergy | 62 | 8 methods | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic.Synergy |
| SynergyParser | 89 | 3 methods | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic.SynergyParser |
| SynergyCommand | 20 | 6 methods | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic.SynergyCommand |
| BitKeeper | 83 | 2 methods | ThoughtWorks.CruiseControl.Core.Sourcecontrol.BitKeeper.BitKeeper |
| PermissionBase | 76 | 2 methods | ThoughtWorks.CruiseControl.Core.Security.PermissionBase |
| SecurityManagerBase | 87 | 8 methods | ThoughtWorks.CruiseControl.Core.Security.SecurityManagerBase |
| InternalSecurityManager | 42 | 8 methods | ThoughtWorks.CruiseControl.Core.Security.InternalSecurityManager |
| NullSecurityManager | 50 | 11 methods | ThoughtWorks.CruiseControl.Core.Security.NullSecurityManager |
| ExternalFileSecurityManager | 68 | 9 methods | ThoughtWorks.CruiseControl.Core.Security.ExternalFileSecurityManager |
| DefaultProjectAuthorisation | 50 | 8 methods | ThoughtWorks.CruiseControl.Core.Security.DefaultProjectAuthorisation |
| ConfigurationTrace | 85 | 2 methods | ThoughtWorks.CruiseControl.Core.Config.ConfigurationTrace |
| NetReflectorConfigurationReader | 85 | 3 methods | ThoughtWorks.CruiseControl.Core.Config.NetReflectorConfigurationReader |
| ConfigPreprocessorEnvironment | 80 | 6 methods | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment |
| EmailPublisher | 81 | 7 methods | ThoughtWorks.CruiseControl.Core.Publishers.EmailPublisher |
| XmlIntegrationResultWriter | 90 | 5 methods | ThoughtWorks.CruiseControl.Core.Publishers.XmlIntegrationResultWriter |
| DashboardCacheDependency | 0 | 1 method | ThoughtWorks.CruiseControl.WebDashboard.IO.DashboardCacheDependency |
| Translations | 23 | 6 methods | ThoughtWorks.CruiseControl.WebDashboard.Resources.Translations |
| VelocityProjectGridAction | 0 | 12 methods | ThoughtWorks.CruiseControl.WebDashboard.Dashboard .VelocityProjectGridAction |
| ProjectGridRow | 44 | 15 methods | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.ProjectGridRow |
| MultipleXslReportBuildAction | 94 | 1 method | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.Actions .MultipleXslReportBuildAction |
| XslMultiReportBuildPlugin | 91 | 1 method | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.GenericPlugins .XslMultiReportBuildPlugin |
| HtmlReportPlugin | 0 | 6 methods | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.GenericPlugins .HtmlReportPlugin |
| SiteTemplateActionDecorator | 0 | 5 methods | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.ActionDecorators .SiteTemplateActionDecorator |
| ServerReportServerPlugin | 8 | 5 methods | ThoughtWorks.CruiseControl.WebDashboard.Plugins.ServerReport .ServerReportServerPlugin |
| PackageManifest | 0 | 14 methods | ThoughtWorks.CruiseControl.WebDashboard.Plugins.Administration .PackageManifest |
| AdministerAction | 0 | 15 methods | ThoughtWorks.CruiseControl.WebDashboard.Plugins.Administration .AdministerAction |
| FarmReportFarmPlugin | 6 | 5 methods | ThoughtWorks.CruiseControl.WebDashboard.Plugins.FarmReport .FarmReportFarmPlugin |
| BuildReportXslFilename | 80 | 1 method | ThoughtWorks.CruiseControl.WebDashboard.Plugins.BuildReport .BuildReportXslFilename |
| BuildFileDownload | 0 | 2 methods | ThoughtWorks.CruiseControl.WebDashboard.Plugins.BuildReport .BuildFileDownload |
| BuildReportXslFilenameSerialiser | 0 | 2 methods | ThoughtWorks.CruiseControl.WebDashboard.Plugins.BuildReport .BuildReportXslFilenameSerialiser |
| BuildReportBuildPlugin | 14 | 2 methods | ThoughtWorks.CruiseControl.WebDashboard.Plugins.BuildReport .BuildReportBuildPlugin |
| BuildReportXslFilenameSerialiserFactory | 0 | 1 method | ThoughtWorks.CruiseControl.WebDashboard.Plugins.BuildReport .BuildReportXslFilenameSerialiserFactory |
| NameAndSelected | 0 | 3 methods | ThoughtWorks.CruiseControl.WebDashboard.Plugins.AddProject .NameAndSelected |
| SynchronizedProjectMonitor | 43 | 19 methods | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .SynchronizedProjectMonitor |
| MainFormController | 18 | 40 methods | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainFormController |
| DetailStringProvider | 50 | 2 methods | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.DetailStringProvider |
| BuildParameters | 0 | 10 methods | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.BuildParameters |
| MainForm | 0 | 52 methods | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm |
| StubProjectMonitor | 64 | 18 methods | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.StubProjectMonitor |
| AggregatingProjectMonitor | 78 | 16 methods | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring .AggregatingProjectMonitor |
| RemotingCruiseProjectManager | 20 | 10 methods | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring .RemotingCruiseProjectManager |
| ProjectMonitor | 45 | 29 methods | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring.ProjectMonitor |
| HttpCruiseProjectManager | 64 | 4 methods | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring .HttpCruiseProjectManager |
Statistics
| Stat | Percentage Coverage | methodsCulprit |
|---|---|---|
| Sum: | 4 180 | 0 |
| Average: | 49.176 | 0 |
| Minimum: | 0 | 0 |
| Maximum: | 97 | 0 |
| Standard deviation: | 36.475 | 0 |
| Variance: | 1 330 | 0 |
| Rule warning: Avoid making complex methods even more complex (Source CC) |
// <Name>Avoid making complex methods even more complex (Source CC)</Name>
// To visualize changes in code, right-click a matched method and select:
// - Compare older and newer versions of source file
// - Compare older and newer versions disassembled with Reflector
warnif count > 0
from m in JustMyCode.Methods where
!m.IsAbstract &&
m.IsPresentInBothBuilds() &&
m.CodeWasChanged()
let oldCC = m.OlderVersion().CyclomaticComplexity
where oldCC > 6 && m.CyclomaticComplexity > oldCC
select new { m,
oldCC ,
newCC = m.CyclomaticComplexity ,
oldLoc = m.OlderVersion().NbLinesOfCode,
newLoc = m.NbLinesOfCode,
}
// To visualize changes in code, right-click a matched method and select:
// - Compare older and newer versions of source file
// - Compare older and newer versions disassembled with Reflector
warnif count > 0
from m in JustMyCode.Methods where
!m.IsAbstract &&
m.IsPresentInBothBuilds() &&
m.CodeWasChanged()
let oldCC = m.OlderVersion().CyclomaticComplexity
where oldCC > 6 && m.CyclomaticComplexity > oldCC
select new { m,
oldCC ,
newCC = m.CyclomaticComplexity ,
oldLoc = m.OlderVersion().NbLinesOfCode,
newLoc = m.NbLinesOfCode,
}
5 methods matched
| methods | oldCC | newCC | oldLoc | newLoc | Full Name |
|---|---|---|---|---|---|
| methods | oldCC | newCC | oldLoc | newLoc | Full Name |
| RunTask(ITask,IIntegrationResult,Boolean) | 15 | 16 | 25 | 29 | ThoughtWorks.CruiseControl.Core.Project.RunTask(ITask ,IIntegrationResult,Boolean) |
| ReadDevenvExecutableFromRegistry() | 11 | 13 | 13 | 15 | ThoughtWorks.CruiseControl.Core.Tasks.DevenvTask .ReadDevenvExecutableFromRegistry() |
| Enqueue(IIntegrationQueueItem) | 12 | 14 | 38 | 46 | ThoughtWorks.CruiseControl.Core.Queues.IntegrationQueue.Enqueue (IIntegrationQueueItem) |
| GetFolderVersion(IIntegrationResult,IIntegrationResult) | 7 | 12 | 31 | 36 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault317 .GetFolderVersion(IIntegrationResult,IIntegrationResult) |
| .ctor() | 9 | 10 | 18 | 21 | ThoughtWorks.CruiseControl.WebDashboard.Resources.Translations..ctor() |
Statistics
| Stat | oldCC | newCC | oldLoc | newLoc |
|---|---|---|---|---|
| Sum: | 54 | 65 | 125 | 147 |
| Average: | 10.8 | 13 | 25 | 29.4 |
| Minimum: | 7 | 10 | 13 | 15 |
| Maximum: | 15 | 16 | 38 | 46 |
| Standard deviation: | 2.7129 | 2 | 8.9219 | 10.929 |
| Variance: | 7.36 | 4 | 79.6 | 119.44 |
| Rule warning: Avoid making complex methods even more complex (IL CC) |
// <Name>Avoid making complex methods even more complex (IL CC)</Name>
// To visualize changes in code, right-click a matched method and select:
// - Compare older and newer versions of source file
// - Compare older and newer versions disassembled with Reflector
warnif count > 0
from m in JustMyCode.Methods where
!m.IsAbstract &&
m.IsPresentInBothBuilds() &&
m.CodeWasChanged()
let oldCC = m.OlderVersion().ILCyclomaticComplexity
where oldCC > 10 && m.ILCyclomaticComplexity > oldCC
select new { m,
oldCC ,
newCC = m.ILCyclomaticComplexity ,
oldLoc = m.OlderVersion().NbLinesOfCode,
newLoc = m.NbLinesOfCode,
}
// To visualize changes in code, right-click a matched method and select:
// - Compare older and newer versions of source file
// - Compare older and newer versions disassembled with Reflector
warnif count > 0
from m in JustMyCode.Methods where
!m.IsAbstract &&
m.IsPresentInBothBuilds() &&
m.CodeWasChanged()
let oldCC = m.OlderVersion().ILCyclomaticComplexity
where oldCC > 10 && m.ILCyclomaticComplexity > oldCC
select new { m,
oldCC ,
newCC = m.ILCyclomaticComplexity ,
oldLoc = m.OlderVersion().NbLinesOfCode,
newLoc = m.NbLinesOfCode,
}
3 methods matched
| methods | oldCC | newCC | oldLoc | newLoc | Full Name |
|---|---|---|---|---|---|
| methods | oldCC | newCC | oldLoc | newLoc | Full Name |
| RunTask(ITask,IIntegrationResult,Boolean) | 18 | 19 | 25 | 29 | ThoughtWorks.CruiseControl.Core.Project.RunTask(ITask ,IIntegrationResult,Boolean) |
| Enqueue(IIntegrationQueueItem) | 22 | 26 | 38 | 46 | ThoughtWorks.CruiseControl.Core.Queues.IntegrationQueue.Enqueue (IIntegrationQueueItem) |
| .ctor() | 12 | 14 | 18 | 21 | ThoughtWorks.CruiseControl.WebDashboard.Resources.Translations..ctor() |
Statistics
| Stat | oldCC | newCC | oldLoc | newLoc |
|---|---|---|---|---|
| Sum: | 52 | 59 | 81 | 96 |
| Average: | 17.333 | 19.667 | 27 | 32 |
| Minimum: | 12 | 14 | 18 | 21 |
| Maximum: | 22 | 26 | 38 | 46 |
| Standard deviation: | 4.1096 | 4.9216 | 8.2865 | 10.424 |
| Variance: | 16.889 | 24.222 | 68.667 | 108.67 |
| Rule warning: Avoid making large methods even larger |
// <Name>Avoid making large methods even larger</Name>
// To visualize changes in code, right-click a matched method and select:
// - Compare older and newer versions of source file
// - Compare older and newer versions disassembled with Reflector
warnif count > 0
from m in JustMyCode.Methods where
!m.IsAbstract &&
m.IsPresentInBothBuilds() &&
m.CodeWasChanged() &&
// Eliminate constructors from match, since they get larger
// as soons as some fields initialization are added.
!m.IsConstructor &&
!m.IsClassConstructor
let oldLoc = m.OlderVersion().NbLinesOfCode
where oldLoc > 15 && m.NbLinesOfCode > oldLoc
select new { m,
oldLoc,
newLoc = m.NbLinesOfCode,
}
// To visualize changes in code, right-click a matched method and select:
// - Compare older and newer versions of source file
// - Compare older and newer versions disassembled with Reflector
warnif count > 0
from m in JustMyCode.Methods where
!m.IsAbstract &&
m.IsPresentInBothBuilds() &&
m.CodeWasChanged() &&
// Eliminate constructors from match, since they get larger
// as soons as some fields initialization are added.
!m.IsConstructor &&
!m.IsClassConstructor
let oldLoc = m.OlderVersion().NbLinesOfCode
where oldLoc > 15 && m.NbLinesOfCode > oldLoc
select new { m,
oldLoc,
newLoc = m.NbLinesOfCode,
}
12 methods matched
| methods | oldLoc | newLoc | Full Name |
|---|---|---|---|
| methods | oldLoc | newLoc | Full Name |
| Integrate(IntegrationRequest) | 43 | 45 | ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate (IntegrationRequest) |
| GenerateTaskStatuses(String,IList) | 18 | 22 | ThoughtWorks.CruiseControl.Core.Project.GenerateTaskStatuses(String ,IList) |
| RunTask(ITask,IIntegrationResult,Boolean) | 25 | 29 | ThoughtWorks.CruiseControl.Core.Project.RunTask(ITask ,IIntegrationResult,Boolean) |
| Execute(IIntegrationResult) | 26 | 27 | ThoughtWorks.CruiseControl.Core.Tasks.SequentialTask.Execute (IIntegrationResult) |
| Execute(IIntegrationResult) | 34 | 35 | ThoughtWorks.CruiseControl.Core.Tasks.SynchronisationTask.Execute (IIntegrationResult) |
| Execute(IIntegrationResult) | 25 | 26 | ThoughtWorks.CruiseControl.Core.Tasks.ParallelTask.Execute (IIntegrationResult) |
| Enqueue(IIntegrationQueueItem) | 38 | 46 | ThoughtWorks.CruiseControl.Core.Queues.IntegrationQueue.Enqueue (IIntegrationQueueItem) |
| RetrieveUserInformation(String) | 31 | 32 | ThoughtWorks.CruiseControl.Core.Util.LdapHelper .RetrieveUserInformation(String) |
| GetFolderVersion(IIntegrationResult,IIntegrationResult) | 31 | 36 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault317 .GetFolderVersion(IIntegrationResult,IIntegrationResult) |
| eval_constant(String) | 22 | 27 | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.eval_constant(String) |
| GenerateView(ProjectStatusListAndExceptions,String,ICruiseRequest ,IServerSpecifier) | 22 | 24 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard .VelocityProjectGridAction.GenerateView(ProjectStatusListAndExceptions ,String,ICruiseRequest,IServerSpecifier) |
| StartConfigurationLoad() | 30 | 37 | Validator.MainForm.StartConfigurationLoad() |
Statistics
| Stat | oldLoc | newLoc |
|---|---|---|
| Sum: | 345 | 386 |
| Average: | 28.75 | 32.167 |
| Minimum: | 18 | 22 |
| Maximum: | 43 | 46 |
| Standard deviation: | 6.8935 | 7.4926 |
| Variance: | 47.521 | 56.139 |
| Rule warning: Avoid adding methods to a type that already had many methods |
// <Name>Avoid adding methods to a type that already had many methods</Name>
// To visualize changes in code, right-click a matched type and select:
// - Compare older and newer versions of source file
// - Compare older and newer versions disassembled with Reflector
warnif count > 0
from t in JustMyCode.Types where
t.IsPresentInBothBuilds() &&
t.Methods.Count() > t.OlderVersion().Methods.Count() &&
t.OlderVersion().Methods.Count() > 10
let newMethods = t.Methods.Where(m => m.WasAdded())
let removedMethods = t.OlderVersion().Methods.Where(m => m.WasRemoved())
select new { t,
oldNbMethods = t.OlderVersion().NbMethods,
newNbMethods = t.NbMethods,
newMethods,
removedMethods }
// To visualize changes in code, right-click a matched type and select:
// - Compare older and newer versions of source file
// - Compare older and newer versions disassembled with Reflector
warnif count > 0
from t in JustMyCode.Types where
t.IsPresentInBothBuilds() &&
t.Methods.Count() > t.OlderVersion().Methods.Count() &&
t.OlderVersion().Methods.Count() > 10
let newMethods = t.Methods.Where(m => m.WasAdded())
let removedMethods = t.OlderVersion().Methods.Where(m => m.WasRemoved())
select new { t,
oldNbMethods = t.OlderVersion().NbMethods,
newNbMethods = t.NbMethods,
newMethods,
removedMethods }
12 types matched
| types | oldNbMethods | newNbMethods | newMethods | removedMethods | Full Name |
|---|---|---|---|---|---|
| types | oldNbMethods | newNbMethods | newMethods | removedMethods | Full Name |
| CruiseServerClientBase | 62 | 64 | 2 methods | 0 method | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase |
| ServerRequest | 13 | 15 | 2 methods | 0 method | ThoughtWorks.CruiseControl.Remote.Messages.ServerRequest |
| Project | 94 | 95 | 4 methods | 3 methods | ThoughtWorks.CruiseControl.Core.Project |
| RemoteCruiseServer | 51 | 64 | 12 methods | 0 method | ThoughtWorks.CruiseControl.Core.RemoteCruiseServer |
| TaskBase | 15 | 19 | 4 methods | 0 method | ThoughtWorks.CruiseControl.Core.Tasks.TaskBase |
| Svn | 38 | 69 | 32 methods | 1 method | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn |
| VelocityProjectGridAction | 13 | 15 | 2 methods | 0 method | ThoughtWorks.CruiseControl.WebDashboard.Dashboard .VelocityProjectGridAction |
| MainFormController | 52 | 53 | 1 method | 0 method | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainFormController |
| StubProjectMonitor | 49 | 50 | 2 methods | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.StubProjectMonitor |
| ISingleProjectDetail | 16 | 17 | 1 method | 0 method | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring.ISingleProjectDetail |
| ProjectMonitor | 51 | 52 | 2 methods | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring.ProjectMonitor |
| MainForm | 41 | 44 | 3 methods | 0 method | Validator.MainForm |
Statistics
| Stat | oldNbMethods | newNbMethods | newMethods | removedMethods |
|---|---|---|---|---|
| Sum: | 495 | 557 | 0 | 0 |
| Average: | 41.25 | 46.417 | 0 | 0 |
| Minimum: | 13 | 15 | 0 | 0 |
| Maximum: | 94 | 95 | 0 | 0 |
| Standard deviation: | 23.296 | 24.449 | 0 | 0 |
| Variance: | 542.69 | 597.74 | 0 | 0 |
| Rule warning: Avoid adding instance fields to a type that already had many instance fields |
// <Name>Avoid adding instance fields to a type that already had many instance fields</Name>
// To visualize changes in code, right-click a matched type and select:
// - Compare older and newer versions of source file
// - Compare older and newer versions disassembled with Reflector
warnif count > 0
from t in JustMyCode.Types where
t.IsPresentInBothBuilds() &&
!t.IsStatic
let oldNbInstanceFields = t.OlderVersion().InstanceFields
let newNbInstanceFields = t.InstanceFields
where
newNbInstanceFields.Count() > oldNbInstanceFields .Count() &&
oldNbInstanceFields.Count() > 6
let newInstanceFields = t.InstanceFields.Where(f => f.WasAdded())
select new { t,
oldCount = oldNbInstanceFields.Count() ,
newCount = newNbInstanceFields.Count() ,
newInstanceFields }
// To visualize changes in code, right-click a matched type and select:
// - Compare older and newer versions of source file
// - Compare older and newer versions disassembled with Reflector
warnif count > 0
from t in JustMyCode.Types where
t.IsPresentInBothBuilds() &&
!t.IsStatic
let oldNbInstanceFields = t.OlderVersion().InstanceFields
let newNbInstanceFields = t.InstanceFields
where
newNbInstanceFields.Count() > oldNbInstanceFields .Count() &&
oldNbInstanceFields.Count() > 6
let newInstanceFields = t.InstanceFields.Where(f => f.WasAdded())
select new { t,
oldCount = oldNbInstanceFields.Count() ,
newCount = newNbInstanceFields.Count() ,
newInstanceFields }
3 types matched
| types | oldCount | newCount | newInstanceFields | Full Name |
|---|---|---|---|---|
| types | oldCount | newCount | newInstanceFields | Full Name |
| Svn | 21 | 22 | 16 fields | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn |
| VelocityProjectGridAction | 8 | 9 | 1 field | ThoughtWorks.CruiseControl.WebDashboard.Dashboard .VelocityProjectGridAction |
| MainForm | 46 | 49 | 3 fields | Validator.MainForm |
Statistics
| Stat | oldCount | newCount | newInstanceFields |
|---|---|---|---|
| Sum: | 75 | 80 | 0 |
| Average: | 25 | 26.667 | 0 |
| Minimum: | 8 | 9 | 0 |
| Maximum: | 46 | 49 | 0 |
| Standard deviation: | 15.769 | 16.66 | 0 |
| Variance: | 248.67 | 277.56 | 0 |
| Object Oriented Design |
|
|
| Rule warning: Base class should not use derivatives |
// <Name>Base class should not use derivatives</Name>
warnif count > 0
from baseClass in JustMyCode.Types
where baseClass.IsClass && baseClass.NbChildren > 0 // <-- for optimization!
let derivedClassesUsed = baseClass.DerivedTypes.UsedBy(baseClass)
where derivedClassesUsed.Count() > 0
select new { baseClass, derivedClassesUsed }
warnif count > 0
from baseClass in JustMyCode.Types
where baseClass.IsClass && baseClass.NbChildren > 0 // <-- for optimization!
let derivedClassesUsed = baseClass.DerivedTypes.UsedBy(baseClass)
where derivedClassesUsed.Count() > 0
select new { baseClass, derivedClassesUsed }
2 types matched
| types | derivedClassesUsed | Full Name |
|---|---|---|
| types | derivedClassesUsed | Full Name |
| AuditFilterBase | 5 types | ThoughtWorks.CruiseControl.Remote.Security.AuditFilterBase |
| ErrorLevel | 3 types | ThoughtWorks.CruiseControl.CCTrayLib.ErrorLevel |
Statistics
| Stat | derivedClassesUsed |
|---|---|
| Sum: | 0 |
| Average: | 0 |
| Minimum: | 0 |
| Maximum: | 0 |
| Standard deviation: | 0 |
| Variance: | 0 |
| Rule warning: Class shouldn't be too deep in inheritance tree |
// <Name>Class shouldn't be too deep in inheritance tree</Name>
warnif count > 0 from t in JustMyCode.Types
where t.IsClass
let baseClasses = t.BaseClasses.ExceptThirdParty()
// Warn for classes with 3 or more base classes.
// Notice that we don't count third-party classes
// because this rule concerns your code design,
// not third-party libraries consumed design.
where baseClasses.Count() >= 3
select new { t, baseClasses,
// The metric value DepthOfInheritance takes account
// of third-party base classes
t.DepthOfInheritance }
// Branches too long in the derivation should be avoided.
// See the definition of the DepthOfInheritance metric here
// http://www.ndepend.com/Metrics.aspx#DIT
warnif count > 0 from t in JustMyCode.Types
where t.IsClass
let baseClasses = t.BaseClasses.ExceptThirdParty()
// Warn for classes with 3 or more base classes.
// Notice that we don't count third-party classes
// because this rule concerns your code design,
// not third-party libraries consumed design.
where baseClasses.Count() >= 3
select new { t, baseClasses,
// The metric value DepthOfInheritance takes account
// of third-party base classes
t.DepthOfInheritance }
// Branches too long in the derivation should be avoided.
// See the definition of the DepthOfInheritance metric here
// http://www.ndepend.com/Metrics.aspx#DIT
8 types matched
| types | baseClasses | Depth of inheritance | Full Name |
|---|---|---|---|
| types | baseClasses | Depth of inheritance | Full Name |
| BuildListRequest | 3 types | 4 | ThoughtWorks.CruiseControl.Remote.Messages.BuildListRequest |
| FileTransferRequest | 3 types | 4 | ThoughtWorks.CruiseControl.Remote.Messages.FileTransferRequest |
| ProjectItemRequest | 3 types | 4 | ThoughtWorks.CruiseControl.Remote.Messages.ProjectItemRequest |
| BuildRequest | 3 types | 4 | ThoughtWorks.CruiseControl.Remote.Messages.BuildRequest |
| ChangeConfigurationRequest | 3 types | 4 | ThoughtWorks.CruiseControl.Remote.Messages.ChangeConfigurationRequest |
| MessageRequest | 3 types | 4 | ThoughtWorks.CruiseControl.Remote.Messages.MessageRequest |
| BuildIntegrationRequest | 3 types | 4 | ThoughtWorks.CruiseControl.Remote.Messages.BuildIntegrationRequest |
| Vault317 | 3 types | 4 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault317 |
Statistics
| Stat | baseClasses | Depth of inheritance |
|---|---|---|
| Sum: | 0 | 32 |
| Average: | 0 | 4 |
| Minimum: | 0 | 4 |
| Maximum: | 0 | 4 |
| Standard deviation: | 0 | 0 |
| Variance: | 0 | 0 |
| Rule warning: Class with no descendant should be sealed if possible |
// <Name>Class with no descendant should be sealed if possible</Name>
warnif count > 0 from t in JustMyCode.Types where
t.IsClass &&
t.NbChildren ==0 &&
!t.IsSealed &&
!t.IsStatic
// && !t.IsPublic <-- You might want to add this condition
// if you are developping a framework
// with classes that are intended to be
// sub-classed by your clients.
orderby t.NbLinesOfCode descending
select new { t, t.NbLinesOfCode }
warnif count > 0 from t in JustMyCode.Types where
t.IsClass &&
t.NbChildren ==0 &&
!t.IsSealed &&
!t.IsStatic
// && !t.IsPublic <-- You might want to add this condition
// if you are developping a framework
// with classes that are intended to be
// sub-classed by your clients.
orderby t.NbLinesOfCode descending
select new { t, t.NbLinesOfCode }
725 types matched
The following list of types is truncated and contains only the first 100 types of the 725 types matched. All matched types could be listed in the report by unchecking the option:
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched types.
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched types.
| types | # lines of code (LOC) | Full Name |
|---|---|---|
| types | # lines of code (LOC) | Full Name |
| MainForm | 638 | Validator.MainForm |
| MainForm | 529 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm |
| Project | 512 | ThoughtWorks.CruiseControl.Core.Project |
| CruiseServer | 407 | ThoughtWorks.CruiseControl.Core.CruiseServer |
| AddBuildServer | 345 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AddBuildServer |
| X10SettingsControl | 313 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.X10SettingsControl |
| CCTrayMultiSettingsForm | 285 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .CCTrayMultiSettingsForm |
| OptionSet | 281 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet |
| MainFormController | 263 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainFormController |
| Server | 237 | ThoughtWorks.CruiseControl.Remote.Monitor.Server |
| CruiseServerClient | 219 | ThoughtWorks.CruiseControl.Remote.CruiseServerClient |
| Svn | 217 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn |
| AddProjects | 212 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AddProjects |
| CurrentStatusWindow | 207 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.CurrentStatusWindow |
| FtpLib | 199 | ThoughtWorks.CruiseControl.Core.Util.FtpLib |
| BuildProjectsControl | 178 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.BuildProjectsControl |
| PackagesListForm | 175 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.PackagesListForm |
| AdministerAction | 173 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.Administration .AdministerAction |
| ConfigurationHierarchy | 171 | Validator.ConfigurationHierarchy |
| DisplayChangedProjects | 170 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .DisplayChangedProjects |
| P4 | 168 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Perforce.P4 |
| Vsts | 166 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vsts |
| PackagePublisher | 165 | ThoughtWorks.CruiseControl.Core.Publishers.PackagePublisher |
| ServerAggregatingCruiseManagerWrapper | 165 | ThoughtWorks.CruiseControl.WebDashboard.ServerConnection .ServerAggregatingCruiseManagerWrapper |
| Git | 160 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Git |
| ExternalFileSecurityManager | 160 | ThoughtWorks.CruiseControl.Core.Security.ExternalFileSecurityManager |
| HttpStatusTask | 159 | ThoughtWorks.CruiseControl.Core.Tasks.HttpStatusTask |
| GeneralSettingsControl | 159 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .GeneralSettingsControl |
| IntegrationQueue | 157 | ThoughtWorks.CruiseControl.Core.Queues.IntegrationQueue |
| CruiseServerClient | 156 | ThoughtWorks.CruiseControl.Core.CruiseServerClient |
| Pvcs | 149 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Pvcs |
| AudioSettingsControl | 149 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AudioSettingsControl |
| GrowlSettingsControl | 147 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.GrowlSettingsControl |
| Package | 146 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.Administration.Package |
| CruiseObjectSourceInitializer | 145 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard .CruiseObjectSourceInitializer |
| BuildParameters | 143 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.BuildParameters |
| Program | 141 | ThoughtWorks.CruiseControl.CCCmd.Program |
| IconSettingsControl | 140 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.IconSettingsControl |
| EmailMessage | 139 | ThoughtWorks.CruiseControl.Core.Publishers.EmailMessage |
| Project | 138 | ThoughtWorks.CruiseControl.Remote.Monitor.Project |
| ConfigureServer | 133 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.ConfigureServer |
| Cm11LowLevelDriver+Cm11LowLevelDriverWorker | 132 | ThoughtWorks.CruiseControl.CCTrayLib.X10 .Cm11LowLevelDriver+Cm11LowLevelDriverWorker |
| ProjectIntegrator | 126 | ThoughtWorks.CruiseControl.Core.ProjectIntegrator |
| RemoteCruiseServer | 124 | ThoughtWorks.CruiseControl.Core.RemoteCruiseServer |
| DupFinderTask | 124 | ThoughtWorks.CruiseControl.Core.Tasks.DupFinderTask |
| NCoverReportTask | 123 | ThoughtWorks.CruiseControl.Core.Tasks.NCoverReportTask |
| Mercurial | 123 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mercurial.Mercurial |
| StringUtil | 121 | ThoughtWorks.CruiseControl.Core.Util.StringUtil |
| Cvs | 120 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Cvs |
| SynergyCommand | 120 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic.SynergyCommand |
| PackageManager | 119 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.Administration .PackageManager |
| Vault317 | 118 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault317 |
| ProjectMonitor | 117 | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring.ProjectMonitor |
| RssPublisher | 112 | ThoughtWorks.CruiseControl.Core.Publishers.RssPublisher |
| CruiseManager | 105 | ThoughtWorks.CruiseControl.Core.CruiseManager |
| ProjectReportProjectPlugin | 105 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.ProjectReport .ProjectReportProjectPlugin |
| About | 104 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.About |
| ExecSettingsControl | 103 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.ExecSettingsControl |
| InternalSecurityManager | 102 | ThoughtWorks.CruiseControl.Core.Security.InternalSecurityManager |
| ConfigPreprocessorEnvironment | 102 | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment |
| XmlIntegrationResultWriter | 102 | ThoughtWorks.CruiseControl.Core.Publishers.XmlIntegrationResultWriter |
| PowerShellTask | 101 | ThoughtWorks.CruiseControl.Core.Tasks.PowerShellTask |
| Mks | 100 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mks |
| EmailPublisher | 100 | ThoughtWorks.CruiseControl.Core.Publishers.EmailPublisher |
| ProcessExecutor+RunnableProcess | 98 | ThoughtWorks.CruiseControl.Core.Util.ProcessExecutor+RunnableProcess |
| ArtifactCleanUpTask | 96 | ThoughtWorks.CruiseControl.Core.Tasks.ArtifactCleanUpTask |
| SideBarViewBuilder | 96 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.SideBarViewBuilder |
| ConfigureUserPassword | 96 | ThoughtWorks.CruiseControl.CCTrayLib.Security.ConfigureUserPassword |
| XmlLogger | 95 | ThoughtWorks.CruiseControl.MSBuild.XmlLogger |
| AboutForm | 93 | Validator.AboutForm |
| BuildQueue | 92 | ThoughtWorks.CruiseControl.Remote.Monitor.BuildQueue |
| BitKeeperHistoryParser | 91 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.BitKeeper .BitKeeperHistoryParser |
| VelocityProjectGridAction | 91 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard .VelocityProjectGridAction |
| ClearCase | 89 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.ClearCase |
| CCTrayMultiConfiguration | 89 | ThoughtWorks.CruiseControl.CCTrayLib.Configuration .CCTrayMultiConfiguration |
| ObjectionStore | 88 | Objection.ObjectionStore |
| IntegrationRunner | 88 | ThoughtWorks.CruiseControl.Core.IntegrationRunner |
| NDependTask | 86 | ThoughtWorks.CruiseControl.Core.Tasks.NDependTask |
| CruiseServerHttpClient | 85 | ThoughtWorks.CruiseControl.Remote.CruiseServerHttpClient |
| MsBuildTask | 84 | ThoughtWorks.CruiseControl.Core.Tasks.MsBuildTask |
| Vss | 83 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vss |
| SvnHistoryParser | 81 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.SvnHistoryParser |
| SystemIoFileSystem | 80 | ThoughtWorks.CruiseControl.Core.Util.SystemIoFileSystem |
| VersionInformationForm | 79 | Validator.VersionInformationForm |
| BuildPublisher | 78 | ThoughtWorks.CruiseControl.Core.Publishers.BuildPublisher |
| VaultVersionChecker | 76 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VaultVersionChecker |
| AggregatingProjectMonitor | 76 | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring .AggregatingProjectMonitor |
| CruiseServerClientFactory | 75 | ThoughtWorks.CruiseControl.Remote.CruiseServerClientFactory |
| CvsHistoryParser | 75 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.CvsHistoryParser |
| EncryptingConnection | 74 | ThoughtWorks.CruiseControl.Remote.EncryptingConnection |
| DevenvTask | 74 | ThoughtWorks.CruiseControl.Core.Tasks.DevenvTask |
| VaultHistoryParser | 74 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VaultHistoryParser |
| Synergy | 74 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic.Synergy |
| IntegrationQueueManager | 73 | ThoughtWorks.CruiseControl.Core.IntegrationQueueManager |
| FileBasedSessionCache | 72 | ThoughtWorks.CruiseControl.Core.Security.FileBasedSessionCache |
| FinalBuilderTask | 71 | ThoughtWorks.CruiseControl.Core.Tasks.FinalBuilderTask |
| NetReflectorConfigurationReader | 71 | ThoughtWorks.CruiseControl.Core.Config.NetReflectorConfigurationReader |
| NCoverProfileTask | 70 | ThoughtWorks.CruiseControl.Core.Tasks.NCoverProfileTask |
| SelectParameter | 69 | ThoughtWorks.CruiseControl.Remote.Parameters.SelectParameter |
| XmlUtil | 69 | ThoughtWorks.CruiseControl.Core.Util.XmlUtil |
Statistics
| Stat | # lines of code (LOC) |
|---|---|
| Sum: | 25 704 |
| Average: | 35.454 |
| Minimum: | 0 |
| Maximum: | 638 |
| Standard deviation: | 58.446 |
| Variance: | 3 415 |
| Rule warning: Overrides of Method() should call base.Method() |
// <Name>Overrides of Method() should call base.Method()</Name>
// Overrides of Method() should refine the behavior of base.Method().
// If base.Method() is not called, the base behavior is not refined but it is replaced.
// Violations of this rule are a sign of design flaw,
// especially if the design provides valid reasons
// that advocates that the base behavior must be replaced and not refined.
//
// Discussions on this topic are available here:
// http://stackoverflow.com/questions/1107022/should-i-call-the-base-class-implementation-when-overriding-a-method-in-c-sharp
// http://stackoverflow.com/questions/2945147/make-sure-base-method-gets-called-in-c-sharp
warnif count > 0
from t in Types // Take account of third-party types too
// Bother only classes with descendant
where t.IsClass && t.NbChildren > 0
from mBase in t.InstanceMethods
where mBase.IsVirtual &&
!mBase.IsThirdParty &&
!mBase.IsAbstract &&
!mBase.IsExplicitInterfaceImpl
from mOverride in mBase.OverridesDirectDerived
where !mOverride.IsUsing(mBase)
select new { mOverride, shouldCall = mBase, definedInBaseClass = mBase.ParentType }
// Overrides of Method() should refine the behavior of base.Method().
// If base.Method() is not called, the base behavior is not refined but it is replaced.
// Violations of this rule are a sign of design flaw,
// especially if the design provides valid reasons
// that advocates that the base behavior must be replaced and not refined.
//
// Discussions on this topic are available here:
// http://stackoverflow.com/questions/1107022/should-i-call-the-base-class-implementation-when-overriding-a-method-in-c-sharp
// http://stackoverflow.com/questions/2945147/make-sure-base-method-gets-called-in-c-sharp
warnif count > 0
from t in Types // Take account of third-party types too
// Bother only classes with descendant
where t.IsClass && t.NbChildren > 0
from mBase in t.InstanceMethods
where mBase.IsVirtual &&
!mBase.IsThirdParty &&
!mBase.IsAbstract &&
!mBase.IsExplicitInterfaceImpl
from mOverride in mBase.OverridesDirectDerived
where !mOverride.IsUsing(mBase)
select new { mOverride, shouldCall = mBase, definedInBaseClass = mBase.ParentType }
131 methods matched
The following list of methods is truncated and contains only the first 100 methods of the 131 methods matched. All matched methods could be listed in the report by unchecking the option:
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched methods.
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched methods.
| methods | shouldCall | definedInBaseClass | Full Name |
|---|---|---|---|
| methods | shouldCall | definedInBaseClass | Full Name |
| GetProjectStatus() | GetProjectStatus() | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .GetProjectStatus() |
| GetProjectStatus() | GetProjectStatus() | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.GetProjectStatus( ) |
| GetProjectStatus() | GetProjectStatus() | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerHttpClient .GetProjectStatus() |
| ForceBuild(String) | ForceBuild(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .ForceBuild(String) |
| ForceBuild(String) | ForceBuild(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.ForceBuild(String ) |
| ForceBuild(String) | ForceBuild(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerHttpClient.ForceBuild (String) |
| ForceBuild(String,List<NameValuePair>) | ForceBuild(String,List<NameValuePair>) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .ForceBuild(String,List<NameValuePair>) |
| ForceBuild(String,List<NameValuePair>) | ForceBuild(String,List<NameValuePair>) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.ForceBuild(String ,List<NameValuePair>) |
| ForceBuild(String,List<NameValuePair>) | ForceBuild(String,List<NameValuePair>) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerHttpClient.ForceBuild (String,List<NameValuePair>) |
| AbortBuild(String) | AbortBuild(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .AbortBuild(String) |
| AbortBuild(String) | AbortBuild(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.AbortBuild(String ) |
| AbortBuild(String) | AbortBuild(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerHttpClient.AbortBuild (String) |
| Request(String,IntegrationRequest) | Request(String,IntegrationRequest) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient.Request (String,IntegrationRequest) |
| Request(String,IntegrationRequest) | Request(String,IntegrationRequest) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.Request(String ,IntegrationRequest) |
| Request(String,IntegrationRequest) | Request(String,IntegrationRequest) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerHttpClient.Request (String,IntegrationRequest) |
| StartProject(String) | StartProject(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .StartProject(String) |
| StartProject(String) | StartProject(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.StartProject (String) |
| StartProject(String) | StartProject(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerHttpClient.StartProject (String) |
| StopProject(String) | StopProject(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .StopProject(String) |
| StopProject(String) | StopProject(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.StopProject (String) |
| StopProject(String) | StopProject(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerHttpClient.StopProject (String) |
| SendMessage(String,Message) | SendMessage(String,Message) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .SendMessage(String,Message) |
| SendMessage(String,Message) | SendMessage(String,Message) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.SendMessage (String,Message) |
| WaitForExit(String) | WaitForExit(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .WaitForExit(String) |
| WaitForExit(String) | WaitForExit(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.WaitForExit (String) |
| CancelPendingRequest(String) | CancelPendingRequest(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .CancelPendingRequest(String) |
| CancelPendingRequest(String) | CancelPendingRequest(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient .CancelPendingRequest(String) |
| GetCruiseServerSnapshot() | GetCruiseServerSnapshot() | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .GetCruiseServerSnapshot() |
| GetCruiseServerSnapshot() | GetCruiseServerSnapshot() | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient .GetCruiseServerSnapshot() |
| GetCruiseServerSnapshot() | GetCruiseServerSnapshot() | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerHttpClient .GetCruiseServerSnapshot() |
| GetLatestBuildName(String) | GetLatestBuildName(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .GetLatestBuildName(String) |
| GetLatestBuildName(String) | GetLatestBuildName(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient .GetLatestBuildName(String) |
| GetBuildNames(String) | GetBuildNames(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .GetBuildNames(String) |
| GetBuildNames(String) | GetBuildNames(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.GetBuildNames (String) |
| GetMostRecentBuildNames(String,Int32) | GetMostRecentBuildNames(String,Int32) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .GetMostRecentBuildNames(String,Int32) |
| GetMostRecentBuildNames(String,Int32) | GetMostRecentBuildNames(String,Int32) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient .GetMostRecentBuildNames(String,Int32) |
| GetLog(String,String,Boolean) | GetLog(String,String,Boolean) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient.GetLog (String,String,Boolean) |
| GetLog(String,String,Boolean) | GetLog(String,String,Boolean) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.GetLog(String ,String,Boolean) |
| GetServerLog() | GetServerLog() | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .GetServerLog() |
| GetServerLog() | GetServerLog() | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.GetServerLog() |
| GetServerLog(String) | GetServerLog(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .GetServerLog(String) |
| GetServerLog(String) | GetServerLog(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.GetServerLog (String) |
| GetServerVersion() | GetServerVersion() | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .GetServerVersion() |
| GetServerVersion() | GetServerVersion() | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.GetServerVersion( ) |
| GetServerVersion() | GetServerVersion() | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerHttpClient .GetServerVersion() |
| AddProject(String) | AddProject(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .AddProject(String) |
| AddProject(String) | AddProject(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.AddProject(String ) |
| DeleteProject(String,Boolean,Boolean,Boolean) | DeleteProject(String,Boolean,Boolean,Boolean) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .DeleteProject(String,Boolean,Boolean,Boolean) |
| DeleteProject(String,Boolean,Boolean,Boolean) | DeleteProject(String,Boolean,Boolean,Boolean) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.DeleteProject (String,Boolean,Boolean,Boolean) |
| GetProject(String) | GetProject(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .GetProject(String) |
| GetProject(String) | GetProject(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.GetProject(String ) |
| UpdateProject(String,String) | UpdateProject(String,String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .UpdateProject(String,String) |
| UpdateProject(String,String) | UpdateProject(String,String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.UpdateProject (String,String) |
| GetExternalLinks(String) | GetExternalLinks(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .GetExternalLinks(String) |
| GetExternalLinks(String) | GetExternalLinks(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.GetExternalLinks (String) |
| GetArtifactDirectory(String) | GetArtifactDirectory(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .GetArtifactDirectory(String) |
| GetArtifactDirectory(String) | GetArtifactDirectory(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient .GetArtifactDirectory(String) |
| GetStatisticsDocument(String) | GetStatisticsDocument(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .GetStatisticsDocument(String) |
| GetStatisticsDocument(String) | GetStatisticsDocument(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient .GetStatisticsDocument(String) |
| GetModificationHistoryDocument(String) | GetModificationHistoryDocument(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .GetModificationHistoryDocument(String) |
| GetModificationHistoryDocument(String) | GetModificationHistoryDocument(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient .GetModificationHistoryDocument(String) |
| GetRSSFeed(String) | GetRSSFeed(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .GetRSSFeed(String) |
| GetRSSFeed(String) | GetRSSFeed(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.GetRSSFeed(String ) |
| Login(List<NameValuePair>) | Login(List<NameValuePair>) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.Login(List <NameValuePair>) |
| Logout() | Logout() | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.Logout() |
| GetSecurityConfiguration() | GetSecurityConfiguration() | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient .GetSecurityConfiguration() |
| ListUsers() | ListUsers() | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.ListUsers() |
| DiagnoseSecurityPermissions(String,String[]) | DiagnoseSecurityPermissions(String,String[]) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient .DiagnoseSecurityPermissions(String,String[]) |
| ReadAuditRecords(Int32,Int32) | ReadAuditRecords(Int32,Int32) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.ReadAuditRecords (Int32,Int32) |
| ReadAuditRecords(Int32,Int32,AuditFilterBase) | ReadAuditRecords(Int32,Int32,AuditFilterBase) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.ReadAuditRecords (Int32,Int32,AuditFilterBase) |
| ListBuildParameters(String) | ListBuildParameters(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient .ListBuildParameters(String) |
| ChangePassword(String,String) | ChangePassword(String,String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.ChangePassword (String,String) |
| ResetPassword(String,String) | ResetPassword(String,String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.ResetPassword (String,String) |
| TakeStatusSnapshot(String) | TakeStatusSnapshot(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient .TakeStatusSnapshot(String) |
| RetrievePackageList(String) | RetrievePackageList(String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient .RetrievePackageList(String) |
| RetrieveFileTransfer(String,String) | RetrieveFileTransfer(String,String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .RetrieveFileTransfer(String,String) |
| RetrieveFileTransfer(String,String) | RetrieveFileTransfer(String,String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient .RetrieveFileTransfer(String,String) |
| GetFreeDiskSpace() | GetFreeDiskSpace() | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.GetFreeDiskSpace( ) |
| GetLinkedSiteId(String,String) | GetLinkedSiteId(String,String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.GetLinkedSiteId (String,String) |
| ProcessMessage(String,String) | ProcessMessage(String,String) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.ProcessMessage (String,String) |
| ProcessMessage(String,ServerRequest) | ProcessMessage(String,ServerRequest) | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.ProcessMessage (String,ServerRequest) |
| ListServers() | ListServers() | CruiseServerClientBase | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.ListServers() |
| get_ClientDefaultValue() | get_ClientDefaultValue() | ParameterBase | ThoughtWorks.CruiseControl.Remote.Parameters.SelectParameter .get_ClientDefaultValue() |
| get_ClientDefaultValue() | get_ClientDefaultValue() | ParameterBase | ThoughtWorks.CruiseControl.Remote.Parameters.DateParameter .get_ClientDefaultValue() |
| set_ClientDefaultValue(String) | set_ClientDefaultValue(String) | ParameterBase | ThoughtWorks.CruiseControl.Remote.Parameters.SelectParameter .set_ClientDefaultValue(String) |
| set_ClientDefaultValue(String) | set_ClientDefaultValue(String) | ParameterBase | ThoughtWorks.CruiseControl.Remote.Parameters.DateParameter .set_ClientDefaultValue(String) |
| Convert(String) | Convert(String) | ParameterBase | ThoughtWorks.CruiseControl.Remote.Parameters.BooleanParameter.Convert (String) |
| Convert(String) | Convert(String) | ParameterBase | ThoughtWorks.CruiseControl.Remote.Parameters.SelectParameter.Convert (String) |
| Convert(String) | Convert(String) | ParameterBase | ThoughtWorks.CruiseControl.Remote.Parameters.DateParameter.Convert (String) |
| GenerateClientDefault() | GenerateClientDefault() | ParameterBase | ThoughtWorks.CruiseControl.Remote.Parameters.SelectParameter .GenerateClientDefault() |
| GenerateClientDefault() | GenerateClientDefault() | ParameterBase | ThoughtWorks.CruiseControl.Remote.Parameters.DateParameter .GenerateClientDefault() |
| get_Modifications() | get_Modifications() | IntegrationResult | ThoughtWorks.CruiseControl.Core.WorkflowResult.get_Modifications() |
| set_Modifications(Modification[]) | set_Modifications(Modification[]) | IntegrationResult | ThoughtWorks.CruiseControl.Core.WorkflowResult.set_Modifications (Modification[]) |
| GetProcessSuccessCodes() | GetProcessSuccessCodes() | BaseExecutableTask | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask .GetProcessSuccessCodes() |
| GetProcessSuccessCodes() | GetProcessSuccessCodes() | BaseExecutableTask | ThoughtWorks.CruiseControl.Core.Tasks.ExecutableTask .GetProcessSuccessCodes() |
| get_Data() | get_Data() | ProcessTaskResult | ThoughtWorks.CruiseControl.Core.Tasks.DevenvTaskResult.get_Data() |
| Generate(IIntegrationResult) | Generate(IIntegrationResult) | DefaultLabeller | ThoughtWorks.CruiseControl.Core.Label.IterationLabeller.Generate (IIntegrationResult) |
| PreprocessParameters(NetReflectorTypeTable,XmlNode) | PreprocessParameters(NetReflectorTypeTable,XmlNode) | SourceControlBase | ThoughtWorks.CruiseControl.Core.Sourcecontrol.MultiSourceControl .PreprocessParameters(NetReflectorTypeTable,XmlNode) |
| GetSource(IIntegrationResult) | GetSource(IIntegrationResult) | ProcessSourceControl | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault3.GetSource (IIntegrationResult) |
| GetSource(IIntegrationResult) | GetSource(IIntegrationResult) | ProcessSourceControl | ThoughtWorks.CruiseControl.Core.Sourcecontrol.BitKeeper.BitKeeper .GetSource(IIntegrationResult) |
Statistics
| Stat | shouldCall | definedInBaseClass |
|---|---|---|
| Sum: | 0 | 0 |
| Average: | 0 | 0 |
| Minimum: | 0 | 0 |
| Maximum: | 0 | 0 |
| Standard deviation: | 0 | 0 |
| Variance: | 0 | 0 |
| Rule warning: A stateless class or structure might be turned into a static type |
// <Name>A stateless class or structure might be turned into a static type</Name>
// This rule indicates stateless types that might
// eventually be turned into static classes.
warnif count > 0 from t in JustMyCode.Types where
!t.IsStatic &&
!t.IsGeneric &&
t.InstanceFields.Count() == 0 &&
// Don't match:
// --> types that implement some interfaces.
t.NbInterfacesImplemented == 0 &&
// --> or classes that have sub-classes children.
t.NbChildren == 0 &&
// --> or classes that have a base class
((t.IsClass && t.DepthOfDeriveFrom("System.Object".AllowNoMatch()) == 1) ||
t.IsStructure)
select t
// This rule indicates stateless types that might
// eventually be turned into static classes.
warnif count > 0 from t in JustMyCode.Types where
!t.IsStatic &&
!t.IsGeneric &&
t.InstanceFields.Count() == 0 &&
// Don't match:
// --> types that implement some interfaces.
t.NbInterfacesImplemented == 0 &&
// --> or classes that have sub-classes children.
t.NbChildren == 0 &&
// --> or classes that have a base class
((t.IsClass && t.DepthOfDeriveFrom("System.Object".AllowNoMatch()) == 1) ||
t.IsStructure)
select t
33 types matched
| types | Full Name |
|---|---|
| types | Full Name |
| LogFileUtil | ThoughtWorks.CruiseControl.Core.LogFileUtil |
| IntegrationStatusParser | ThoughtWorks.CruiseControl.Core.IntegrationStatusParser |
| CruiseXmlWriter | ThoughtWorks.CruiseControl.Core.CruiseXmlWriter |
| IntegrationPropertyNames | ThoughtWorks.CruiseControl.Core.IntegrationPropertyNames |
| FileLabeller+FileReader | ThoughtWorks.CruiseControl.Core.Label.FileLabeller+FileReader |
| TempFileUtil | ThoughtWorks.CruiseControl.Core.Util.TempFileUtil |
| DateUtil | ThoughtWorks.CruiseControl.Core.Util.DateUtil |
| ReflectionUtil | ThoughtWorks.CruiseControl.Core.Util.ReflectionUtil |
| KillUtil | ThoughtWorks.CruiseControl.Core.Util.KillUtil |
| HttpWrapper | ThoughtWorks.CruiseControl.Core.Util.HttpWrapper |
| StringUtil | ThoughtWorks.CruiseControl.Core.Util.StringUtil |
| DateTimeProvider | ThoughtWorks.CruiseControl.Core.Util.DateTimeProvider |
| XmlUtil | ThoughtWorks.CruiseControl.Core.Util.XmlUtil |
| TraceLogManager | ThoughtWorks.CruiseControl.Core.Util.Log4NetTrace.TraceLogManager |
| VSSParserFactory | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VSSParserFactory |
| Common | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Common |
| SynergyCommandBuilder | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic .SynergyCommandBuilder |
| Utils | ThoughtWorks.CruiseControl.Core.Config.Preprocessor.Utils |
| BuildLogTransformer | ThoughtWorks.CruiseControl.Core.Publishers.BuildLogTransformer |
| XmlIntegrationResultWriter+Elements | ThoughtWorks.CruiseControl.Core.Publishers .XmlIntegrationResultWriter+Elements |
| StatisticsCalculator | ThoughtWorks.CruiseControl.Core.Publishers.Statistics .StatisticsCalculator |
| RSSLinkBuilder | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.RSSLinkBuilder |
| PackageManager | ThoughtWorks.CruiseControl.WebDashboard.Plugins.Administration .PackageManager |
| Audio | ThoughtWorks.CruiseControl.CCTrayLib.Audio |
| DateTimeProvider | ThoughtWorks.CruiseControl.CCTrayLib.DateTimeProvider |
| NativeMethods | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.NativeMethods |
| X10Definitions | ThoughtWorks.CruiseControl.CCTrayLib.X10.X10Definitions |
| SpeechUtil | ThoughtWorks.CruiseControl.CCTrayLib.Speech.SpeechUtil |
| Bootstrap | ThoughtWorks.CruiseControl.CCTray.Bootstrap |
| ConsoleMain | ThoughtWorks.CruiseControl.Console.ConsoleMain |
| Program | ThoughtWorks.CruiseControl.CCCmd.Program |
| XmlLogger+XmlLoggerElements | ThoughtWorks.CruiseControl.MSBuild.XmlLogger+XmlLoggerElements |
| XmlLogger+XmlLoggerAttributes | ThoughtWorks.CruiseControl.MSBuild.XmlLogger+XmlLoggerAttributes |
Statistics
| Stat |
|---|
| Sum: |
| Average: |
| Minimum: |
| Maximum: |
| Standard deviation: |
| Variance: |
| Rule warning: Non-static classes should be instantiated or turned to static |
// <Name>Non-static classes should be instantiated or turned to static</Name>
// Notice that classes only instantiated through reflection, like plug-in root classes
// are matched by this rules.
warnif count > 0
from t in JustMyCode.Types
where t.IsClass &&
//!t.IsPublic && // if you are developping a framework,
// you might not want to match public classes
!t.IsStatic &&
!t.IsAttributeClass && // Attributes class are never seen as instantiated
!t.DeriveFrom("System.MarshalByRefObject".AllowNoMatch()) // Types instantiated through remoting infrstructure
// find the first constructor of t called
let ctorCalled = t.Constructors.FirstOrDefault(ctor => ctor.NbMethodsCallingMe > 0)
// match t if none of its constructors is called.
where ctorCalled == null
select new { t, t.Visibility }
// Notice that classes only instantiated through reflection, like plug-in root classes
// are matched by this rules.
warnif count > 0
from t in JustMyCode.Types
where t.IsClass &&
//!t.IsPublic && // if you are developping a framework,
// you might not want to match public classes
!t.IsStatic &&
!t.IsAttributeClass && // Attributes class are never seen as instantiated
!t.DeriveFrom("System.MarshalByRefObject".AllowNoMatch()) // Types instantiated through remoting infrstructure
// find the first constructor of t called
let ctorCalled = t.Constructors.FirstOrDefault(ctor => ctor.NbMethodsCallingMe > 0)
// match t if none of its constructors is called.
where ctorCalled == null
select new { t, t.Visibility }
241 types matched
The following list of types is truncated and contains only the first 100 types of the 241 types matched. All matched types could be listed in the report by unchecking the option:
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched types.
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched types.
| types | Visibility | Full Name |
|---|---|---|
| types | Visibility | Full Name |
| NameValuePairSerialiserFactory | Public | ThoughtWorks.CruiseControl.Remote.NameValuePairSerialiserFactory |
| QueueSnapshotList | Internal | ThoughtWorks.CruiseControl.Remote.QueueSnapshotList |
| QueuedRequestSnapshotList | Public | ThoughtWorks.CruiseControl.Remote.QueuedRequestSnapshotList |
| NameValuePairListSerialiserFactory | Public | ThoughtWorks.CruiseControl.Remote.NameValuePairListSerialiserFactory |
| Server | Public | ThoughtWorks.CruiseControl.Remote.Monitor.Server |
| PollingServerWatcher | Public | ThoughtWorks.CruiseControl.Remote.Monitor.PollingServerWatcher |
| BooleanParameter | Public | ThoughtWorks.CruiseControl.Remote.Parameters.BooleanParameter |
| SelectParameter | Public | ThoughtWorks.CruiseControl.Remote.Parameters.SelectParameter |
| DateParameter | Public | ThoughtWorks.CruiseControl.Remote.Parameters.DateParameter |
| NumericParameter | Public | ThoughtWorks.CruiseControl.Remote.Parameters.NumericParameter |
| Workflow | Public | ThoughtWorks.CruiseControl.Core.Workflow |
| LogFileUtil | Public | ThoughtWorks.CruiseControl.Core.LogFileUtil |
| CruiseControlRemotingException | Public | ThoughtWorks.CruiseControl.Core.CruiseControlRemotingException |
| ViewCVSUrlBuilder | Public | ThoughtWorks.CruiseControl.Core.ViewCVSUrlBuilder |
| IntegrationStatusParser | Public | ThoughtWorks.CruiseControl.Core.IntegrationStatusParser |
| IntegrationPropertyNames | Public | ThoughtWorks.CruiseControl.Core.IntegrationPropertyNames |
| MergeFileSerialiserFactory | Public | ThoughtWorks.CruiseControl.Core.Tasks.MergeFileSerialiserFactory |
| HttpStatusTask | Public | ThoughtWorks.CruiseControl.Core.Tasks.HttpStatusTask |
| CoverageThreshold | Public | ThoughtWorks.CruiseControl.Core.Tasks.CoverageThreshold |
| CruiseServerControlTask | Public | ThoughtWorks.CruiseControl.Core.Tasks.CruiseServerControlTask |
| CruiseServerControlTaskAction | Public | ThoughtWorks.CruiseControl.Core.Tasks.CruiseServerControlTaskAction |
| MergeFilesTask | Public | ThoughtWorks.CruiseControl.Core.Tasks.MergeFilesTask |
| DirectDynamicValue | Public | ThoughtWorks.CruiseControl.Core.Tasks.DirectDynamicValue |
| HttpRequestHeader | Public | ThoughtWorks.CruiseControl.Core.Tasks.HttpRequestHeader |
| SequentialTask | Public | ThoughtWorks.CruiseControl.Core.Tasks.SequentialTask |
| HttpRequestSettings | Public | ThoughtWorks.CruiseControl.Core.Tasks.HttpRequestSettings |
| ArtifactCleanUpTask | Public | ThoughtWorks.CruiseControl.Core.Tasks.ArtifactCleanUpTask |
| SynchronisationTask | Public | ThoughtWorks.CruiseControl.Core.Tasks.SynchronisationTask |
| ParallelTask | Public | ThoughtWorks.CruiseControl.Core.Tasks.ParallelTask |
| FBVariable | Public | ThoughtWorks.CruiseControl.Core.Tasks.FBVariable |
| CoverageFilter | Public | ThoughtWorks.CruiseControl.Core.Tasks.CoverageFilter |
| ReplacementDynamicValue | Public | ThoughtWorks.CruiseControl.Core.Tasks.ReplacementDynamicValue |
| FtpTask | Public | ThoughtWorks.CruiseControl.Core.Tasks.FtpTask |
| ParameterTrigger | Public | ThoughtWorks.CruiseControl.Core.Triggers.ParameterTrigger |
| AssemblyVersionLabeller | Public | ThoughtWorks.CruiseControl.Core.Label.AssemblyVersionLabeller |
| LastChangeLabeller | Public | ThoughtWorks.CruiseControl.Core.Label.LastChangeLabeller |
| DiskSpaceMonitorExtension | Public | ThoughtWorks.CruiseControl.Core.Extensions.DiskSpaceMonitorExtension |
| IntegrationRequestThrottleExtension | Public | ThoughtWorks.CruiseControl.Core.Extensions .IntegrationRequestThrottleExtension |
| IntegrationPerformanceCountersExtension | Public | ThoughtWorks.CruiseControl.Core.Extensions .IntegrationPerformanceCountersExtension |
| AccurateTimer | Public | ThoughtWorks.CruiseControl.Core.Util.AccurateTimer |
| TimeoutSerializerFactory | Public | ThoughtWorks.CruiseControl.Core.Util.TimeoutSerializerFactory |
| TempFileUtil | Public | ThoughtWorks.CruiseControl.Core.Util.TempFileUtil |
| DateUtil | Public | ThoughtWorks.CruiseControl.Core.Util.DateUtil |
| HtmlAwareMultiTransformer | Public | ThoughtWorks.CruiseControl.Core.Util.HtmlAwareMultiTransformer |
| ReflectionUtil | Public | ThoughtWorks.CruiseControl.Core.Util.ReflectionUtil |
| KillUtil | Internal | ThoughtWorks.CruiseControl.Core.Util.KillUtil |
| EnvironmentVariable | Public | ThoughtWorks.CruiseControl.Core.Util.EnvironmentVariable |
| AssemblyMatch | Public | ThoughtWorks.CruiseControl.Core.Util.AssemblyMatch |
| NotifierList | Public | ThoughtWorks.CruiseControl.Core.Util.NotifierList |
| HtmlExceptionFormatter | Public | ThoughtWorks.CruiseControl.Core.Util.HtmlExceptionFormatter |
| NetworkCredentialSerializerFactory | Public | ThoughtWorks.CruiseControl.Core.Util .NetworkCredentialSerializerFactory |
| PrivateStringSerialiserFactory | Public | ThoughtWorks.CruiseControl.Core.Util.PrivateStringSerialiserFactory |
| StringUtil | Public | ThoughtWorks.CruiseControl.Core.Util.StringUtil |
| UriSerializerFactory | Public | ThoughtWorks.CruiseControl.Core.Util.UriSerializerFactory |
| XmlUtil | Public | ThoughtWorks.CruiseControl.Core.Util.XmlUtil |
| TempDirectory | Public | ThoughtWorks.CruiseControl.Core.Util.TempDirectory |
| TraceLogManager | Public | ThoughtWorks.CruiseControl.Core.Util.Log4NetTrace.TraceLogManager |
| CommentFilter | Public | ThoughtWorks.CruiseControl.Core.Sourcecontrol.CommentFilter |
| RegExIssueTrackerUrlBuilder | Public | ThoughtWorks.CruiseControl.Core.Sourcecontrol .RegExIssueTrackerUrlBuilder |
| PathFilter | Public | ThoughtWorks.CruiseControl.Core.Sourcecontrol.PathFilter |
| FilteredSourceControl | Public | ThoughtWorks.CruiseControl.Core.Sourcecontrol.FilteredSourceControl |
| VSSParserFactory | Internal | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VSSParserFactory |
| ClearCase | Public | ThoughtWorks.CruiseControl.Core.Sourcecontrol.ClearCase |
| FtpSourceControl | Public | ThoughtWorks.CruiseControl.Core.Sourcecontrol.FtpSourceControl |
| ActionFilter | Public | ThoughtWorks.CruiseControl.Core.Sourcecontrol.ActionFilter |
| DefaultIssueTrackerUrlBuilder | Public | ThoughtWorks.CruiseControl.Core.Sourcecontrol .DefaultIssueTrackerUrlBuilder |
| VaultVersionChecker | Public | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VaultVersionChecker |
| UserFilter | Public | ThoughtWorks.CruiseControl.Core.Sourcecontrol.UserFilter |
| Surround | Public | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Surround |
| MultiIssueTrackerUrlBuilder | Public | ThoughtWorks.CruiseControl.Core.Sourcecontrol .MultiIssueTrackerUrlBuilder |
| WebSVNUrlBuilder | Public | ThoughtWorks.CruiseControl.Core.Sourcecontrol.WebSVNUrlBuilder |
| StarTeam | Public | ThoughtWorks.CruiseControl.Core.Sourcecontrol.StarTeam |
| Common | Public | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Common |
| MultiSourceControl | Public | ThoughtWorks.CruiseControl.Core.Sourcecontrol.MultiSourceControl |
| ChangeSynergyUrlBuilder | Public | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic .ChangeSynergyUrlBuilder |
| SynergyCommandBuilder | Public | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic .SynergyCommandBuilder |
| SynergyProcessExecutor | Public | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic .SynergyProcessExecutor |
| HgWebUrlBuilder | Public | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mercurial .HgWebUrlBuilder |
| MercurialModificationCollection | Public | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mercurial .MercurialModificationCollection |
| MercurialModification | Public | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mercurial .MercurialModification |
| P4 | Public | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Perforce.P4 |
| BitKeeper | Public | ThoughtWorks.CruiseControl.Core.Sourcecontrol.BitKeeper.BitKeeper |
| RolePermission | Public | ThoughtWorks.CruiseControl.Core.Security.RolePermission |
| ImpersonationDetails | Public | ThoughtWorks.CruiseControl.Core.Security.ImpersonationDetails |
| UserNameAuthentication | Public | ThoughtWorks.CruiseControl.Core.Security.UserNameAuthentication |
| UserPermission | Public | ThoughtWorks.CruiseControl.Core.Security.UserPermission |
| InternalSecurityManager | Public | ThoughtWorks.CruiseControl.Core.Security.InternalSecurityManager |
| ActiveDirectoryAuthentication | Public | ThoughtWorks.CruiseControl.Core.Security.ActiveDirectoryAuthentication |
| SecureMessagesChannel | Public | ThoughtWorks.CruiseControl.Core.Security.SecureMessagesChannel |
| NullProjectAuthorisation | Public | ThoughtWorks.CruiseControl.Core.Security.NullProjectAuthorisation |
| DefaultProjectAuthorisation | Public | ThoughtWorks.CruiseControl.Core.Security.DefaultProjectAuthorisation |
| UserPasswordAuthentication | Public | ThoughtWorks.CruiseControl.Core.Security.UserPasswordAuthentication |
| UserName | Public | ThoughtWorks.CruiseControl.Core.Security.UserName |
| XslFilesSectionHandler | Public | ThoughtWorks.CruiseControl.Core.Config.XslFilesSectionHandler |
| ServerConfigurationHandler | Public | ThoughtWorks.CruiseControl.Core.Config.ServerConfigurationHandler |
| CruiseControlConfigSectionHandler | Public | ThoughtWorks.CruiseControl.Core.Config .CruiseControlConfigSectionHandler |
| DefinitionException | Public | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .DefinitionException |
| Utils | Internal | ThoughtWorks.CruiseControl.Core.Config.Preprocessor.Utils |
| DefaultCruiseUrlBuilder | Public | ThoughtWorks.CruiseControl.Core.Reporting.Dashboard.Navigation .DefaultCruiseUrlBuilder |
| EmailSubject | Public | ThoughtWorks.CruiseControl.Core.Publishers.EmailSubject |
Statistics
| Stat | Visibility |
|---|---|
| Sum: | 0 |
| Average: | 0 |
| Minimum: | 0 |
| Maximum: | 0 |
| Standard deviation: | 0 |
| Variance: | 0 |
| Rule warning: Methods should be declared static if possible |
// <Name>Methods should be declared static if possible</Name>
warnif count > 0
// When an instance method can be safely declared as static you should declare it as static.
// Since it doesn't use any instance data and method of its type and base-types,
// you should consider if such a method could be moved to a static utility class
// or if it is strongly related enough to its current declaring type to stay in it.
//
// Turning an instance method into a static method is a micro performance optimization
// since a static method is a bit cheaper to invoke than an instance method.
from t in JustMyCode.Types.Where(t =>
!t.IsStatic && !t.IsInterface &&
!t.IsEnumeration && !t.IsDelegate &&
!t.IsGeneratedByCompiler)
let methodsThatCanBeMadeStatic =
from m in t.InstanceMethods
// An instance method can be turned to static if it is not virtual,
// not using the this reference and also, not using
// any of its class or base classes instance fields or instance methods.
where !m.IsAbstract && !m.IsVirtual &&
!m.AccessThis && !m.IsExplicitInterfaceImpl &&
// Optimization: Using FirstOrDefault() avoid do check all members,
// as soon as one member is found
// we know the method m cannot be made static.
m.MembersUsed.FirstOrDefault(
mUsed => !mUsed.IsStatic &&
(mUsed.ParentType == t ||
t.DeriveFrom(mUsed.ParentType))
) == null
select m
from m in methodsThatCanBeMadeStatic
let staticFieldsUsed = m.ParentType.StaticFields.UsedBy(m).Where(f => !f.IsGeneratedByCompiler)
select new { m, staticFieldsUsed }
warnif count > 0
// When an instance method can be safely declared as static you should declare it as static.
// Since it doesn't use any instance data and method of its type and base-types,
// you should consider if such a method could be moved to a static utility class
// or if it is strongly related enough to its current declaring type to stay in it.
//
// Turning an instance method into a static method is a micro performance optimization
// since a static method is a bit cheaper to invoke than an instance method.
from t in JustMyCode.Types.Where(t =>
!t.IsStatic && !t.IsInterface &&
!t.IsEnumeration && !t.IsDelegate &&
!t.IsGeneratedByCompiler)
let methodsThatCanBeMadeStatic =
from m in t.InstanceMethods
// An instance method can be turned to static if it is not virtual,
// not using the this reference and also, not using
// any of its class or base classes instance fields or instance methods.
where !m.IsAbstract && !m.IsVirtual &&
!m.AccessThis && !m.IsExplicitInterfaceImpl &&
// Optimization: Using FirstOrDefault() avoid do check all members,
// as soon as one member is found
// we know the method m cannot be made static.
m.MembersUsed.FirstOrDefault(
mUsed => !mUsed.IsStatic &&
(mUsed.ParentType == t ||
t.DeriveFrom(mUsed.ParentType))
) == null
select m
from m in methodsThatCanBeMadeStatic
let staticFieldsUsed = m.ParentType.StaticFields.UsedBy(m).Where(f => !f.IsGeneratedByCompiler)
select new { m, staticFieldsUsed }
185 methods matched
The following list of methods is truncated and contains only the first 100 methods of the 185 methods matched. All matched methods could be listed in the report by unchecking the option:
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched methods.
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched methods.
| methods | staticFieldsUsed | Full Name |
|---|---|---|
| methods | staticFieldsUsed | Full Name |
| ReadValue(XmlElement) | 0 field | ThoughtWorks.CruiseControl.Remote.NameValuePairSerialiser.ReadValue (XmlElement) |
| WriteValue(XmlWriter,NameValuePair,String) | 0 field | ThoughtWorks.CruiseControl.Remote.NameValuePairSerialiser.WriteValue (XmlWriter,NameValuePair,String) |
| ValidateResponse(Response) | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.ValidateResponse (Response) |
| RetrieveAttributeValue(XmlElement,String,String) | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerHttpClient .RetrieveAttributeValue(XmlElement,String,String) |
| RetrieveAttributeValue(XmlElement,String,DateTime) | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerHttpClient .RetrieveAttributeValue(XmlElement,String,DateTime) |
| RetrieveAttributeValue<TEnum>(XmlElement,String,TEnum) | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerHttpClient .RetrieveAttributeValue<TEnum>(XmlElement,String,TEnum) |
| CalculateOperation(String,DateTime) | 0 field | ThoughtWorks.CruiseControl.Remote.Parameters.DateParameter .CalculateOperation(String,DateTime) |
| FindLastUnderscore(String) | 0 field | Objection.NMockAwareImplementationResolver.FindLastUnderscore(String) |
| set_QueuePriority(Int32) | 0 field | ThoughtWorks.CruiseControl.Core.Workflow.set_QueuePriority(Int32) |
| get_MinimumSleepTimeMillis() | 0 field | ThoughtWorks.CruiseControl.Core.Workflow.get_MinimumSleepTimeMillis() |
| ValidateFilename(String) | 0 field | ThoughtWorks.CruiseControl.Core.LogFile.ValidateFilename(String) |
| ParseLabel(String) | 1 field | ThoughtWorks.CruiseControl.Core.LogFile.ParseLabel(String) |
| IsSuccessful(String) | 0 field | ThoughtWorks.CruiseControl.Core.LogFile.IsSuccessful(String) |
| ListServers(ServerRequest) | 0 field | ThoughtWorks.CruiseControl.Core.CruiseServerClient.ListServers (ServerRequest) |
| InitializeServerThread() | 0 field | ThoughtWorks.CruiseControl.Core.CruiseServer.InitializeServerThread() |
| ContainsInvalidChars(String) | 0 field | ThoughtWorks.CruiseControl.Core.Project.ContainsInvalidChars(String) |
| GenerateServerRequest() | 0 field | ThoughtWorks.CruiseControl.Core.CruiseManager.GenerateServerRequest() |
| GenerateProjectRequest(String) | 0 field | ThoughtWorks.CruiseControl.Core.CruiseManager.GenerateProjectRequest (String) |
| ValidateResponse(Response) | 0 field | ThoughtWorks.CruiseControl.Core.CruiseManager.ValidateResponse (Response) |
| GetRuntime() | 0 field | ThoughtWorks.CruiseControl.Core.ConsoleRunner.GetRuntime() |
| ValidateResponse(Response) | 0 field | ThoughtWorks.CruiseControl.Core.ConsoleRunner.ValidateResponse (Response) |
| SetFilesToNormalAttribute(String) | 0 field | ThoughtWorks.CruiseControl.Core.Tasks.ArtifactCleanUpTask .SetFilesToNormalAttribute(String) |
| BuildLogFolderSet(IIntegrationResult) | 0 field | ThoughtWorks.CruiseControl.Core.Tasks.ArtifactCleanUpTask .BuildLogFolderSet(IIntegrationResult) |
| ListFileDifferences(Dictionary<String,DateTime>,DirectoryInfo) | 0 field | ThoughtWorks.CruiseControl.Core.Tasks.NCoverReportTask .ListFileDifferences(Dictionary<String,DateTime>,DirectoryInfo) |
| GenerateOriginalFileList(DirectoryInfo) | 0 field | ThoughtWorks.CruiseControl.Core.Tasks.NCoverReportTask .GenerateOriginalFileList(DirectoryInfo) |
| CompareFileNodes(XmlElement,XmlElement) | 0 field | ThoughtWorks.CruiseControl.Core.Tasks.DupFinderTask.CompareFileNodes (XmlElement,XmlElement) |
| QuoteSpaces(String) | 0 field | ThoughtWorks.CruiseControl.Core.Tasks.DupFinderTask.QuoteSpaces(String ) |
| EnsurePathIsRooted(IIntegrationResult,String) | 0 field | ThoughtWorks.CruiseControl.Core.Tasks.CodeItRightTask .EnsurePathIsRooted(IIntegrationResult,String) |
| ParseTime(String) | 0 field | ThoughtWorks.CruiseControl.Core.Triggers.FilterTrigger.ParseTime (String) |
| ParseVersion(DateTime,IntegrationSummary) | 0 field | ThoughtWorks.CruiseControl.Core.Label.DateLabeller.ParseVersion (DateTime,IntegrationSummary) |
| IncrementLabel(String) | 0 field | ThoughtWorks.CruiseControl.Core.Label.LastChangeLabeller .IncrementLabel(String) |
| LoadState(TextReader) | 0 field | ThoughtWorks.CruiseControl.Core.State.FileStateManager.LoadState (TextReader) |
| HasWildCards(String) | 0 field | ThoughtWorks.CruiseControl.Core.Util.WildCardPath.HasWildCards(String) |
| CopyFileToFile(String,String) | 0 field | ThoughtWorks.CruiseControl.Core.Util.SystemIoFileSystem.CopyFileToFile (String,String) |
| get_PublicValue() | 0 field | ThoughtWorks.CruiseControl.Core.Util.PrivateString.get_PublicValue() |
| CleanUpMessageForXMLLogging(String) | 0 field | ThoughtWorks.CruiseControl.Core.Util.BuildProgressInformationData .CleanUpMessageForXMLLogging(String) |
| SendNotification(NotifierDelegate,Object) | 0 field | ThoughtWorks.CruiseControl.Core.Util.NotifierList.SendNotification (NotifierDelegate,Object) |
| Convert(String,IExecutionEnvironment) | 0 field | ThoughtWorks.CruiseControl.Core.Util.SystemPath.Convert(String ,IExecutionEnvironment) |
| FileExistsAtFtp(FTPFile[],String) | 0 field | ThoughtWorks.CruiseControl.Core.Util.FtpLib.FileExistsAtFtp(FTPFile[] ,String) |
| FolderExistsAtFtp(FTPFile[],String) | 0 field | ThoughtWorks.CruiseControl.Core.Util.FtpLib.FolderExistsAtFtp (FTPFile[],String) |
| FileIsDifferentAtFtp(FTPFile[],String,String) | 0 field | ThoughtWorks.CruiseControl.Core.Util.FtpLib.FileIsDifferentAtFtp (FTPFile[],String,String) |
| parseItem(String) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VstsHistoryParser .parseItem(String) |
| GetVaultResponse(ProcessResult,ProcessInfo) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault3.GetVaultResponse (ProcessResult,ProcessInfo) |
| CreateDate(String) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.RobocopyHistoryParser .CreateDate(String) |
| GetModificationsDetectedMessage(Modification[]) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod .GetModificationsDetectedMessage(Modification[]) |
| GetMostRecentModificationDateTime(Modification[]) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod .GetMostRecentModificationDateTime(Modification[]) |
| AssignFileInfo(Modification,String) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.ClearCaseHistoryParser .AssignFileInfo(Modification,String) |
| AssignModificationTime(Modification,String) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.ClearCaseHistoryParser .AssignModificationTime(Modification,String) |
| AccumulateMultiLineEntry(String,TextReader) | 1 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.ClearCaseHistoryParser .AccumulateMultiLineEntry(String,TextReader) |
| TokenizeEntry(String) | 1 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.ClearCaseHistoryParser .TokenizeEntry(String) |
| IsEndOfFile(String) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VssHistoryParser .IsEndOfFile(String) |
| FormatCommandDate(DateTime) | 1 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn.FormatCommandDate (DateTime) |
| WorkingFolderIsKnownAsSvnWorkingFolder(String) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn .WorkingFolderIsKnownAsSvnWorkingFolder(String) |
| CreateModification(FileInfo) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.FileSourceControl .CreateModification(FileInfo) |
| IsLocalFileChanged(FileInfo,DateTime) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.FileSourceControl .IsLocalFileChanged(FileInfo,DateTime) |
| CreateTemporaryBaselineName() | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.ClearCase .CreateTemporaryBaselineName() |
| HasFatalError(String) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.ClearCase.HasFatalError (String) |
| ValidateBaselineName(String) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.ClearCase .ValidateBaselineName(String) |
| AllModificationParams(String) | 1 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.AlienbrainHistoryParser .AllModificationParams(String) |
| ParseModification(String[]) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.AlienbrainHistoryParser .ParseModification(String[]) |
| lookForErrorReturns(ProcessResult) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vsts.lookForErrorReturns (ProcessResult) |
| FormatCommandDate(DateTime) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vsts.FormatCommandDate (DateTime) |
| ReadSvnLogIntoXmlNode(TextReader) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.SvnHistoryParser .ReadSvnLogIntoXmlNode(TextReader) |
| ParseAuthor(XmlNode) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.SvnHistoryParser .ParseAuthor(XmlNode) |
| GetFolderFromPath(String) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.SvnHistoryParser .GetFolderFromPath(String) |
| GetFileFromPath(String) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.SvnHistoryParser .GetFileFromPath(String) |
| GetAttributeFromNode(XmlNode,String) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.SvnHistoryParser .GetAttributeFromNode(XmlNode,String) |
| ParseDate(String) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.SvnHistoryParser .ParseDate(String) |
| ParseFileName(String) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.CvsHistoryParser .ParseFileName(String) |
| ParseFolderName(String) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.CvsHistoryParser .ParseFolderName(String) |
| ParseModifiedTime(String,String,String) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.CvsHistoryParser .ParseModifiedTime(String,String,String) |
| ParseType(String,String) | 1 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.CvsHistoryParser .ParseType(String,String) |
| CreateTemporaryLabelName(DateTime) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vss .CreateTemporaryLabelName(DateTime) |
| FilterOnTimeframe(Modification[],DateTime,DateTime) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mks.FilterOnTimeframe (Modification[],DateTime,DateTime) |
| IncreaseUsageCount() | 2 fields | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mks.IncreaseUsageCount() |
| ExtractXmlFromHistory(TextReader) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VaultHistoryParser .ExtractXmlFromHistory(TextReader) |
| GetComment(XmlNode) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VaultHistoryParser .GetComment(XmlNode) |
| GetTypeString(String) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VaultHistoryParser .GetTypeString(String) |
| CreatePVCSInstructionFile(String,String) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Pvcs .CreatePVCSInstructionFile(String,String) |
| CreatePVCSProcessInfo(String,String) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Pvcs .CreatePVCSProcessInfo(String,String) |
| GetUncPathPrefix(Modification) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Pvcs.GetUncPathPrefix (Modification) |
| GetTextReader(String) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Pvcs.GetTextReader (String) |
| TempFileNameIfBlank(String) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Pvcs.TempFileNameIfBlank (String) |
| FormatCommandDate(DateTime) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Cvs.FormatCommandDate (DateTime) |
| ConvertIllegalCharactersInLabel(IIntegrationResult) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Cvs .ConvertIllegalCharactersInLabel(IIntegrationResult) |
| ParseTasks(String) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic.SynergyParser .ParseTasks(String) |
| IsSessionAlive(String,String,String) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic.SynergyCommand .IsSessionAlive(String,String,String) |
| IsDatabaseProtected(String,String,String) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic.SynergyCommand .IsDatabaseProtected(String,String,String) |
| get_Type() | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mercurial .MercurialModification.get_Type() |
| CreateClientNameIfOneNotSet(P4,String) | 1 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Perforce .ProcessP4Initializer.CreateClientNameIfOneNotSet(P4,String) |
| CheckViewIsValid(String) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Perforce .ProcessP4Initializer.CheckViewIsValid(String) |
| CheckWorkingDirectoryIsValid(String) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Perforce .ProcessP4Initializer.CheckWorkingDirectoryIsValid(String) |
| ParseFileName(String) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.BitKeeper .BitKeeperHistoryParser.ParseFileName(String) |
| ParseFolderName(String) | 0 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.BitKeeper .BitKeeperHistoryParser.ParseFolderName(String) |
| GetPassword(LoginRequest) | 0 field | ThoughtWorks.CruiseControl.Core.Security.ActiveDirectoryAuthentication .GetPassword(LoginRequest) |
| HidePasswords(String) | 0 field | ThoughtWorks.CruiseControl.Core.Security .ServerSecurityConfigurationInformation.HidePasswords(String) |
| AddXmlElement(XmlDocument,XmlElement,String,String) | 0 field | ThoughtWorks.CruiseControl.Core.Security.Auditing.FileXmlLogger .AddXmlElement(XmlDocument,XmlElement,String,String) |
| ReadDataValue(XmlDocument,String) | 0 field | ThoughtWorks.CruiseControl.Core.Security.Auditing.FileXmlReader .ReadDataValue(XmlDocument,String) |
| LoadAndValidateSecurityManager(Configuration,Object) | 0 field | ThoughtWorks.CruiseControl.Core.Config.NetReflectorConfigurationReader .LoadAndValidateSecurityManager(Configuration,Object) |
| LoadAndValidateQueue(Configuration,Object) | 0 field | ThoughtWorks.CruiseControl.Core.Config.NetReflectorConfigurationReader .LoadAndValidateQueue(Configuration,Object) |
Statistics
| Stat | staticFieldsUsed |
|---|---|
| Sum: | 0 |
| Average: | 0 |
| Minimum: | 0 |
| Maximum: | 0 |
| Standard deviation: | 0 |
| Variance: | 0 |
| Rule warning: Constructor should not call a virtual methods |
// <Name>Constructor should not call a virtual methods</Name>
// Returns constructor of a non-sealed type calling virtual methods.
// In such a situation, if a derived class overrides the method,
// then the override method will be called before the derived constructor.
// This makes the class fragile to derive from.
//
// Violations reported can be solved by re-designing object initialisation
// or by marking the parent class as sealed, if possible.
warnif count > 0
from t in Application.Types where
t.IsClass &&
!t.IsGeneratedByCompiler &&
!t.IsSealed
from ctor in t.Constructors
let virtualMethodsCalled = from mCalled in ctor.MethodsCalled
where mCalled.IsVirtual &&
(mCalled.ParentType == t ||
t.DeriveFrom(mCalled.ParentType))
select mCalled
where virtualMethodsCalled.Count() > 0
select new { ctor ,
virtualMethodsCalled,
// If there is no derived type, it might be
// an opportunity to mark t as sealed.
t.DerivedTypes }
// Returns constructor of a non-sealed type calling virtual methods.
// In such a situation, if a derived class overrides the method,
// then the override method will be called before the derived constructor.
// This makes the class fragile to derive from.
//
// Violations reported can be solved by re-designing object initialisation
// or by marking the parent class as sealed, if possible.
warnif count > 0
from t in Application.Types where
t.IsClass &&
!t.IsGeneratedByCompiler &&
!t.IsSealed
from ctor in t.Constructors
let virtualMethodsCalled = from mCalled in ctor.MethodsCalled
where mCalled.IsVirtual &&
(mCalled.ParentType == t ||
t.DeriveFrom(mCalled.ParentType))
select mCalled
where virtualMethodsCalled.Count() > 0
select new { ctor ,
virtualMethodsCalled,
// If there is no derived type, it might be
// an opportunity to mark t as sealed.
t.DerivedTypes }
13 methods matched
| methods | virtualMethodsCalled | DerivedTypes | Full Name |
|---|---|---|---|
| methods | virtualMethodsCalled | DerivedTypes | Full Name |
| .ctor() | 1 method | 13 types | ThoughtWorks.CruiseControl.Remote.Messages.ServerRequest..ctor() |
| .ctor(String) | 1 method | 13 types | ThoughtWorks.CruiseControl.Remote.Messages.ServerRequest..ctor(String) |
| .ctor(ImplementationResolver,ConstructorSelectionStrategy) | 1 method | 0 type | Objection.ObjectionStore..ctor(ImplementationResolver ,ConstructorSelectionStrategy) |
| .ctor(String,String,String,IntegrationRequest,IntegrationSummary) | 3 methods | 1 type | ThoughtWorks.CruiseControl.Core.IntegrationResult..ctor(String,String ,String,IntegrationRequest,IntegrationSummary) |
| .ctor() | 1 method | 0 type | ThoughtWorks.CruiseControl.Core.Project..ctor() |
| .ctor(ProcessResult,Boolean) | 1 method | 1 type | ThoughtWorks.CruiseControl.Core.Tasks.ProcessTaskResult..ctor (ProcessResult,Boolean) |
| .ctor(String,String,String) | 1 method | 0 type | ThoughtWorks.CruiseControl.Core.Util.LdapHelper..ctor(String,String ,String) |
| .ctor(String[]) | 1 method | 0 type | ThoughtWorks.CruiseControl.Core.Util.FileChangedWatcher..ctor(String[] ) |
| .ctor() | 1 method | 0 type | ThoughtWorks.CruiseControl.Core.Util.TempDirectory..ctor() |
| .ctor() | 1 method | 0 type | ThoughtWorks.CruiseControl.Core.Util.DefaultShadowCopier+ShadowStore. .ctor() |
| .ctor(String,String,Exception) | 1 method | 0 type | ThoughtWorks.CruiseControl.WebDashboard.ServerConnection .CruiseServerException..ctor(String,String,Exception) |
| .ctor(CCTrayProject) | 1 method | 0 type | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .ProjectConfigurationListViewItemAdaptor..ctor(CCTrayProject) |
| .ctor() | 1 method | 0 type | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.X10Configuration. .ctor() |
Statistics
| Stat | virtualMethodsCalled | DerivedTypes |
|---|---|---|
| Sum: | 0 | 0 |
| Average: | 0 | 0 |
| Minimum: | 0 | 0 |
| Maximum: | 0 | 0 |
| Standard deviation: | 0 | 0 |
| Variance: | 0 | 0 |
| Rule warning: Don't assign static fields from instance methods |
// <Name>Don't assign static fields from instance methods</Name>
// Assigning static fields from instance methods leads to
// poorly maintainable and non thread-safe code.
// It is advised to assign static fields inline or from class constructor.
warnif count > 0
from f in Application.Fields where
f.IsStatic &&
!f.IsLiteral &&
!f.IsInitOnly &&
!f.IsGeneratedByCompiler &&
// Contract API define such a insideContractEvaluation static field
f.Name != "insideContractEvaluation"
let assignedBy = f.MethodsAssigningMe.Where(m => !m.IsStatic)
where assignedBy .Count() > 0
select new { f, assignedBy }
// Assigning static fields from instance methods leads to
// poorly maintainable and non thread-safe code.
// It is advised to assign static fields inline or from class constructor.
warnif count > 0
from f in Application.Fields where
f.IsStatic &&
!f.IsLiteral &&
!f.IsInitOnly &&
!f.IsGeneratedByCompiler &&
// Contract API define such a insideContractEvaluation static field
f.Name != "insideContractEvaluation"
let assignedBy = f.MethodsAssigningMe.Where(m => !m.IsStatic)
where assignedBy .Count() > 0
select new { f, assignedBy }
3 fields matched
| fields | assignedBy | Full Name |
|---|---|---|
| fields | assignedBy | Full Name |
| isRunningOnWindows | 1 method | ThoughtWorks.CruiseControl.Core.Util.ExecutionEnvironment .isRunningOnWindows |
| usageCount | 2 methods | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mks.usageCount |
| driver | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.X10.LowLevelDriverFactory.driver |
Statistics
| Stat | assignedBy |
|---|---|
| Sum: | 0 |
| Average: | 0 |
| Minimum: | 0 |
| Maximum: | 0 |
| Standard deviation: | 0 |
| Variance: | 0 |
| Rule warning: Avoid empty interfaces |
// <Name>Avoid empty interfaces</Name>
warnif count > 0 from t in JustMyCode.Types where
t.IsInterface &&
t.NbMethods == 0
select new { t, t.TypesThatImplementMe }
// Interfaces define members that provide a behavior
// or usage contract. The functionality described by
// the interface can be adopted by any type,
// regardless of where the type appears in the
// inheritance hierarchy. A type implements an
// interface by providing implementations for the
// interface's members. An empty interface does not
// define any members, and as such, does not define
// a contract that can be implemented.
// If your design includes empty interfaces that
// types are expected to implement, you are probably
// using an interface as a marker, or a way of
// identifying a group of types. If this identification
// will occur at runtime, the correct way to accomplish
// this is to use a custom attribute. Use the presence
// or absence of the attribute, or the attribute's
// properties, to identify the target types. If the
// identification must occurs at compile time, then using
// an empty interface is acceptable.
warnif count > 0 from t in JustMyCode.Types where
t.IsInterface &&
t.NbMethods == 0
select new { t, t.TypesThatImplementMe }
// Interfaces define members that provide a behavior
// or usage contract. The functionality described by
// the interface can be adopted by any type,
// regardless of where the type appears in the
// inheritance hierarchy. A type implements an
// interface by providing implementations for the
// interface's members. An empty interface does not
// define any members, and as such, does not define
// a contract that can be implemented.
// If your design includes empty interfaces that
// types are expected to implement, you are probably
// using an interface as a marker, or a way of
// identifying a group of types. If this identification
// will occur at runtime, the correct way to accomplish
// this is to use a custom attribute. Use the presence
// or absence of the attribute, or the attribute's
// properties, to identify the target types. If the
// identification must occurs at compile time, then using
// an empty interface is acceptable.
2 types matched
| types | TypesThatImplementMe | Full Name |
|---|---|---|
| types | TypesThatImplementMe | Full Name |
| IMergeTask | 1 type | ThoughtWorks.CruiseControl.Core.IMergeTask |
| INoSiteTemplateAction | 1 type | ThoughtWorks.CruiseControl.WebDashboard.Dashboard .INoSiteTemplateAction |
Statistics
| Stat | TypesThatImplementMe |
|---|---|
| Sum: | 0 |
| Average: | 0 |
| Minimum: | 0 |
| Maximum: | 0 |
| Standard deviation: | 0 |
| Variance: | 0 |
| Design |
|
|
| Rule warning: Avoid custom delegates |
// <Name>Avoid custom delegates</Name>
// Prefer using one of the standard generic delegate type in
// Predicate<T> Func<T0,T1,..,TResult> Action<T0,T1,..>
// instead of creating your own delegate type.
// Not only the code using these custom delegates will become clearer,
// but you'll be relieved from the maintenance of these delegate types.
//
// Notice that delegate that are consumed by DllImport extern methods
// must not be converted, else this could provoke marshalling issues.
warnif count > 0
from t in Application.Types where t.IsDelegate
let invokeMethod = (from m in t.Methods where m.SimpleName == "Invoke" select m).Single()
let signature1 = invokeMethod.Name.Substring(invokeMethod.SimpleName.Length, invokeMethod.Name.Length - invokeMethod.SimpleName.Length)
// 'ref' and 'out' parameters canot be supported
where !signature1.Contains("&")
let signature2 = signature1.Replace("(","<").Replace(")",">")
let signature3 = signature2 == "<>" ? "" : signature2
let resultTypeName = invokeMethod.ReturnType == null ? "????" :
invokeMethod.ReturnType.FullName == "System.Void" ? "" :
invokeMethod.ReturnType.Name
let replaceWith = resultTypeName == "Boolean" ?
"Predicate" + signature3 : resultTypeName == "" ?
"Action" + signature3 :
"Func" + signature3.Replace(">", "," + resultTypeName + ">")
select new { t, replaceWith }
// Prefer using one of the standard generic delegate type in
// Predicate<T> Func<T0,T1,..,TResult> Action<T0,T1,..>
// instead of creating your own delegate type.
// Not only the code using these custom delegates will become clearer,
// but you'll be relieved from the maintenance of these delegate types.
//
// Notice that delegate that are consumed by DllImport extern methods
// must not be converted, else this could provoke marshalling issues.
warnif count > 0
from t in Application.Types where t.IsDelegate
let invokeMethod = (from m in t.Methods where m.SimpleName == "Invoke" select m).Single()
let signature1 = invokeMethod.Name.Substring(invokeMethod.SimpleName.Length, invokeMethod.Name.Length - invokeMethod.SimpleName.Length)
// 'ref' and 'out' parameters canot be supported
where !signature1.Contains("&")
let signature2 = signature1.Replace("(","<").Replace(")",">")
let signature3 = signature2 == "<>" ? "" : signature2
let resultTypeName = invokeMethod.ReturnType == null ? "????" :
invokeMethod.ReturnType.FullName == "System.Void" ? "" :
invokeMethod.ReturnType.Name
let replaceWith = resultTypeName == "Boolean" ?
"Predicate" + signature3 : resultTypeName == "" ?
"Action" + signature3 :
"Func" + signature3.Replace(">", "," + resultTypeName + ">")
select new { t, replaceWith }
21 types matched
| types | replaceWith | Full Name |
|---|---|---|
| types | replaceWith | Full Name |
| CruiseServerClientFactory+ClientInitialiser | Func<String,ClientStartUpSettings,CruiseServerClientBase> | ThoughtWorks.CruiseControl.Remote .CruiseServerClientFactory+ClientInitialiser |
| OptionAction<TKey,TValue> | Action<TKey,TValue> | ThoughtWorks.CruiseControl.Remote.Mono.OptionAction<TKey,TValue> |
| CruiseServer+ProjectRequestAction | Action<ProjectRequest,Response> | ThoughtWorks.CruiseControl.Core.CruiseServer+ProjectRequestAction |
| ConsoleEventHandler+ControlEventHandler | Action<ConsoleEventHandler+ConsoleEvent> | ThoughtWorks.CruiseControl.Core .ConsoleEventHandler+ControlEventHandler |
| NotifierDelegate | Action<Object> | ThoughtWorks.CruiseControl.Core.Util.NotifierDelegate |
| LoadDataHandler | Func | ThoughtWorks.CruiseControl.Core.Util.LoadDataHandler |
| ConfigurationUpdateHandler | Action | ThoughtWorks.CruiseControl.Core.Config.ConfigurationUpdateHandler |
| ConfigurationSubfileLoadedHandler | Action<String> | ThoughtWorks.CruiseControl.Core.Config .ConfigurationSubfileLoadedHandler |
| ExceptionFactory | Func<String,Object[],Exception> | ThoughtWorks.CruiseControl.Core.Config.Preprocessor.ExceptionFactory |
| BuildOccurredEventHandler | Action<Object,BuildOccurredEventArgs> | ThoughtWorks.CruiseControl.CCTrayLib.BuildOccurredEventHandler |
| Func<T,TResult> | Func<T,????> | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.Func<T,TResult> |
| Func<TResult> | Func | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.Func<TResult> |
| MonitorServerPolledEventHandler | Action<Object,MonitorServerPolledEventArgs> | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring .MonitorServerPolledEventHandler |
| ServerSnapshotChangedEventHandler | Action<Object,ServerSnapshotChangedEventArgs> | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring .ServerSnapshotChangedEventHandler |
| MonitorPolledEventHandler | Action<Object,MonitorPolledEventArgs> | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring .MonitorPolledEventHandler |
| MonitorServerQueueChangedEventHandler | Action<Object,MonitorServerQueueChangedEventArgs> | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring .MonitorServerQueueChangedEventHandler |
| ProjectMonitor+ActionHandler | Action | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring .ProjectMonitor+ActionHandler |
| ProjectMonitor+ActionHandler<TResult> | Func | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring .ProjectMonitor+ActionHandler<TResult> |
| MessageEventHandler | Action<String,Message> | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring.MessageEventHandler |
| MonitorBuildOccurredEventHandler | Action<Object,MonitorBuildOccurredEventArgs> | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring .MonitorBuildOccurredEventHandler |
| WindowStateEventHandler | Action<Object,WindowStateEventArgs> | Validator.WindowStateEventHandler |
Statistics
| Stat | replaceWith |
|---|---|
| Sum: | 0 |
| Average: | 0 |
| Minimum: | 0 |
| Maximum: | 0 |
| Standard deviation: | 0 |
| Variance: | 0 |
| Rule warning: Types with disposable instance fields must be disposable |
// <Name>Types with disposable instance fields must be disposable</Name>
warnif count > 0
let iDisposable = ThirdParty.Types.WithFullName("System.IDisposable").FirstOrDefault()
where iDisposable != null // iDisposable can be null if the code base doesn't use at all System.IDisposable
from t in Application.Types where
!t.Implement(iDisposable) &&
!t.IsGeneratedByCompiler
let instanceFieldsDisposable =
t.InstanceFields.Where(f => f.FieldType != null &&
f.FieldType.Implement(iDisposable))
where instanceFieldsDisposable.Count() > 0
select new { t, instanceFieldsDisposable }
warnif count > 0
let iDisposable = ThirdParty.Types.WithFullName("System.IDisposable").FirstOrDefault()
where iDisposable != null // iDisposable can be null if the code base doesn't use at all System.IDisposable
from t in Application.Types where
!t.Implement(iDisposable) &&
!t.IsGeneratedByCompiler
let instanceFieldsDisposable =
t.InstanceFields.Where(f => f.FieldType != null &&
f.FieldType.Implement(iDisposable))
where instanceFieldsDisposable.Count() > 0
select new { t, instanceFieldsDisposable }
39 types matched
| types | instanceFieldsDisposable | Full Name |
|---|---|---|
| types | instanceFieldsDisposable | Full Name |
| BuildQueue | 1 field | ThoughtWorks.CruiseControl.Remote.Monitor.BuildQueue |
| Project | 1 field | ThoughtWorks.CruiseControl.Remote.Monitor.Project |
| CruiseServerClient | 1 field | ThoughtWorks.CruiseControl.Core.CruiseServerClient |
| CruiseManager | 1 field | ThoughtWorks.CruiseControl.Core.CruiseManager |
| ConsoleRunner | 1 field | ThoughtWorks.CruiseControl.Core.ConsoleRunner |
| XmlTaskResult | 1 field | ThoughtWorks.CruiseControl.Core.Tasks.XmlTaskResult |
| FileWatcherConfigurationService | 1 field | ThoughtWorks.CruiseControl.Core.Config.FileWatcherConfigurationService |
| XmlValidatingLoader | 1 field | ThoughtWorks.CruiseControl.Core.Config.XmlValidatingLoader |
| EmailGateway | 1 field | ThoughtWorks.CruiseControl.Core.Publishers.EmailGateway |
| GeneralSettingsControl | 1 field | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .GeneralSettingsControl |
| CurrentStatusWindow | 1 field | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.CurrentStatusWindow |
| IconSettingsControl | 1 field | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.IconSettingsControl |
| ExecSettingsControl | 1 field | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.ExecSettingsControl |
| X10SettingsControl | 1 field | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.X10SettingsControl |
| GrowlSettingsControl | 1 field | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.GrowlSettingsControl |
| CCTrayMultiSettingsForm | 1 field | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .CCTrayMultiSettingsForm |
| MainFormController | 1 field | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainFormController |
| About | 1 field | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.About |
| BuildParameters | 1 field | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.BuildParameters |
| AddBuildServer | 1 field | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AddBuildServer |
| WindowStateEventArgs | 1 field | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.WindowStateEventArgs |
| MainForm | 2 fields | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm |
| SpeechSettingsControl | 1 field | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .SpeechSettingsControl |
| PackagesListForm | 2 fields | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.PackagesListForm |
| AddProjects | 1 field | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AddProjects |
| ProjectStateIconAdaptor | 2 fields | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .ProjectStateIconAdaptor |
| BuildProjectsControl | 1 field | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.BuildProjectsControl |
| DisplayChangedProjects | 1 field | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .DisplayChangedProjects |
| ConfigureServer | 1 field | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.ConfigureServer |
| AudioSettingsControl | 1 field | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AudioSettingsControl |
| ConfigureUserPassword | 1 field | ThoughtWorks.CruiseControl.CCTrayLib.Security.ConfigureUserPassword |
| ConfigureUserName | 1 field | ThoughtWorks.CruiseControl.CCTrayLib.Security.ConfigureUserName |
| AppRunner | 1 field | ThoughtWorks.CruiseControl.Service.AppRunner |
| ConfigurationHierarchy | 1 field | Validator.ConfigurationHierarchy |
| VersionInformationForm | 1 field | Validator.VersionInformationForm |
| MainForm | 3 fields | Validator.MainForm |
| AboutForm | 1 field | Validator.AboutForm |
| WindowStateEventArgs | 1 field | Validator.WindowStateEventArgs |
| CruiseControlImplementation | 1 field | ThoughtWorks.CruiseControl.Core.Extensions.CruiseControlImplementation |
Statistics
| Stat | instanceFieldsDisposable |
|---|---|
| Sum: | 0 |
| Average: | 0 |
| Minimum: | 0 |
| Maximum: | 0 |
| Standard deviation: | 0 |
| Variance: | 0 |
| Rule warning: Classes that are candidate to be turned into structures |
// <Name>Classes that are candidate to be turned into structures</Name>
warnif count > 0 from t in JustMyCode.Types where
t.IsClass &&
!t.IsGeneratedByCompiler &&
!t.IsStatic &&
t.SizeOfInst > 0 &&
t.SizeOfInst <= 16 && // Structure instance must not be too big,
// else it degrades performance.
t.NbChildren == 0 && // Must not have children
// Must have no base class
t.DepthOfDeriveFrom("System.Object".AllowNoMatch()) == 1
select new { t, t.SizeOfInst, t.InstanceFields } // Must derive directly from System.Object
// && t.IsSealed <-- You might want to add this condition
// to restreint the set.
// && t.IsImmutable <-- Structures should be immutable type.
// && t.!IsPublic <-- You might want to add this condition if
// you are developping a framework with classes
// that are intended to be sub-classed by
// your clients.
warnif count > 0 from t in JustMyCode.Types where
t.IsClass &&
!t.IsGeneratedByCompiler &&
!t.IsStatic &&
t.SizeOfInst > 0 &&
t.SizeOfInst <= 16 && // Structure instance must not be too big,
// else it degrades performance.
t.NbChildren == 0 && // Must not have children
// Must have no base class
t.DepthOfDeriveFrom("System.Object".AllowNoMatch()) == 1
select new { t, t.SizeOfInst, t.InstanceFields } // Must derive directly from System.Object
// && t.IsSealed <-- You might want to add this condition
// to restreint the set.
// && t.IsImmutable <-- Structures should be immutable type.
// && t.!IsPublic <-- You might want to add this condition if
// you are developping a framework with classes
// that are intended to be sub-classed by
// your clients.
317 types matched
The following list of types is truncated and contains only the first 100 types of the 317 types matched. All matched types could be listed in the report by unchecking the option:
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched types.
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched types.
| types | Size of instance | InstanceFields | Full Name |
|---|---|---|---|
| types | Size of instance | InstanceFields | Full Name |
| SerializableDateTime | 8 | 1 field | ThoughtWorks.CruiseControl.Remote.SerializableDateTime |
| CruiseServerSnapshot | 8 | 2 fields | ThoughtWorks.CruiseControl.Remote.CruiseServerSnapshot |
| ProjectActivity | 4 | 1 field | ThoughtWorks.CruiseControl.Remote.ProjectActivity |
| QueueSetSnapshot | 8 | 2 fields | ThoughtWorks.CruiseControl.Remote.QueueSetSnapshot |
| ExtensionConfiguration | 8 | 2 fields | ThoughtWorks.CruiseControl.Remote.ExtensionConfiguration |
| QueueSnapshot | 12 | 3 fields | ThoughtWorks.CruiseControl.Remote.QueueSnapshot |
| QueueSnapshotList | 4 | 1 field | ThoughtWorks.CruiseControl.Remote.QueueSnapshotList |
| ExternalLink | 8 | 2 fields | ThoughtWorks.CruiseControl.Remote.ExternalLink |
| QueuedRequestSnapshotList | 4 | 1 field | ThoughtWorks.CruiseControl.Remote.QueuedRequestSnapshotList |
| CruiseServerClientFactory | 9 | 3 fields | ThoughtWorks.CruiseControl.Remote.CruiseServerClientFactory |
| QueuedRequestSnapshot | 16 | 3 fields | ThoughtWorks.CruiseControl.Remote.QueuedRequestSnapshot |
| Message | 8 | 2 fields | ThoughtWorks.CruiseControl.Remote.Message |
| ClientStartUpSettings | 3 | 3 fields | ThoughtWorks.CruiseControl.Remote.ClientStartUpSettings |
| NameValuePair | 8 | 2 fields | ThoughtWorks.CruiseControl.Remote.NameValuePair |
| RemotingFileTransfer | 8 | 2 fields | ThoughtWorks.CruiseControl.Remote.RemotingFileTransfer |
| SecurityCheckDiagnostics | 13 | 4 fields | ThoughtWorks.CruiseControl.Remote.Security.SecurityCheckDiagnostics |
| UserDetails | 12 | 3 fields | ThoughtWorks.CruiseControl.Remote.Security.UserDetails |
| ErrorMessage | 8 | 2 fields | ThoughtWorks.CruiseControl.Remote.Messages.ErrorMessage |
| DataBag | 4 | 1 field | ThoughtWorks.CruiseControl.Remote.Monitor.DataBag |
| ManualServerWatcher | 8 | 2 fields | ThoughtWorks.CruiseControl.Remote.Monitor.ManualServerWatcher |
| BuildQueueRequest | 16 | 4 fields | ThoughtWorks.CruiseControl.Remote.Monitor.BuildQueueRequest |
| OptionValueCollection | 8 | 2 fields | ThoughtWorks.CruiseControl.Remote.Mono.OptionValueCollection |
| ObjectionType | 8 | 2 fields | Objection.ObjectionType |
| CachingImplementationResolver | 8 | 2 fields | Objection.CachingImplementationResolver |
| LoadedTypeList | 8 | 2 fields | Objection.LoadedTypeList |
| NMockAwareImplementationResolver | 5 | 2 fields | Objection.NMockAwareImplementationResolver |
| ObjectionObject | 8 | 2 fields | Objection.ObjectionObject |
| ObjectionNetReflectorInstantiator | 4 | 1 field | Objection.NetReflectorPlugin.ObjectionNetReflectorInstantiator |
| IntegrationResultManager | 16 | 4 fields | ThoughtWorks.CruiseControl.Core.IntegrationResultManager |
| ProjectList | 4 | 1 field | ThoughtWorks.CruiseControl.Core.ProjectList |
| IntegrationRunner | 12 | 3 fields | ThoughtWorks.CruiseControl.Core.IntegrationRunner |
| CruiseServerClient+SecureConnection | 16 | 3 fields | ThoughtWorks.CruiseControl.Core.CruiseServerClient+SecureConnection |
| ProjectIntegratorList | 4 | 1 field | ThoughtWorks.CruiseControl.Core.ProjectIntegratorList |
| IntegrationQueueManager | 16 | 4 fields | ThoughtWorks.CruiseControl.Core.IntegrationQueueManager |
| ViewCVSUrlBuilder | 4 | 1 field | ThoughtWorks.CruiseControl.Core.ViewCVSUrlBuilder |
| ConsoleRunner | 12 | 3 fields | ThoughtWorks.CruiseControl.Core.ConsoleRunner |
| ConsoleEventHandler | 12 | 3 fields | ThoughtWorks.CruiseControl.Core.ConsoleEventHandler |
| ConsoleRunnerArguments | 14 | 8 fields | ThoughtWorks.CruiseControl.Core.ConsoleRunnerArguments |
| CoverageThreshold | 16 | 4 fields | ThoughtWorks.CruiseControl.Core.Tasks.CoverageThreshold |
| DataTaskResult | 4 | 1 field | ThoughtWorks.CruiseControl.Core.Tasks.DataTaskResult |
| CruiseServerControlTaskAction | 8 | 2 fields | ThoughtWorks.CruiseControl.Core.Tasks.CruiseServerControlTaskAction |
| DirectDynamicValue | 12 | 3 fields | ThoughtWorks.CruiseControl.Core.Tasks.DirectDynamicValue |
| HttpRequestHeader | 8 | 2 fields | ThoughtWorks.CruiseControl.Core.Tasks.HttpRequestHeader |
| DynamicValueUtility+PropertyValue | 12 | 3 fields | ThoughtWorks.CruiseControl.Core.Tasks .DynamicValueUtility+PropertyValue |
| DynamicValueUtility+PropertyPart | 16 | 4 fields | ThoughtWorks.CruiseControl.Core.Tasks.DynamicValueUtility+PropertyPart |
| XmlTaskResult | 13 | 4 fields | ThoughtWorks.CruiseControl.Core.Tasks.XmlTaskResult |
| NUnitArgument | 16 | 4 fields | ThoughtWorks.CruiseControl.Core.Tasks.NUnitArgument |
| FileTaskResult | 10 | 4 fields | ThoughtWorks.CruiseControl.Core.Tasks.FileTaskResult |
| FBVariable | 8 | 2 fields | ThoughtWorks.CruiseControl.Core.Tasks.FBVariable |
| CoverageFilter | 10 | 4 fields | ThoughtWorks.CruiseControl.Core.Tasks.CoverageFilter |
| ReplacementDynamicValue | 12 | 3 fields | ThoughtWorks.CruiseControl.Core.Tasks.ReplacementDynamicValue |
| MergeFileInfo | 9 | 3 fields | ThoughtWorks.CruiseControl.Core.Tasks.MergeFileInfo |
| MultipleTrigger | 8 | 2 fields | ThoughtWorks.CruiseControl.Core.Triggers.MultipleTrigger |
| ParameterTrigger | 8 | 2 fields | ThoughtWorks.CruiseControl.Core.Triggers.ParameterTrigger |
| IntegrationQueue+LockHolder | 8 | 2 fields | ThoughtWorks.CruiseControl.Core.Queues.IntegrationQueue+LockHolder |
| IntegrationQueueSet | 4 | 1 field | ThoughtWorks.CruiseControl.Core.Queues.IntegrationQueueSet |
| IntegrationQueueItem | 12 | 3 fields | ThoughtWorks.CruiseControl.Core.Queues.IntegrationQueueItem |
| CircularArray | 9 | 3 fields | ThoughtWorks.CruiseControl.Core.Logging.CircularArray |
| CircularArray+CircularArrayEnumerator | 12 | 3 fields | ThoughtWorks.CruiseControl.Core.Logging .CircularArray+CircularArrayEnumerator |
| ServerLogFileReader | 8 | 2 fields | ThoughtWorks.CruiseControl.Core.Logging.ServerLogFileReader |
| DiskSpaceMonitorExtension | 4 | 1 field | ThoughtWorks.CruiseControl.Core.Extensions.DiskSpaceMonitorExtension |
| IntegrationRequestThrottleExtension | 12 | 3 fields | ThoughtWorks.CruiseControl.Core.Extensions .IntegrationRequestThrottleExtension |
| FileStateManager | 12 | 3 fields | ThoughtWorks.CruiseControl.Core.State.FileStateManager |
| WildCardPath | 4 | 1 field | ThoughtWorks.CruiseControl.Core.Util.WildCardPath |
| PrivateArguments | 4 | 1 field | ThoughtWorks.CruiseControl.Core.Util.PrivateArguments |
| PrivateArguments+PrivateArgument | 9 | 3 fields | ThoughtWorks.CruiseControl.Core.Util.PrivateArguments+PrivateArgument |
| Log+TraceBlock | 8 | 2 fields | ThoughtWorks.CruiseControl.Core.Util.Log+TraceBlock |
| AccurateTimer | 12 | 2 fields | ThoughtWorks.CruiseControl.Core.Util.AccurateTimer |
| PrivateString | 4 | 1 field | ThoughtWorks.CruiseControl.Core.Util.PrivateString |
| ProcessExecutor+ProcessMonitor | 8 | 2 fields | ThoughtWorks.CruiseControl.Core.Util.ProcessExecutor+ProcessMonitor |
| HtmlAwareMultiTransformer | 4 | 1 field | ThoughtWorks.CruiseControl.Core.Util.HtmlAwareMultiTransformer |
| EnvironmentVariable | 8 | 2 fields | ThoughtWorks.CruiseControl.Core.Util.EnvironmentVariable |
| AssemblyMatch | 4 | 1 field | ThoughtWorks.CruiseControl.Core.Util.AssemblyMatch |
| HtmlExceptionFormatter | 4 | 1 field | ThoughtWorks.CruiseControl.Core.Util.HtmlExceptionFormatter |
| Timeout | 8 | 2 fields | ThoughtWorks.CruiseControl.Core.Util.Timeout |
| Impersonation | 8 | 2 fields | ThoughtWorks.CruiseControl.Core.Util.Impersonation |
| FileChangedWatcher | 16 | 4 fields | ThoughtWorks.CruiseControl.Core.Util.FileChangedWatcher |
| SynchronisedData | 8 | 2 fields | ThoughtWorks.CruiseControl.Core.Util.SynchronisedData |
| IoService | 4 | 1 field | ThoughtWorks.CruiseControl.Core.Util.IoService |
| ProcessArgumentBuilder | 4 | 1 field | ThoughtWorks.CruiseControl.Core.Util.ProcessArgumentBuilder |
| ProcessResult | 14 | 5 fields | ThoughtWorks.CruiseControl.Core.Util.ProcessResult |
| FtpLib | 12 | 3 fields | ThoughtWorks.CruiseControl.Core.Util.FtpLib |
| TimeUnits | 8 | 2 fields | ThoughtWorks.CruiseControl.Core.Util.TimeUnits |
| DefaultShadowCopier+ShadowStore | 12 | 3 fields | ThoughtWorks.CruiseControl.Core.Util.DefaultShadowCopier+ShadowStore |
| VstsHistoryParser | 16 | 2 fields | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VstsHistoryParser |
| StarTeamHistoryParser | 8 | 2 fields | ThoughtWorks.CruiseControl.Core.Sourcecontrol.StarTeamHistoryParser |
| CommentFilter | 4 | 1 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.CommentFilter |
| RegExIssueTrackerUrlBuilder | 8 | 2 fields | ThoughtWorks.CruiseControl.Core.Sourcecontrol .RegExIssueTrackerUrlBuilder |
| PathFilter | 5 | 2 fields | ThoughtWorks.CruiseControl.Core.Sourcecontrol.PathFilter |
| VssHistoryParser | 4 | 1 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VssHistoryParser |
| ActionFilter | 4 | 1 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.ActionFilter |
| DefaultIssueTrackerUrlBuilder | 4 | 1 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol .DefaultIssueTrackerUrlBuilder |
| SvnHistoryParser | 1 | 1 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.SvnHistoryParser |
| CvsHistoryParser | 12 | 3 fields | ThoughtWorks.CruiseControl.Core.Sourcecontrol.CvsHistoryParser |
| UserFilter | 4 | 1 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.UserFilter |
| VssLocale | 12 | 3 fields | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VssLocale |
| NullSourceControl | 3 | 3 fields | ThoughtWorks.CruiseControl.Core.Sourcecontrol.NullSourceControl |
| MultiIssueTrackerUrlBuilder | 4 | 1 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol .MultiIssueTrackerUrlBuilder |
| WebSVNUrlBuilder | 4 | 1 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.WebSVNUrlBuilder |
| VaultHistoryParser | 4 | 1 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VaultHistoryParser |
Statistics
| Stat | Size of instance | InstanceFields |
|---|---|---|
| Sum: | 2 695 | 0 |
| Average: | 8.5016 | 0 |
| Minimum: | 1 | 0 |
| Maximum: | 16 | 0 |
| Standard deviation: | 3.9577 | 0 |
| Variance: | 15.663 | 0 |
| Rule warning: Avoid namespaces with few types |
// <Name>Avoid namespaces with few types</Name>
warnif count > 0 from n in JustMyCode.Namespaces
let types = n.ChildTypes.Where(t => !t.IsGeneratedByCompiler)
where
types.Count() < 5
orderby types.Count() ascending
select new { n, types }
// Make sure that there is a logical organization
// to each of your namespaces, and that there is a
// valid reason for putting types in a sparsely
// populated namespace. Namespaces should contain
// types that are used together in most scenarios.
// When their applications are mutually exclusive,
// types should be located in separate namespaces
warnif count > 0 from n in JustMyCode.Namespaces
let types = n.ChildTypes.Where(t => !t.IsGeneratedByCompiler)
where
types.Count() < 5
orderby types.Count() ascending
select new { n, types }
// Make sure that there is a logical organization
// to each of your namespaces, and that there is a
// valid reason for putting types in a sparsely
// populated namespace. Namespaces should contain
// types that are used together in most scenarios.
// When their applications are mutually exclusive,
// types should be located in separate namespaces
28 namespaces matched
| namespaces | types | Full Name |
|---|---|---|
| namespaces | types | Full Name |
| Objection.NetReflectorPlugin | 1 type | Objection.NetReflectorPlugin |
| 1 type | ||
| ThoughtWorks.CruiseControl.Remote | 1 type | ThoughtWorks.CruiseControl.Remote |
| ThoughtWorks.CruiseControl.WebDashboard.Resources | 1 type | ThoughtWorks.CruiseControl.WebDashboard.Resources |
| ThoughtWorks.CruiseControl.WebDashboard.Plugins.ViewAllBuilds | 1 type | ThoughtWorks.CruiseControl.WebDashboard.Plugins.ViewAllBuilds |
| ThoughtWorks.CruiseControl.WebDashboard.Plugins.AddProject | 1 type | ThoughtWorks.CruiseControl.WebDashboard.Plugins.AddProject |
| ThoughtWorks.CruiseControl.WebDashboard.Plugins.RSS | 1 type | ThoughtWorks.CruiseControl.WebDashboard.Plugins.RSS |
| ThoughtWorks.CruiseControl.CCTrayLib.Properties | 1 type | ThoughtWorks.CruiseControl.CCTrayLib.Properties |
| ThoughtWorks.CruiseControl.CCTray | 1 type | ThoughtWorks.CruiseControl.CCTray |
| ThoughtWorks.CruiseControl.WebDashboard.MVC.ASPNET | 2 types | ThoughtWorks.CruiseControl.WebDashboard.MVC.ASPNET |
| ThoughtWorks.CruiseControl.WebDashboard.Dashboard.ActionDecorators | 2 types | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.ActionDecorators |
| ThoughtWorks.CruiseControl.WebDashboard.Plugins.CCTray | 2 types | ThoughtWorks.CruiseControl.WebDashboard.Plugins.CCTray |
| ThoughtWorks.CruiseControl.CCTrayLib.Speech | 2 types | ThoughtWorks.CruiseControl.CCTrayLib.Speech |
| ThoughtWorks.CruiseControl.CCTrayLib.Growl | 2 types | ThoughtWorks.CruiseControl.CCTrayLib.Growl |
| ThoughtWorks.CruiseControl.Console | 2 types | ThoughtWorks.CruiseControl.Console |
| Validator.Properties | 2 types | Validator.Properties |
| ThoughtWorks.CruiseControl.CCCmd | 2 types | ThoughtWorks.CruiseControl.CCCmd |
| ThoughtWorks.CruiseControl.Core.Extensions | 3 types | ThoughtWorks.CruiseControl.Core.Extensions |
| ThoughtWorks.CruiseControl.Core.Util.Log4NetTrace | 3 types | ThoughtWorks.CruiseControl.Core.Util.Log4NetTrace |
| ThoughtWorks.CruiseControl.Core.Sourcecontrol.BitKeeper | 3 types | ThoughtWorks.CruiseControl.Core.Sourcecontrol.BitKeeper |
| ThoughtWorks.CruiseControl.Service | 3 types | ThoughtWorks.CruiseControl.Service |
| ThoughtWorks.CruiseControl.Core.Extensions | 3 types | ThoughtWorks.CruiseControl.Core.Extensions |
| ThoughtWorks.CruiseControl.MSBuild | 3 types | ThoughtWorks.CruiseControl.MSBuild |
| ThoughtWorks.CruiseControl.Core.Logging | 4 types | ThoughtWorks.CruiseControl.Core.Logging |
| ThoughtWorks.CruiseControl.Core.State | 4 types | ThoughtWorks.CruiseControl.Core.State |
| ThoughtWorks.CruiseControl.WebDashboard.Dashboard.Actions | 4 types | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.Actions |
| ThoughtWorks.CruiseControl.WebDashboard.Plugins.Security | 4 types | ThoughtWorks.CruiseControl.WebDashboard.Plugins.Security |
| ThoughtWorks.CruiseControl.WebDashboard.Plugins.Statistics | 4 types | ThoughtWorks.CruiseControl.WebDashboard.Plugins.Statistics |
Statistics
| Stat | types |
|---|---|
| Sum: | 0 |
| Average: | 0 |
| Minimum: | 0 |
| Maximum: | 0 |
| Standard deviation: | 0 |
| Variance: | 0 |
| Rule warning: Nested types should not be visible |
// <Name>Nested types should not be visible</Name>
warnif count > 0 from t in JustMyCode.Types where
t.IsNested &&
!t.IsGeneratedByCompiler &&
!t.IsPrivate
select new { t, t.NbLinesOfCode, t.Visibility }
// A nested type is a type declared within the
// scope of another type. Nested types are useful
// for encapsulating private implementation details
// of the containing type. Used for this purpose,
// nested types should not be externally visible.
// Do not use externally visible nested types for
// logical grouping or to avoid name collisions;
// instead, use namespaces.
warnif count > 0 from t in JustMyCode.Types where
t.IsNested &&
!t.IsGeneratedByCompiler &&
!t.IsPrivate
select new { t, t.NbLinesOfCode, t.Visibility }
// A nested type is a type declared within the
// scope of another type. Nested types are useful
// for encapsulating private implementation details
// of the containing type. Used for this purpose,
// nested types should not be externally visible.
// Do not use externally visible nested types for
// logical grouping or to avoid name collisions;
// instead, use namespaces.
38 types matched
| types | # lines of code (LOC) | Visibility | Full Name |
|---|---|---|---|
| types | # lines of code (LOC) | Visibility | Full Name |
| Message+MessageKind | N/A | Public | ThoughtWorks.CruiseControl.Remote.Message+MessageKind |
| IntegrationStartedEventArgs+EventResult | N/A | Public | ThoughtWorks.CruiseControl.Remote.Events .IntegrationStartedEventArgs+EventResult |
| HttpStatusTask+HttpRequestStatus | 28 | Protected | ThoughtWorks.CruiseControl.Core.Tasks.HttpStatusTask+HttpRequestStatus |
| CoverageThreshold+NCoverMetric | N/A | Public | ThoughtWorks.CruiseControl.Core.Tasks.CoverageThreshold+NCoverMetric |
| CoverageThreshold+NCoverItemType | N/A | Public | ThoughtWorks.CruiseControl.Core.Tasks.CoverageThreshold+NCoverItemType |
| DynamicValueUtility+PropertyValue | 32 | Public | ThoughtWorks.CruiseControl.Core.Tasks .DynamicValueUtility+PropertyValue |
| DynamicValueUtility+PropertyPart | 1 | Public | ThoughtWorks.CruiseControl.Core.Tasks.DynamicValueUtility+PropertyPart |
| ArtifactCleanUpTask+CleanUpMethod | N/A | Public | ThoughtWorks.CruiseControl.Core.Tasks .ArtifactCleanUpTask+CleanUpMethod |
| NCoverProfileTask+NCoverLogLevel | N/A | Public | ThoughtWorks.CruiseControl.Core.Tasks.NCoverProfileTask+NCoverLogLevel |
| NCoverReportTask+NCoverReportFilter | N/A | Public | ThoughtWorks.CruiseControl.Core.Tasks .NCoverReportTask+NCoverReportFilter |
| NCoverReportTask+NCoverReportType | N/A | Public | ThoughtWorks.CruiseControl.Core.Tasks .NCoverReportTask+NCoverReportType |
| NCoverReportTask+NCoverSortBy | N/A | Public | ThoughtWorks.CruiseControl.Core.Tasks.NCoverReportTask+NCoverSortBy |
| NCoverReportTask+NCoverMergeMode | N/A | Public | ThoughtWorks.CruiseControl.Core.Tasks.NCoverReportTask+NCoverMergeMode |
| CodeItRightTask+Severity | N/A | Public | ThoughtWorks.CruiseControl.Core.Tasks.CodeItRightTask+Severity |
| CoverageFilter+NCoverItemType | N/A | Public | ThoughtWorks.CruiseControl.Core.Tasks.CoverageFilter+NCoverItemType |
| MergeFileInfo+MergeActionType | N/A | Public | ThoughtWorks.CruiseControl.Core.Tasks.MergeFileInfo+MergeActionType |
| FtpTask+FtpAction | N/A | Public | ThoughtWorks.CruiseControl.Core.Tasks.FtpTask+FtpAction |
| CircularArray+CircularArrayEnumerator | 23 | Internal | ThoughtWorks.CruiseControl.Core.Logging .CircularArray+CircularArrayEnumerator |
| FileLabeller+FileReader | 18 | Public | ThoughtWorks.CruiseControl.Core.Label.FileLabeller+FileReader |
| Log+TraceBlock | 12 | Public | ThoughtWorks.CruiseControl.Core.Util.Log+TraceBlock |
| Vault3+VaultException | 1 | Public | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault3+VaultException |
| Svn+AuthCachingMode | N/A | Public | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn+AuthCachingMode |
| VaultVersionChecker+EForcedVaultVersion | N/A | Public | ThoughtWorks.CruiseControl.Core.Sourcecontrol .VaultVersionChecker+EForcedVaultVersion |
| Common+SourceControlErrorHandlingPolicy | N/A | Public | ThoughtWorks.CruiseControl.Core.Sourcecontrol .Common+SourceControlErrorHandlingPolicy |
| SynergyParser+SynergyTaskInfo | 5 | Public | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic .SynergyParser+SynergyTaskInfo |
| SessionCacheBase+SessionDetails | 4 | Protected | ThoughtWorks.CruiseControl.Core.Security .SessionCacheBase+SessionDetails |
| EmailSubject+BuildResultType | N/A | Public | ThoughtWorks.CruiseControl.Core.Publishers .EmailSubject+BuildResultType |
| EmailGroup+NotificationType | N/A | Public | ThoughtWorks.CruiseControl.Core.Publishers.EmailGroup+NotificationType |
| BuildPublisher+CleanupPolicy | N/A | Public | ThoughtWorks.CruiseControl.Core.Publishers .BuildPublisher+CleanupPolicy |
| LazilyInitialisingVelocityTransformer+TemplateLocation | N/A | Public | ThoughtWorks.CruiseControl.WebDashboard.MVC.View .LazilyInitialisingVelocityTransformer+TemplateLocation |
| PackageListAction+PackageDisplay | 0 | Public | ThoughtWorks.CruiseControl.WebDashboard.Plugins.ProjectReport .PackageListAction+PackageDisplay |
| BuildGraph+GraphBuildInfo | 8 | Public | ThoughtWorks.CruiseControl.WebDashboard.Plugins.Statistics .BuildGraph+GraphBuildInfo |
| BuildGraph+GraphBuildDayInfo | 15 | Public | ThoughtWorks.CruiseControl.WebDashboard.Plugins.Statistics .BuildGraph+GraphBuildDayInfo |
| ConfigurationTypeDescriptor+PropertyDescriptorBase | 11 | Public | Validator.ConfigurationTypeDescriptor+PropertyDescriptorBase |
| ConfigurationTypeDescriptor+FieldPropertyDescriptor | 5 | Public | Validator.ConfigurationTypeDescriptor+FieldPropertyDescriptor |
| ConfigurationTypeDescriptor+PropertyPropertyDescriptor | 5 | Public | Validator.ConfigurationTypeDescriptor+PropertyPropertyDescriptor |
| XmlLogger+XmlLoggerElements | 1 | Internal | ThoughtWorks.CruiseControl.MSBuild.XmlLogger+XmlLoggerElements |
| XmlLogger+XmlLoggerAttributes | 1 | Internal | ThoughtWorks.CruiseControl.MSBuild.XmlLogger+XmlLoggerAttributes |
Statistics
| Stat | # lines of code (LOC) | Visibility |
|---|---|---|
| Sum: | 170 | 0 |
| Average: | 10 | 0 |
| Minimum: | 0 | 0 |
| Maximum: | 32 | 0 |
| Standard deviation: | 9.7317 | 0 |
| Variance: | 94.706 | 0 |
| Rule warning: Declare types in namespaces |
// <Name>Declare types in namespaces</Name>
warnif count > 0 from n in Application.Namespaces where
n.Name == ""
select new { n, n.ChildTypes, n.NbLinesOfCode }
// Types are declared within namespaces to
// prevent name collisions, and as a way of
// organizing related types in an object hierarchy.
// Types outside any named namespace are in a
// global namespace that cannot be referenced
// in code. If an anonymous namespace can be found,
// it means that it contains types outside of namespaces.
warnif count > 0 from n in Application.Namespaces where
n.Name == ""
select new { n, n.ChildTypes, n.NbLinesOfCode }
// Types are declared within namespaces to
// prevent name collisions, and as a way of
// organizing related types in an object hierarchy.
// Types outside any named namespace are in a
// global namespace that cannot be referenced
// in code. If an anonymous namespace can be found,
// it means that it contains types outside of namespaces.
1 namespaces matched
| namespace | ChildTypes | # lines of code (LOC) | Full Name |
|---|---|---|---|
| namespace | ChildTypes | # lines of code (LOC) | Full Name |
| 1 type | 0 |
Statistics
| Stat | ChildTypes | # lines of code (LOC) |
|---|---|---|
| Sum: | 0 | 0 |
| Average: | 0 | 0 |
| Minimum: | 0 | 0 |
| Maximum: | 0 | 0 |
| Standard deviation: | 0 | 0 |
| Variance: | 0 | 0 |
| Rule warning: Instances size shouldn't be too big |
// <Name>Instances size shouldn't be too big</Name>
warnif count > 0 from t in JustMyCode.Types where
t.SizeOfInst > 64
orderby t.SizeOfInst descending
select new { t, t.SizeOfInst, t.InstanceFields }
// Types where SizeOfInst > 64 might degrade performance
// (depending on the number of instances created at runtime)
// and might be hard to maintain. However it is not a rule
// since sometime there is no alternative (the size of
// instances of the System.Net.NetworkInformation.SystemIcmpV6Statistics
// standard class is 2064 bytes).
// Notice that a class with a large SizeOfInst value
// doesn't necessarily have a lot of instance fields.
// It might derive from a class with a large SizeOfInst value.
// See the definition of the SizeOfInst metric here
// http://www.ndepend.com/Metrics.aspx#SizeOfInst
warnif count > 0 from t in JustMyCode.Types where
t.SizeOfInst > 64
orderby t.SizeOfInst descending
select new { t, t.SizeOfInst, t.InstanceFields }
// Types where SizeOfInst > 64 might degrade performance
// (depending on the number of instances created at runtime)
// and might be hard to maintain. However it is not a rule
// since sometime there is no alternative (the size of
// instances of the System.Net.NetworkInformation.SystemIcmpV6Statistics
// standard class is 2064 bytes).
// Notice that a class with a large SizeOfInst value
// doesn't necessarily have a lot of instance fields.
// It might derive from a class with a large SizeOfInst value.
// See the definition of the SizeOfInst metric here
// http://www.ndepend.com/Metrics.aspx#SizeOfInst
52 types matched
| types | Size of instance | InstanceFields | Full Name |
|---|---|---|---|
| types | Size of instance | InstanceFields | Full Name |
| MainForm | 544 | 61 fields | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm |
| MainForm | 499 | 49 fields | Validator.MainForm |
| AddBuildServer | 438 | 33 fields | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AddBuildServer |
| CCTrayMultiSettingsForm | 410 | 26 fields | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .CCTrayMultiSettingsForm |
| PackagesListForm | 382 | 19 fields | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.PackagesListForm |
| AddProjects | 374 | 17 fields | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AddProjects |
| CurrentStatusWindow | 366 | 15 fields | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.CurrentStatusWindow |
| ConfigureServer | 350 | 11 fields | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.ConfigureServer |
| ConfigureUserPassword | 346 | 10 fields | ThoughtWorks.CruiseControl.CCTrayLib.Security.ConfigureUserPassword |
| DisplayChangedProjects | 342 | 9 fields | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .DisplayChangedProjects |
| AboutForm | 338 | 8 fields | Validator.AboutForm |
| About | 334 | 7 fields | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.About |
| BuildParameters | 334 | 7 fields | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.BuildParameters |
| ConfigureUserName | 330 | 6 fields | ThoughtWorks.CruiseControl.CCTrayLib.Security.ConfigureUserName |
| VersionInformationForm | 322 | 4 fields | Validator.VersionInformationForm |
| X10SettingsControl | 317 | 27 fields | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.X10SettingsControl |
| IconSettingsControl | 297 | 22 fields | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.IconSettingsControl |
| AudioSettingsControl | 297 | 22 fields | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AudioSettingsControl |
| QueueTreeView | 273 | 2 fields | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.QueueTreeView |
| GeneralSettingsControl | 269 | 15 fields | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .GeneralSettingsControl |
| BuildProjectsControl | 265 | 14 fields | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.BuildProjectsControl |
| ExecSettingsControl | 261 | 13 fields | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.ExecSettingsControl |
| GrowlSettingsControl | 261 | 13 fields | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.GrowlSettingsControl |
| SpeechSettingsControl | 233 | 6 fields | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .SpeechSettingsControl |
| ConfigurationHierarchy | 233 | 6 fields | Validator.ConfigurationHierarchy |
| NCoverProfileTask | 157 | 35 fields | ThoughtWorks.CruiseControl.Core.Tasks.NCoverProfileTask |
| Project | 141 | 26 fields | ThoughtWorks.CruiseControl.Core.Project |
| NCoverReportTask | 123 | 25 fields | ThoughtWorks.CruiseControl.Core.Tasks.NCoverReportTask |
| CruiseServer | 121 | 18 fields | ThoughtWorks.CruiseControl.Core.CruiseServer |
| XmlFragmentWriter | 115 | 0 field | ThoughtWorks.CruiseControl.Core.Util.XmlFragmentWriter |
| WorkflowResult | 93 | 1 field | ThoughtWorks.CruiseControl.Core.WorkflowResult |
| IntegrationResult | 89 | 21 fields | ThoughtWorks.CruiseControl.Core.IntegrationResult |
| VaultVersionChecker | 89 | 25 fields | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VaultVersionChecker |
| NAntTask | 86 | 12 fields | ThoughtWorks.CruiseControl.Core.Tasks.NAntTask |
| MsBuildTask | 85 | 11 fields | ThoughtWorks.CruiseControl.Core.Tasks.MsBuildTask |
| Pvcs | 85 | 20 fields | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Pvcs |
| GendarmeTask | 84 | 16 fields | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask |
| MainFormController | 84 | 21 fields | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainFormController |
| DupFinderTask | 80 | 15 fields | ThoughtWorks.CruiseControl.Core.Tasks.DupFinderTask |
| Svn | 78 | 22 fields | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn |
| CCService | 78 | 5 fields | ThoughtWorks.CruiseControl.Service.CCService |
| NDependTask | 76 | 14 fields | ThoughtWorks.CruiseControl.Core.Tasks.NDependTask |
| P4 | 76 | 20 fields | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Perforce.P4 |
| StarTeam | 73 | 14 fields | ThoughtWorks.CruiseControl.Core.Sourcecontrol.StarTeam |
| CodeItRightTask | 69 | 10 fields | ThoughtWorks.CruiseControl.Core.Tasks.CodeItRightTask |
| Cvs | 69 | 16 fields | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Cvs |
| Git | 68 | 15 fields | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Git |
| ConfigurationTypeDescriptor+FieldPropertyDescriptor | 66 | 1 field | Validator.ConfigurationTypeDescriptor+FieldPropertyDescriptor |
| ConfigurationTypeDescriptor+PropertyPropertyDescriptor | 66 | 1 field | Validator.ConfigurationTypeDescriptor+PropertyPropertyDescriptor |
| DevenvTask | 65 | 12 fields | ThoughtWorks.CruiseControl.Core.Tasks.DevenvTask |
| Vsts | 65 | 15 fields | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vsts |
| EmailPublisher | 65 | 12 fields | ThoughtWorks.CruiseControl.Core.Publishers.EmailPublisher |
Statistics
| Stat | Size of instance | InstanceFields |
|---|---|---|
| Sum: | 10 761 | 0 |
| Average: | 206.94 | 0 |
| Minimum: | 65 | 0 |
| Maximum: | 544 | 0 |
| Standard deviation: | 136.2 | 0 |
| Variance: | 18 550 | 0 |
| Rule warning: Attribute classes should be sealed |
// <Name>Attribute classes should be sealed</Name>
warnif count > 0 from t in Application.Types where
t.IsAttributeClass &&
!t.IsSealed &&
!t.IsAbstract &&
t.IsPublic
select new { t, t.NbLinesOfCode }
// The .NET Framework class library provides methods
// for retrieving custom attributes. By default,
// these methods search the attribute inheritance
// hierarchy; for example System.Attribute.GetCustomAttribute
// searches for the specified attribute type, or any
// attribute type that extends the specified attribute
// type. Sealing the attribute eliminates the search
// through the inheritance hierarchy, and can improve
// performance.
warnif count > 0 from t in Application.Types where
t.IsAttributeClass &&
!t.IsSealed &&
!t.IsAbstract &&
t.IsPublic
select new { t, t.NbLinesOfCode }
// The .NET Framework class library provides methods
// for retrieving custom attributes. By default,
// these methods search the attribute inheritance
// hierarchy; for example System.Attribute.GetCustomAttribute
// searches for the specified attribute type, or any
// attribute type that extends the specified attribute
// type. Sealing the attribute eliminates the search
// through the inheritance hierarchy, and can improve
// performance.
1 types matched
| type | # lines of code (LOC) | Full Name |
|---|---|---|
| type | # lines of code (LOC) | Full Name |
| ExtensionAttribute | 2 | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.ExtensionAttribute |
Statistics
| Stat | # lines of code (LOC) |
|---|---|
| Sum: | 2 |
| Average: | 2 |
| Minimum: | 2 |
| Maximum: | 2 |
| Standard deviation: | 0 |
| Variance: | 0 |
| Rule warning: Don't use obsolete types, methods or fields |
// <Name>Don't use obsolete types, methods or fields</Name>
warnif count > 0
let obsoleteTypes = Types.Where(t => t.IsObsolete)
let obsoleteMethods = Methods.Where(m => m.IsObsolete).ToHashSet()
let obsoleteFields = Fields.Where(f => f.IsObsolete)
from m in JustMyCode.Methods.UsingAny(obsoleteTypes).Union(
JustMyCode.Methods.UsingAny(obsoleteMethods)).Union(
JustMyCode.Methods.UsingAny(obsoleteFields))
let obsoleteTypesUsed = obsoleteTypes.UsedBy(m)
// Optimization: MethodsCalled + Intersect() is faster than using obsoleteMethods.UsedBy()
let obsoleteMethodsUsed = m.MethodsCalled.Intersect(obsoleteMethods)
let obsoleteFieldsUsed = obsoleteFields.UsedBy(m)
select new { m, obsoleteTypesUsed, obsoleteMethodsUsed, obsoleteFieldsUsed }
warnif count > 0
let obsoleteTypes = Types.Where(t => t.IsObsolete)
let obsoleteMethods = Methods.Where(m => m.IsObsolete).ToHashSet()
let obsoleteFields = Fields.Where(f => f.IsObsolete)
from m in JustMyCode.Methods.UsingAny(obsoleteTypes).Union(
JustMyCode.Methods.UsingAny(obsoleteMethods)).Union(
JustMyCode.Methods.UsingAny(obsoleteFields))
let obsoleteTypesUsed = obsoleteTypes.UsedBy(m)
// Optimization: MethodsCalled + Intersect() is faster than using obsoleteMethods.UsedBy()
let obsoleteMethodsUsed = m.MethodsCalled.Intersect(obsoleteMethods)
let obsoleteFieldsUsed = obsoleteFields.UsedBy(m)
select new { m, obsoleteTypesUsed, obsoleteMethodsUsed, obsoleteFieldsUsed }
32 methods matched
| methods | obsoleteTypesUsed | obsoleteMethodsUsed | obsoleteFieldsUsed | Full Name |
|---|---|---|---|---|
| methods | obsoleteTypesUsed | obsoleteMethodsUsed | obsoleteFieldsUsed | Full Name |
| GetProjectStatus() | 1 type | 0 method | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .GetProjectStatus() |
| ForceBuild(String) | 1 type | 0 method | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .ForceBuild(String) |
| AbortBuild(String) | 1 type | 0 method | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .AbortBuild(String) |
| Request(String,IntegrationRequest) | 1 type | 0 method | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient.Request (String,IntegrationRequest) |
| StartProject(String) | 1 type | 0 method | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .StartProject(String) |
| StopProject(String) | 1 type | 0 method | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .StopProject(String) |
| SendMessage(String,Message) | 1 type | 0 method | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .SendMessage(String,Message) |
| WaitForExit(String) | 1 type | 0 method | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .WaitForExit(String) |
| CancelPendingRequest(String) | 1 type | 0 method | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .CancelPendingRequest(String) |
| GetCruiseServerSnapshot() | 1 type | 0 method | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .GetCruiseServerSnapshot() |
| GetLatestBuildName(String) | 1 type | 0 method | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .GetLatestBuildName(String) |
| GetBuildNames(String) | 1 type | 0 method | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .GetBuildNames(String) |
| GetMostRecentBuildNames(String,Int32) | 1 type | 0 method | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .GetMostRecentBuildNames(String,Int32) |
| GetLog(String,String,Boolean) | 1 type | 0 method | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient.GetLog (String,String,Boolean) |
| GetServerLog() | 1 type | 0 method | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .GetServerLog() |
| GetServerLog(String) | 1 type | 0 method | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .GetServerLog(String) |
| GetServerVersion() | 1 type | 0 method | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .GetServerVersion() |
| AddProject(String) | 1 type | 0 method | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .AddProject(String) |
| DeleteProject(String,Boolean,Boolean,Boolean) | 1 type | 0 method | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .DeleteProject(String,Boolean,Boolean,Boolean) |
| GetProject(String) | 1 type | 0 method | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .GetProject(String) |
| UpdateProject(String,String) | 1 type | 0 method | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .UpdateProject(String,String) |
| GetExternalLinks(String) | 1 type | 0 method | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .GetExternalLinks(String) |
| GetArtifactDirectory(String) | 1 type | 0 method | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .GetArtifactDirectory(String) |
| GetStatisticsDocument(String) | 1 type | 0 method | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .GetStatisticsDocument(String) |
| GetModificationHistoryDocument(String) | 1 type | 0 method | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .GetModificationHistoryDocument(String) |
| GetRSSFeed(String) | 1 type | 0 method | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .GetRSSFeed(String) |
| RetrieveFileTransfer(String,String) | 1 type | 0 method | 0 field | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .RetrieveFileTransfer(String,String) |
| .ctor(IConfigurationService,IProjectIntegratorListFactory ,IProjectSerializer,IProjectStateManager,IFileSystem ,IExecutionEnvironment,List<ExtensionConfiguration>) | 1 type | 0 method | 1 field | ThoughtWorks.CruiseControl.Core.CruiseServer..ctor (IConfigurationService,IProjectIntegratorListFactory ,IProjectSerializer,IProjectStateManager,IFileSystem ,IExecutionEnvironment,List<ExtensionConfiguration>) |
| GetCurrentProjectStatus() | 1 type | 1 method | 0 field | ThoughtWorks.CruiseControl.Core.Triggers.ProjectTrigger .GetCurrentProjectStatus() |
| Generate(IIntegrationResult) | 1 type | 0 method | 0 field | ThoughtWorks.CruiseControl.Core.Label.RemoteProjectLabeller.Generate (IIntegrationResult) |
| Initialise(ICruiseServer,ExtensionConfiguration) | 0 type | 1 method | 0 field | ThoughtWorks.CruiseControl.Core.Extensions .IntegrationPerformanceCountersExtension.Initialise(ICruiseServer ,ExtensionConfiguration) |
| get_CruiseManager() | 0 type | 0 method | 1 field | ThoughtWorks.CruiseControl.Core.CruiseServer.get_CruiseManager() |
Statistics
| Stat | obsoleteTypesUsed | obsoleteMethodsUsed | obsoleteFieldsUsed |
|---|---|---|---|
| Sum: | 0 | 0 | 0 |
| Average: | 0 | 0 | 0 |
| Minimum: | 0 | 0 | 0 |
| Maximum: | 0 | 0 | 0 |
| Standard deviation: | 0 | 0 | 0 |
| Variance: | 0 | 0 | 0 |
| Rule warning: Don't forget to implement methods that throw NotImplementedException |
// <Name>Don't forget to implement methods that throw NotImplementedException</Name>
warnif count > 0
from m in Application.Methods
where m.CreateA("System.NotImplementedException".AllowNoMatch())
select m
warnif count > 0
from m in Application.Methods
where m.CreateA("System.NotImplementedException".AllowNoMatch())
select m
103 methods matched
The following list of methods is truncated and contains only the first 100 methods of the 103 methods matched. All matched methods could be listed in the report by unchecking the option:
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched methods.
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched methods.
| methods | Full Name |
|---|---|
| methods | Full Name |
| GetProjectStatus() | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase .GetProjectStatus() |
| ForceBuild(String) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase.ForceBuild (String) |
| ForceBuild(String,List<NameValuePair>) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase.ForceBuild (String,List<NameValuePair>) |
| AbortBuild(String) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase.AbortBuild (String) |
| Request(String,IntegrationRequest) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase.Request (String,IntegrationRequest) |
| StartProject(String) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase.StartProject (String) |
| StopProject(String) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase.StopProject (String) |
| SendMessage(String,Message) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase.SendMessage (String,Message) |
| WaitForExit(String) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase.WaitForExit (String) |
| CancelPendingRequest(String) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase .CancelPendingRequest(String) |
| GetCruiseServerSnapshot() | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase .GetCruiseServerSnapshot() |
| GetLatestBuildName(String) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase .GetLatestBuildName(String) |
| GetBuildNames(String) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase.GetBuildNames (String) |
| GetMostRecentBuildNames(String,Int32) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase .GetMostRecentBuildNames(String,Int32) |
| GetLog(String,String,Boolean) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase.GetLog(String ,String,Boolean) |
| GetServerLog() | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase.GetServerLog( ) |
| GetServerLog(String) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase.GetServerLog (String) |
| GetServerVersion() | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase .GetServerVersion() |
| AddProject(String) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase.AddProject (String) |
| DeleteProject(String,Boolean,Boolean,Boolean) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase.DeleteProject (String,Boolean,Boolean,Boolean) |
| GetProject(String) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase.GetProject (String) |
| UpdateProject(String,String) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase.UpdateProject (String,String) |
| GetExternalLinks(String) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase .GetExternalLinks(String) |
| GetArtifactDirectory(String) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase .GetArtifactDirectory(String) |
| GetStatisticsDocument(String) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase .GetStatisticsDocument(String) |
| GetModificationHistoryDocument(String) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase .GetModificationHistoryDocument(String) |
| GetRSSFeed(String) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase.GetRSSFeed (String) |
| Login(List<NameValuePair>) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase.Login(List <NameValuePair>) |
| Logout() | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase.Logout() |
| GetSecurityConfiguration() | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase .GetSecurityConfiguration() |
| ListUsers() | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase.ListUsers() |
| DiagnoseSecurityPermissions(String,String[]) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase .DiagnoseSecurityPermissions(String,String[]) |
| ReadAuditRecords(Int32,Int32) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase .ReadAuditRecords(Int32,Int32) |
| ReadAuditRecords(Int32,Int32,AuditFilterBase) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase .ReadAuditRecords(Int32,Int32,AuditFilterBase) |
| ListBuildParameters(String) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase .ListBuildParameters(String) |
| ChangePassword(String,String) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase .ChangePassword(String,String) |
| ResetPassword(String,String) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase.ResetPassword (String,String) |
| TakeStatusSnapshot(String) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase .TakeStatusSnapshot(String) |
| RetrievePackageList(String) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase .RetrievePackageList(String) |
| RetrievePackageList(String,String) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase .RetrievePackageList(String,String) |
| RetrieveFileTransfer(String,String) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase .RetrieveFileTransfer(String,String) |
| GetFreeDiskSpace() | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase .GetFreeDiskSpace() |
| GetLinkedSiteId(String,String) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase .GetLinkedSiteId(String,String) |
| ProcessMessage(String,String) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase .ProcessMessage(String,String) |
| ProcessMessage(String,ServerRequest) | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase .ProcessMessage(String,ServerRequest) |
| ListServers() | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase.ListServers() |
| NotifyPendingState() | ThoughtWorks.CruiseControl.Core.Workflow.NotifyPendingState() |
| NotifySleepingState() | ThoughtWorks.CruiseControl.Core.Workflow.NotifySleepingState() |
| AbortRunningBuild() | ThoughtWorks.CruiseControl.Core.Workflow.AbortRunningBuild() |
| get_Statistics() | ThoughtWorks.CruiseControl.Core.Workflow.get_Statistics() |
| get_ModificationHistory() | ThoughtWorks.CruiseControl.Core.Workflow.get_ModificationHistory() |
| get_RSSFeed() | ThoughtWorks.CruiseControl.Core.Workflow.get_RSSFeed() |
| get_IntegrationRepository() | ThoughtWorks.CruiseControl.Core.Workflow.get_IntegrationRepository() |
| get_QueueName() | ThoughtWorks.CruiseControl.Core.Workflow.get_QueueName() |
| set_QueueName(String) | ThoughtWorks.CruiseControl.Core.Workflow.set_QueueName(String) |
| get_QueuePriority() | ThoughtWorks.CruiseControl.Core.Workflow.get_QueuePriority() |
| set_QueuePriority(Int32) | ThoughtWorks.CruiseControl.Core.Workflow.set_QueuePriority(Int32) |
| Initialize() | ThoughtWorks.CruiseControl.Core.Workflow.Initialize() |
| CreateProjectStatus(IProjectIntegrator) | ThoughtWorks.CruiseControl.Core.Workflow.CreateProjectStatus (IProjectIntegrator) |
| get_CurrentActivity() | ThoughtWorks.CruiseControl.Core.Workflow.get_CurrentActivity() |
| AddMessage(Message) | ThoughtWorks.CruiseControl.Core.Workflow.AddMessage(Message) |
| get_MaxSourceControlRetries() | ThoughtWorks.CruiseControl.Core.Workflow.get_MaxSourceControlRetries() |
| get_stopProjectOnReachingMaxSourceControlRetries() | ThoughtWorks.CruiseControl.Core.Workflow .get_stopProjectOnReachingMaxSourceControlRetries() |
| get_SourceControlErrorHandling() | ThoughtWorks.CruiseControl.Core.Workflow .get_SourceControlErrorHandling() |
| Execute(IIntegrationResult) | ThoughtWorks.CruiseControl.Core.Tasks.ArtifactCleanUpTask.Execute (IIntegrationResult) |
| CopyTo(Array,Int32) | ThoughtWorks.CruiseControl.Core.Triggers.MultipleTrigger.CopyTo(Array ,Int32) |
| get_Count() | ThoughtWorks.CruiseControl.Core.Triggers.MultipleTrigger.get_Count() |
| get_SyncRoot() | ThoughtWorks.CruiseControl.Core.Triggers.MultipleTrigger.get_SyncRoot( ) |
| Contains(Object) | ThoughtWorks.CruiseControl.Core.Triggers.MultipleTrigger.Contains (Object) |
| Clear() | ThoughtWorks.CruiseControl.Core.Triggers.MultipleTrigger.Clear() |
| IndexOf(Object) | ThoughtWorks.CruiseControl.Core.Triggers.MultipleTrigger.IndexOf (Object) |
| Insert(Int32,Object) | ThoughtWorks.CruiseControl.Core.Triggers.MultipleTrigger.Insert(Int32 ,Object) |
| Remove(Object) | ThoughtWorks.CruiseControl.Core.Triggers.MultipleTrigger.Remove(Object ) |
| RemoveAt(Int32) | ThoughtWorks.CruiseControl.Core.Triggers.MultipleTrigger.RemoveAt (Int32) |
| get_IsReadOnly() | ThoughtWorks.CruiseControl.Core.Triggers.MultipleTrigger .get_IsReadOnly() |
| get_IsFixedSize() | ThoughtWorks.CruiseControl.Core.Triggers.MultipleTrigger .get_IsFixedSize() |
| get_Item(Int32) | ThoughtWorks.CruiseControl.Core.Triggers.MultipleTrigger.get_Item (Int32) |
| set_Item(Int32,Object) | ThoughtWorks.CruiseControl.Core.Triggers.MultipleTrigger.set_Item (Int32,Object) |
| get_IsSynchronized() | ThoughtWorks.CruiseControl.Core.Triggers.MultipleTrigger .get_IsSynchronized() |
| Reset() | ThoughtWorks.CruiseControl.Core.Logging .CircularArray+CircularArrayEnumerator.Reset() |
| ChangePassword(String,String,String) | ThoughtWorks.CruiseControl.Core.Security.SecurityManagerBase .ChangePassword(String,String,String) |
| ResetPassword(String,String,String) | ThoughtWorks.CruiseControl.Core.Security.SecurityManagerBase .ResetPassword(String,String,String) |
| ChangePassword(String,String,String) | ThoughtWorks.CruiseControl.Core.Security.NullSecurityManager .ChangePassword(String,String,String) |
| ResetPassword(String,String,String) | ThoughtWorks.CruiseControl.Core.Security.NullSecurityManager .ResetPassword(String,String,String) |
| AbortBuild() | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.StubProjectMonitor .AbortBuild() |
| ForceBuild(Dictionary<String,String>,String) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.StubProjectMonitor .ForceBuild(Dictionary<String,String>,String) |
| FixBuild(String) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.StubProjectMonitor .FixBuild(String) |
| StopProject() | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.StubProjectMonitor .StopProject() |
| StartProject() | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.StubProjectMonitor .StartProject() |
| CancelPending() | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.StubProjectMonitor .CancelPending() |
| get_SummaryStatusString() | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.StubProjectMonitor .get_SummaryStatusString() |
| ForceBuild(Dictionary<String,String>,String) | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring .AggregatingProjectMonitor.ForceBuild(Dictionary<String,String>,String ) |
| AbortBuild() | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring .AggregatingProjectMonitor.AbortBuild() |
| FixBuild(String) | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring .AggregatingProjectMonitor.FixBuild(String) |
| StopProject() | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring .AggregatingProjectMonitor.StopProject() |
| StartProject() | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring .AggregatingProjectMonitor.StartProject() |
| CancelPending() | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring .AggregatingProjectMonitor.CancelPending() |
| get_ProjectIntegratorState() | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring .AggregatingProjectMonitor.get_ProjectIntegratorState() |
| get_IsConnected() | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring .AggregatingProjectMonitor.get_IsConnected() |
| ListBuildParameters() | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring .AggregatingProjectMonitor.ListBuildParameters() |
Statistics
| Stat |
|---|
| Sum: |
| Average: |
| Minimum: |
| Maximum: |
| Standard deviation: |
| Variance: |
| Architecture and Layering |
|
|
| Rule warning: Avoid namespaces mutually dependent |
// <Name>Avoid namespaces mutually dependent</Name>
warnif count > 0
// Foreach pair of namespace mutually dependent, this rule lists pairs.
// The pair { first, second } is formatted to show that first namespace shouldn't use the second namespace.
// The first/second order is inferred from the number of types used by each other.
// The first namespace is using less types of the second.
// It means that the first namespace is certainly at a lower level in the architecture, than the second.
//
// To explore the coupling between two namespaces mutually dependent:
// 1) export the first namespace to the vertical header of the dependency matrix
// 2) export the second namespace to the horizontal header of the dependency matrix
// 3) double-click the black cell
// 4) in the matrix command bar, click the button: Remove empty Row(s) en Column(s)
// At this point, the dependency matrix shows types involved into the coupling.
//
// Following this rule is useful to avoid namespaces dependency cycles.
// More on this in our white books relative to partitionning code.
// http://www.ndepend.com/WhiteBooks.aspx
// Optimization: restreint application assemblies set
// If some namespaces are mutually dependent
// - They must be declared in the same assembly
// - The parent assembly must ContainsNamespaceDependencyCycle
from assembly in Application.Assemblies.Where(a => a.ContainsNamespaceDependencyCycle != null && a.ContainsNamespaceDependencyCycle.Value)
// hashset is used to avoid reporting both A <-> B and B <-> A
let hashset = new HashSet<INamespace>()
// Optimization: restreint namespaces set
// If a namespace doesn't have a Level value, it must be in a dependency cycle
// or it must be using directly or indirectly a dependency cycle.
let namespacesSuspect = assembly.ChildNamespaces.Where(n => n.Level == null)
from nA in namespacesSuspect
// Select namespaces mutually dependent with nA
let unused = hashset.Add(nA) // Populate hashset
let namespacesMutuallyDependentWith_nA = nA.NamespacesUsed.Using(nA)
.Except(hashset) // <-- avoid reporting both A <-> B and B <-> A
where namespacesMutuallyDependentWith_nA.Count() > 0
from nB in namespacesMutuallyDependentWith_nA
// nA and nB are mutually dependent
// Select first the one that shouldn't use the other.
// The first namespace is inferred from the fact that it is using less types of the second.
let typesOfBUsedByA = nB.ChildTypes.UsedBy(nA)
let typesOfAUsedByB = nA.ChildTypes.UsedBy(nB)
let first = (typesOfBUsedByA.Count() > typesOfAUsedByB.Count()) ? nB : nA
let second = (first == nA) ? nB : nA
let typesOfFirstUsedBySecond = (first == nA) ? typesOfAUsedByB : typesOfBUsedByA
let typesOfSecondUsedByFirst = (first == nA) ? typesOfBUsedByA : typesOfAUsedByB
select new { first, shouldntUse = second, typesOfFirstUsedBySecond, typesOfSecondUsedByFirst }
warnif count > 0
// Foreach pair of namespace mutually dependent, this rule lists pairs.
// The pair { first, second } is formatted to show that first namespace shouldn't use the second namespace.
// The first/second order is inferred from the number of types used by each other.
// The first namespace is using less types of the second.
// It means that the first namespace is certainly at a lower level in the architecture, than the second.
//
// To explore the coupling between two namespaces mutually dependent:
// 1) export the first namespace to the vertical header of the dependency matrix
// 2) export the second namespace to the horizontal header of the dependency matrix
// 3) double-click the black cell
// 4) in the matrix command bar, click the button: Remove empty Row(s) en Column(s)
// At this point, the dependency matrix shows types involved into the coupling.
//
// Following this rule is useful to avoid namespaces dependency cycles.
// More on this in our white books relative to partitionning code.
// http://www.ndepend.com/WhiteBooks.aspx
// Optimization: restreint application assemblies set
// If some namespaces are mutually dependent
// - They must be declared in the same assembly
// - The parent assembly must ContainsNamespaceDependencyCycle
from assembly in Application.Assemblies.Where(a => a.ContainsNamespaceDependencyCycle != null && a.ContainsNamespaceDependencyCycle.Value)
// hashset is used to avoid reporting both A <-> B and B <-> A
let hashset = new HashSet<INamespace>()
// Optimization: restreint namespaces set
// If a namespace doesn't have a Level value, it must be in a dependency cycle
// or it must be using directly or indirectly a dependency cycle.
let namespacesSuspect = assembly.ChildNamespaces.Where(n => n.Level == null)
from nA in namespacesSuspect
// Select namespaces mutually dependent with nA
let unused = hashset.Add(nA) // Populate hashset
let namespacesMutuallyDependentWith_nA = nA.NamespacesUsed.Using(nA)
.Except(hashset) // <-- avoid reporting both A <-> B and B <-> A
where namespacesMutuallyDependentWith_nA.Count() > 0
from nB in namespacesMutuallyDependentWith_nA
// nA and nB are mutually dependent
// Select first the one that shouldn't use the other.
// The first namespace is inferred from the fact that it is using less types of the second.
let typesOfBUsedByA = nB.ChildTypes.UsedBy(nA)
let typesOfAUsedByB = nA.ChildTypes.UsedBy(nB)
let first = (typesOfBUsedByA.Count() > typesOfAUsedByB.Count()) ? nB : nA
let second = (first == nA) ? nB : nA
let typesOfFirstUsedBySecond = (first == nA) ? typesOfAUsedByB : typesOfBUsedByA
let typesOfSecondUsedByFirst = (first == nA) ? typesOfBUsedByA : typesOfAUsedByB
select new { first, shouldntUse = second, typesOfFirstUsedBySecond, typesOfSecondUsedByFirst }
36 namespaces matched
| namespaces | shouldntUse | typesOfFirstUsedBySecond | typesOfSecondUsedByFirst | Full Name |
|---|---|---|---|---|
| namespaces | shouldntUse | typesOfFirstUsedBySecond | typesOfSecondUsedByFirst | Full Name |
| ThoughtWorks.CruiseControl.Remote | ThoughtWorks.CruiseControl.Remote.Parameters | 1 type | 1 type | ThoughtWorks.CruiseControl.Remote |
| ThoughtWorks.CruiseControl.Remote.Messages | ThoughtWorks.CruiseControl.Remote | 32 types | 9 types | ThoughtWorks.CruiseControl.Remote.Messages |
| ThoughtWorks.CruiseControl.Remote.Events | ThoughtWorks.CruiseControl.Remote | 6 types | 2 types | ThoughtWorks.CruiseControl.Remote.Events |
| ThoughtWorks.CruiseControl.Core.Util | ThoughtWorks.CruiseControl.Core | 22 types | 2 types | ThoughtWorks.CruiseControl.Core.Util |
| ThoughtWorks.CruiseControl.Core | ThoughtWorks.CruiseControl.Core.Triggers | 3 types | 1 type | ThoughtWorks.CruiseControl.Core |
| ThoughtWorks.CruiseControl.Core.Security | ThoughtWorks.CruiseControl.Core | 9 types | 4 types | ThoughtWorks.CruiseControl.Core.Security |
| ThoughtWorks.CruiseControl.Core | ThoughtWorks.CruiseControl.Core.Sourcecontrol | 6 types | 4 types | ThoughtWorks.CruiseControl.Core |
| ThoughtWorks.CruiseControl.Core.State | ThoughtWorks.CruiseControl.Core | 4 types | 2 types | ThoughtWorks.CruiseControl.Core.State |
| ThoughtWorks.CruiseControl.Core.Config | ThoughtWorks.CruiseControl.Core | 15 types | 9 types | ThoughtWorks.CruiseControl.Core.Config |
| ThoughtWorks.CruiseControl.Core | ThoughtWorks.CruiseControl.Core.Tasks | 10 types | 3 types | ThoughtWorks.CruiseControl.Core |
| ThoughtWorks.CruiseControl.Core.Queues | ThoughtWorks.CruiseControl.Core | 7 types | 5 types | ThoughtWorks.CruiseControl.Core.Queues |
| ThoughtWorks.CruiseControl.Core | ThoughtWorks.CruiseControl.Core.Label | 5 types | 1 type | ThoughtWorks.CruiseControl.Core |
| ThoughtWorks.CruiseControl.Core | ThoughtWorks.CruiseControl.Core.Publishers | 11 types | 3 types | ThoughtWorks.CruiseControl.Core |
| ThoughtWorks.CruiseControl.Core | ThoughtWorks.CruiseControl.Core.Publishers.Statistics | 5 types | 1 type | ThoughtWorks.CruiseControl.Core |
| ThoughtWorks.CruiseControl.Core.Util | ThoughtWorks.CruiseControl.Core.Tasks | 30 types | 2 types | ThoughtWorks.CruiseControl.Core.Util |
| ThoughtWorks.CruiseControl.Core.Tasks | ThoughtWorks.CruiseControl.Core.Publishers | 3 types | 1 type | ThoughtWorks.CruiseControl.Core.Tasks |
| ThoughtWorks.CruiseControl.Core.Config | ThoughtWorks.CruiseControl.Core.Security | 3 types | 2 types | ThoughtWorks.CruiseControl.Core.Config |
| ThoughtWorks.CruiseControl.Core.Config.Preprocessor | ThoughtWorks.CruiseControl.Core.Config | 3 types | 1 type | ThoughtWorks.CruiseControl.Core.Config.Preprocessor |
| ThoughtWorks.CruiseControl.WebDashboard.IO | ThoughtWorks.CruiseControl.WebDashboard.MVC | 2 types | 2 types | ThoughtWorks.CruiseControl.WebDashboard.IO |
| ThoughtWorks.CruiseControl.WebDashboard.IO | ThoughtWorks.CruiseControl.WebDashboard.Dashboard | 4 types | 2 types | ThoughtWorks.CruiseControl.WebDashboard.IO |
| ThoughtWorks.CruiseControl.WebDashboard.IO | ThoughtWorks.CruiseControl.WebDashboard.Configuration | 1 type | 1 type | ThoughtWorks.CruiseControl.WebDashboard.IO |
| ThoughtWorks.CruiseControl.WebDashboard.IO | ThoughtWorks.CruiseControl.WebDashboard.Plugins.BuildReport | 3 types | 2 types | ThoughtWorks.CruiseControl.WebDashboard.IO |
| ThoughtWorks.CruiseControl.WebDashboard.Dashboard | ThoughtWorks.CruiseControl.WebDashboard.Configuration | 5 types | 4 types | ThoughtWorks.CruiseControl.WebDashboard.Dashboard |
| ThoughtWorks.CruiseControl.WebDashboard.MVC.Cruise | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.Actions | 1 type | 1 type | ThoughtWorks.CruiseControl.WebDashboard.MVC.Cruise |
| ThoughtWorks.CruiseControl.WebDashboard.MVC.Cruise | ThoughtWorks.CruiseControl.WebDashboard.Dashboard | 8 types | 2 types | ThoughtWorks.CruiseControl.WebDashboard.MVC.Cruise |
| ThoughtWorks.CruiseControl.WebDashboard.Dashboard | ThoughtWorks.CruiseControl.WebDashboard.Plugins.ProjectReport | 10 types | 4 types | ThoughtWorks.CruiseControl.WebDashboard.Dashboard |
| ThoughtWorks.CruiseControl.WebDashboard.Dashboard | ThoughtWorks.CruiseControl.WebDashboard.Plugins.FarmReport | 9 types | 6 types | ThoughtWorks.CruiseControl.WebDashboard.Dashboard |
| ThoughtWorks.CruiseControl.WebDashboard.Dashboard | ThoughtWorks.CruiseControl.WebDashboard.Plugins.BuildReport | 11 types | 4 types | ThoughtWorks.CruiseControl.WebDashboard.Dashboard |
| ThoughtWorks.CruiseControl.WebDashboard.Dashboard | ThoughtWorks.CruiseControl.WebDashboard.Plugins.ServerReport | 10 types | 2 types | ThoughtWorks.CruiseControl.WebDashboard.Dashboard |
| ThoughtWorks.CruiseControl.WebDashboard.Dashboard | ThoughtWorks.CruiseControl.WebDashboard.Plugins.ViewAllBuilds | 4 types | 1 type | ThoughtWorks.CruiseControl.WebDashboard.Dashboard |
| ThoughtWorks.CruiseControl.WebDashboard.Dashboard | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.ActionDecorators | 4 types | 2 types | ThoughtWorks.CruiseControl.WebDashboard.Dashboard |
| ThoughtWorks.CruiseControl.WebDashboard.Dashboard | ThoughtWorks.CruiseControl.WebDashboard.Plugins.Security | 4 types | 2 types | ThoughtWorks.CruiseControl.WebDashboard.Dashboard |
| ThoughtWorks.CruiseControl.WebDashboard.Dashboard.Actions | ThoughtWorks.CruiseControl.WebDashboard.Plugins.BuildReport | 1 type | 1 type | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.Actions |
| ThoughtWorks.CruiseControl.WebDashboard.Dashboard.GenericPlugins | ThoughtWorks.CruiseControl.WebDashboard.Plugins.BuildReport | 1 type | 1 type | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.GenericPlugins |
| ThoughtWorks.CruiseControl.CCTrayLib.Presentation | ThoughtWorks.CruiseControl.CCTrayLib.Speech | 1 type | 1 type | ThoughtWorks.CruiseControl.CCTrayLib.Presentation |
| ThoughtWorks.CruiseControl.CCTrayLib.Monitoring | ThoughtWorks.CruiseControl.CCTrayLib.Configuration | 8 types | 4 types | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring |
Statistics
| Stat | shouldntUse | typesOfFirstUsedBySecond | typesOfSecondUsedByFirst |
|---|---|---|---|
| Sum: | 0 | 0 | 0 |
| Average: | 0 | 0 | 0 |
| Minimum: | 0 | 0 | 0 |
| Maximum: | 0 | 0 | 0 |
| Standard deviation: | 0 | 0 | 0 |
| Variance: | 0 | 0 | 0 |
| Rule warning: Avoid namespaces dependency cycles |
// <Name>Avoid namespaces dependency cycles</Name>
warnif count > 0
// This query lists all application namespaces dependency cyles.
// Each row shows a different cycle, prefixed with a namespace entangled in the cycle.
//
// To browse a cycle on the dependency graph or the dependency matrix, just right click
// a cycle cell and export namespaces matched to the dependency graph or matrix!
//
// In the matrix, dependency cycles are represented with red squares and black cells.
// To browse easily dependency cycles, the Matrix comes with the option:
// --> Display Direct and Indirect Dependencies
//
// Read our white books relative to partitionning code,
// to know more about namespaces dependency cycles, and why avoiding them
// is a simple but efficient solution to architecture well your code base.
// http://www.ndepend.com/WhiteBooks.aspx
// Optimization: restreint application assemblies set
// If some namespaces are mutually dependent
// - They must be declared in the same assembly
// - The parent assembly must ContainsNamespaceDependencyCycle
from assembly in Application.Assemblies
.Where(a => a.ContainsNamespaceDependencyCycle != null &&
a.ContainsNamespaceDependencyCycle.Value)
// Optimization: restreint namespaces set
// A namespace involved in a cycle necessarily have a null Level.
let namespacesSuspect = assembly.ChildNamespaces.Where(n => n.Level == null)
// hashset is used to avoid iterating again on namespaces already caught in a cycle.
let hashset = new HashSet<INamespace>()
from suspect in namespacesSuspect
// By commenting this line, the query matches all namespaces involved in a cycle.
where !hashset.Contains(suspect)
// Define 2 code metrics
// - Namespaces depth of is using indirectly the suspect namespace.
// - Namespaces depth of is used by the suspect namespace indirectly.
// Note: for direct usage the depth is equal to 1.
let namespacesUserDepth = namespacesSuspect.DepthOfIsUsing(suspect)
let namespacesUsedDepth = namespacesSuspect.DepthOfIsUsedBy(suspect)
// Select namespaces that are both using and used by namespaceSuspect
let usersAndUsed = from n in namespacesSuspect where
namespacesUserDepth[n] > 0 &&
namespacesUsedDepth[n] > 0
select n
where usersAndUsed.Count() > 0
// Here we've found namespace(s) both using and used by the suspect namespace.
// A cycle involving the suspect namespace is found!
let cycle = usersAndUsed.Append(suspect)
// Fill hashset with namespaces in the cycle.
// .ToArray() is needed to force the iterating process.
let unused1 = (from n in cycle let unused2 = hashset.Add(n) select n).ToArray()
select new { suspect, cycle }
warnif count > 0
// This query lists all application namespaces dependency cyles.
// Each row shows a different cycle, prefixed with a namespace entangled in the cycle.
//
// To browse a cycle on the dependency graph or the dependency matrix, just right click
// a cycle cell and export namespaces matched to the dependency graph or matrix!
//
// In the matrix, dependency cycles are represented with red squares and black cells.
// To browse easily dependency cycles, the Matrix comes with the option:
// --> Display Direct and Indirect Dependencies
//
// Read our white books relative to partitionning code,
// to know more about namespaces dependency cycles, and why avoiding them
// is a simple but efficient solution to architecture well your code base.
// http://www.ndepend.com/WhiteBooks.aspx
// Optimization: restreint application assemblies set
// If some namespaces are mutually dependent
// - They must be declared in the same assembly
// - The parent assembly must ContainsNamespaceDependencyCycle
from assembly in Application.Assemblies
.Where(a => a.ContainsNamespaceDependencyCycle != null &&
a.ContainsNamespaceDependencyCycle.Value)
// Optimization: restreint namespaces set
// A namespace involved in a cycle necessarily have a null Level.
let namespacesSuspect = assembly.ChildNamespaces.Where(n => n.Level == null)
// hashset is used to avoid iterating again on namespaces already caught in a cycle.
let hashset = new HashSet<INamespace>()
from suspect in namespacesSuspect
// By commenting this line, the query matches all namespaces involved in a cycle.
where !hashset.Contains(suspect)
// Define 2 code metrics
// - Namespaces depth of is using indirectly the suspect namespace.
// - Namespaces depth of is used by the suspect namespace indirectly.
// Note: for direct usage the depth is equal to 1.
let namespacesUserDepth = namespacesSuspect.DepthOfIsUsing(suspect)
let namespacesUsedDepth = namespacesSuspect.DepthOfIsUsedBy(suspect)
// Select namespaces that are both using and used by namespaceSuspect
let usersAndUsed = from n in namespacesSuspect where
namespacesUserDepth[n] > 0 &&
namespacesUsedDepth[n] > 0
select n
where usersAndUsed.Count() > 0
// Here we've found namespace(s) both using and used by the suspect namespace.
// A cycle involving the suspect namespace is found!
let cycle = usersAndUsed.Append(suspect)
// Fill hashset with namespaces in the cycle.
// .ToArray() is needed to force the iterating process.
let unused1 = (from n in cycle let unused2 = hashset.Add(n) select n).ToArray()
select new { suspect, cycle }
5 namespaces matched
| namespaces | cycle | Full Name |
|---|---|---|
| namespaces | cycle | Full Name |
| ThoughtWorks.CruiseControl.Remote | 4 namespaces | ThoughtWorks.CruiseControl.Remote |
| ThoughtWorks.CruiseControl.Core | 14 namespaces | ThoughtWorks.CruiseControl.Core |
| ThoughtWorks.CruiseControl.WebDashboard.ServerConnection | 18 namespaces | ThoughtWorks.CruiseControl.WebDashboard.ServerConnection |
| ThoughtWorks.CruiseControl.CCTrayLib.Presentation | 2 namespaces | ThoughtWorks.CruiseControl.CCTrayLib.Presentation |
| ThoughtWorks.CruiseControl.CCTrayLib.Monitoring | 2 namespaces | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring |
Statistics
| Stat | cycle |
|---|---|
| Sum: | 0 |
| Average: | 0 |
| Minimum: | 0 |
| Maximum: | 0 |
| Standard deviation: | 0 |
| Variance: | 0 |
| Rule warning: Assemblies with poor cohesion (RelationalCohesion) |
// <Name>Assemblies with poor cohesion (RelationalCohesion)</Name>
warnif count > 0 from a in Application.Assemblies where
a.NbTypes > 20 && // Relational Cohesion metrics is relevant only if there are several types
(a.RelationalCohesion < 1.5 ||
a.RelationalCohesion > 4.0)
select new { a, a.NbTypes, a.RelationalCohesion }
// As classes inside an assembly should be strongly related,
// the cohesion should be high. On the other hand, a value
// which is too high may indicate over-coupling. A good range
// for RelationalCohesion is 1.5 to 4.0.
// See the definition of the RelationalCohesion metric here
// http://www.ndepend.com/Metrics.aspx#RelationalCohesion
warnif count > 0 from a in Application.Assemblies where
a.NbTypes > 20 && // Relational Cohesion metrics is relevant only if there are several types
(a.RelationalCohesion < 1.5 ||
a.RelationalCohesion > 4.0)
select new { a, a.NbTypes, a.RelationalCohesion }
// As classes inside an assembly should be strongly related,
// the cohesion should be high. On the other hand, a value
// which is too high may indicate over-coupling. A good range
// for RelationalCohesion is 1.5 to 4.0.
// See the definition of the RelationalCohesion metric here
// http://www.ndepend.com/Metrics.aspx#RelationalCohesion
3 assemblies matched
| assemblies | # Types | Relational cohesion | Full Name |
|---|---|---|---|
| assemblies | # Types | Relational cohesion | Full Name |
| ThoughtWorks.CruiseControl.Core | 528 | 4.125 | ThoughtWorks.CruiseControl.Core |
| ThoughtWorks.CruiseControl.WebDashboard | 209 | 4.5981 | ThoughtWorks.CruiseControl.WebDashboard |
| CCValidator | 21 | 1.3333 | CCValidator |
Statistics
| Stat | # Types | Relational cohesion |
|---|---|---|
| Sum: | 758 | 10.056 |
| Average: | 252.67 | 3.3521 |
| Minimum: | 21 | 1.3333 |
| Maximum: | 528 | 4.5981 |
| Standard deviation: | 209.27 | 1.4405 |
| Variance: | 43 794 | 2.0751 |
| API Breaking Changes |
|
|
| Critical Rule warning: API Breaking Changes: Methods |
// <Name>API Breaking Changes: Methods</Name>
// This rule warns if a publicly visible method is
// not publicly visible anymore or if it has been removed.
// Such method can break the code of your clients.
warnif count > 0 from m in codeBase.OlderVersion().Application.Methods
where m.IsPubliclyVisible &&
// The method has been removed and its parent type hasn't been removed ...
( (m.WasRemoved() && !m.ParentType.WasRemoved()) ||
// ... or the method is not publicly visible anymore
!m.WasRemoved() && !m.NewerVersion().IsPubliclyVisible)
select new { m,
NewVisibility = (m.WasRemoved() ? " " : m.NewerVersion().Visibility.ToString()) }
// This rule warns if a publicly visible method is
// not publicly visible anymore or if it has been removed.
// Such method can break the code of your clients.
warnif count > 0 from m in codeBase.OlderVersion().Application.Methods
where m.IsPubliclyVisible &&
// The method has been removed and its parent type hasn't been removed ...
( (m.WasRemoved() && !m.ParentType.WasRemoved()) ||
// ... or the method is not publicly visible anymore
!m.WasRemoved() && !m.NewerVersion().IsPubliclyVisible)
select new { m,
NewVisibility = (m.WasRemoved() ? " " : m.NewerVersion().Visibility.ToString()) }
35 methods matched
| methods | NewVisibility | Full Name |
|---|---|---|
| methods | NewVisibility | Full Name |
| AddTaskResultFromFile(String) | ThoughtWorks.CruiseControl.Core.IIntegrationResult .AddTaskResultFromFile(String) | |
| AddTaskResultFromFile(String,Boolean) | ThoughtWorks.CruiseControl.Core.IIntegrationResult .AddTaskResultFromFile(String,Boolean) | |
| AddTaskResultFromFile(String) | ThoughtWorks.CruiseControl.Core.IntegrationResult .AddTaskResultFromFile(String) | |
| AddTaskResultFromFile(String,Boolean) | ThoughtWorks.CruiseControl.Core.IntegrationResult .AddTaskResultFromFile(String,Boolean) | |
| Validate(IConfiguration,Object,IConfigurationErrorProcesser) | ThoughtWorks.CruiseControl.Core.Project.Validate(IConfiguration,Object ,IConfigurationErrorProcesser) | |
| Validate(IConfiguration,Object,IConfigurationErrorProcesser) | ThoughtWorks.CruiseControl.Core.Tasks.TaskContainerBase.Validate (IConfiguration,Object,IConfigurationErrorProcesser) | |
| InitialiseStatus() | ThoughtWorks.CruiseControl.Core.Tasks.TaskContainerBase .InitialiseStatus() | |
| Run(IIntegrationResult) | ThoughtWorks.CruiseControl.Core.Tasks.NullTask.Run(IIntegrationResult) | |
| get_ioSystem() | ThoughtWorks.CruiseControl.Core.Tasks.DupFinderTask.get_ioSystem() | |
| set_ioSystem(IFileSystem) | ThoughtWorks.CruiseControl.Core.Tasks.DupFinderTask.set_ioSystem (IFileSystem) | |
| Validate(IConfiguration,Object,IConfigurationErrorProcesser) | ThoughtWorks.CruiseControl.Core.Tasks.ParallelTask.Validate (IConfiguration,Object,IConfigurationErrorProcesser) | |
| Validate(IConfiguration,Object,IConfigurationErrorProcesser) | ThoughtWorks.CruiseControl.Core.Tasks.FinalBuilderTask.Validate (IConfiguration,Object,IConfigurationErrorProcesser) | |
| EmptyDirectoryIncludingReadOnlyObjects(String) | ThoughtWorks.CruiseControl.Core.Util.IoService .EmptyDirectoryIncludingReadOnlyObjects(String) | |
| DeleteFileEvenIfReadOnly(String) | ThoughtWorks.CruiseControl.Core.Util.IoService .DeleteFileEvenIfReadOnly(String) | |
| GetDisplayName(String) | ThoughtWorks.CruiseControl.Core.Security.ISecurityManager .GetDisplayName(String) | |
| GetDisplayName(String) | ThoughtWorks.CruiseControl.Core.Security.SecurityManagerBase .GetDisplayName(String) | |
| Validate(IConfiguration,Object,IConfigurationErrorProcesser) | ThoughtWorks.CruiseControl.Core.Security.PermissionBase.Validate (IConfiguration,Object,IConfigurationErrorProcesser) | |
| Validate(IConfiguration,Object,IConfigurationErrorProcesser) | ThoughtWorks.CruiseControl.Core.Security.InternalSecurityManager .Validate(IConfiguration,Object,IConfigurationErrorProcesser) | |
| Validate(IConfiguration,Object,IConfigurationErrorProcesser) | ThoughtWorks.CruiseControl.Core.Security.ExternalFileSecurityManager .Validate(IConfiguration,Object,IConfigurationErrorProcesser) | |
| Validate(IConfiguration,Object,IConfigurationErrorProcesser) | ThoughtWorks.CruiseControl.Core.Security.DefaultProjectAuthorisation .Validate(IConfiguration,Object,IConfigurationErrorProcesser) | |
| GetDisplayName(String) | ThoughtWorks.CruiseControl.Core.Security.NullSecurityManager .GetDisplayName(String) | |
| Validate(IConfiguration,Object,IConfigurationErrorProcesser) | ThoughtWorks.CruiseControl.Core.Publishers.EmailPublisher.Validate (IConfiguration,Object,IConfigurationErrorProcesser) | |
| Validate(IConfiguration,Object,IConfigurationErrorProcesser) | ThoughtWorks.CruiseControl.Core.Config.IConfigurationValidation .Validate(IConfiguration,Object,IConfigurationErrorProcesser) | |
| Validate(IConfiguration,Object,IConfigurationErrorProcesser) | ThoughtWorks.CruiseControl.Core.Config.DefaultQueueConfiguration .Validate(IConfiguration,Object,IConfigurationErrorProcesser) | |
| set_XslFileNames(String[]) | ThoughtWorks.CruiseControl.WebDashboard.Plugins.BuildReport .BuildReportBuildPlugin.set_XslFileNames(String[]) | |
| set_XslFileNames(String[]) | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.GenericPlugins .XslMultiReportBuildPlugin.set_XslFileNames(String[]) | |
| set_XslFileNames(String[]) | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.Actions .MultipleXslReportBuildAction.set_XslFileNames(String[]) | |
| ForceBuild(String,Dictionary<String,String>) | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring.ICruiseProjectManager .ForceBuild(String,Dictionary<String,String>) | |
| ForceBuild(Dictionary<String,String>) | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring.IProjectMonitor .ForceBuild(Dictionary<String,String>) | |
| ForceBuild(Dictionary<String,String>) | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring.ProjectMonitor .ForceBuild(Dictionary<String,String>) | |
| ForceBuild(Dictionary<String,String>) | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring .AggregatingProjectMonitor.ForceBuild(Dictionary<String,String>) | |
| ForceBuild(String,Dictionary<String,String>) | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring .RemotingCruiseProjectManager.ForceBuild(String,Dictionary<String ,String>) | |
| ForceBuild(String,Dictionary<String,String>) | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring .HttpCruiseProjectManager.ForceBuild(String,Dictionary<String,String>) | |
| ForceBuild(Dictionary<String,String>) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .SynchronizedProjectMonitor.ForceBuild(Dictionary<String,String>) | |
| ForceBuild(Dictionary<String,String>) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.StubProjectMonitor .ForceBuild(Dictionary<String,String>) |
Statistics
| Stat | NewVisibility |
|---|---|
| Sum: | 0 |
| Average: | 0 |
| Minimum: | 0 |
| Maximum: | 0 |
| Standard deviation: | 0 |
| Variance: | 0 |
| Critical Rule warning: API Breaking Changes: Fields |
// <Name>API Breaking Changes: Fields</Name>
// This rule warns if a publicly visible field is
// not publicly visible anymore or if it has been removed.
// Such field can break the code of your clients.
warnif count > 0 from f in codeBase.OlderVersion().Application.Fields
where f.IsPubliclyVisible &&
// The field has been removed and its parent type hasn't been removed ...
( (f.WasRemoved() && !f.ParentType.WasRemoved()) ||
// ... or the field is not publicly visible anymore
!f.WasRemoved() && !f.NewerVersion().IsPubliclyVisible)
select new { f,
NewVisibility = (f.WasRemoved() ? " " : f.NewerVersion().Visibility.ToString()) }
// This rule warns if a publicly visible field is
// not publicly visible anymore or if it has been removed.
// Such field can break the code of your clients.
warnif count > 0 from f in codeBase.OlderVersion().Application.Fields
where f.IsPubliclyVisible &&
// The field has been removed and its parent type hasn't been removed ...
( (f.WasRemoved() && !f.ParentType.WasRemoved()) ||
// ... or the field is not publicly visible anymore
!f.WasRemoved() && !f.NewerVersion().IsPubliclyVisible)
select new { f,
NewVisibility = (f.WasRemoved() ? " " : f.NewerVersion().Visibility.ToString()) }
21 fields matched
| fields | NewVisibility | Full Name |
|---|---|---|
| fields | NewVisibility | Full Name |
| SolutionFile | ThoughtWorks.CruiseControl.Core.Tasks.DevenvTask.SolutionFile | |
| Configuration | ThoughtWorks.CruiseControl.Core.Tasks.DevenvTask.Configuration | |
| BuildTimeoutSeconds | ThoughtWorks.CruiseControl.Core.Tasks.DevenvTask.BuildTimeoutSeconds | |
| BuildType | ThoughtWorks.CruiseControl.Core.Tasks.DevenvTask.BuildType | |
| Project | ThoughtWorks.CruiseControl.Core.Tasks.DevenvTask.Project | |
| Priority | ThoughtWorks.CruiseControl.Core.Tasks.DevenvTask.Priority | |
| UrlBuilder | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn.UrlBuilder | |
| Executable | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn.Executable | |
| TrunkUrl | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn.TrunkUrl | |
| WorkingDirectory | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn.WorkingDirectory | |
| TagOnSuccess | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn.TagOnSuccess | |
| DeleteObstructions | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn.DeleteObstructions | |
| TagBaseUrl | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn.TagBaseUrl | |
| Username | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn.Username | |
| Password | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn.Password | |
| AutoGetSource | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn.AutoGetSource | |
| CheckExternals | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn.CheckExternals | |
| CheckExternalsRecursive | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn .CheckExternalsRecursive | |
| CleanCopy | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn.CleanCopy | |
| Revert | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn.Revert | |
| CleanUp | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn.CleanUp |
Statistics
| Stat | NewVisibility |
|---|---|
| Sum: | 0 |
| Average: | 0 |
| Minimum: | 0 |
| Maximum: | 0 |
| Standard deviation: | 0 |
| Variance: | 0 |
| Critical Rule warning: API Breaking Changes: Interfaces and Abstract Classes |
// <Name>API Breaking Changes: Interfaces and Abstract Classes</Name>
// This rule warns if a publicly visible interface or abstract class
// has been changed and contains new abstract methods or
// if some abstract methods have been removed.
// This can break the code of clients
// that implement such interface or derive from such abstract class.
warnif count > 0 from tNewer in Application.Types where
(tNewer.IsInterface || tNewer.IsClass && tNewer.IsAbstract) &&
tNewer.IsPubliclyVisible &&
tNewer.IsPresentInBothBuilds()
let tOlder = tNewer.OlderVersion() where tOlder.IsPubliclyVisible
let methodsRemoved = tOlder.Methods.Where(m => m.IsAbstract && m.WasRemoved())
let methodsAdded = tNewer.Methods.Where(m => m.IsAbstract && m.WasAdded())
where methodsAdded.Count() > 0 || methodsRemoved.Count() > 0
select new { tNewer, methodsAdded, methodsRemoved }
// This rule warns if a publicly visible interface or abstract class
// has been changed and contains new abstract methods or
// if some abstract methods have been removed.
// This can break the code of clients
// that implement such interface or derive from such abstract class.
warnif count > 0 from tNewer in Application.Types where
(tNewer.IsInterface || tNewer.IsClass && tNewer.IsAbstract) &&
tNewer.IsPubliclyVisible &&
tNewer.IsPresentInBothBuilds()
let tOlder = tNewer.OlderVersion() where tOlder.IsPubliclyVisible
let methodsRemoved = tOlder.Methods.Where(m => m.IsAbstract && m.WasRemoved())
let methodsAdded = tNewer.Methods.Where(m => m.IsAbstract && m.WasAdded())
where methodsAdded.Count() > 0 || methodsRemoved.Count() > 0
select new { tNewer, methodsAdded, methodsRemoved }
8 types matched
| types | methodsAdded | methodsRemoved | Full Name |
|---|---|---|---|
| types | methodsAdded | methodsRemoved | Full Name |
| IIntegrationResult | 0 method | 2 methods | ThoughtWorks.CruiseControl.Core.IIntegrationResult |
| IIntegrationRunnerTarget | 1 method | 0 method | ThoughtWorks.CruiseControl.Core.IIntegrationRunnerTarget |
| ISecurityManager | 1 method | 1 method | ThoughtWorks.CruiseControl.Core.Security.ISecurityManager |
| IConfigurationValidation | 1 method | 1 method | ThoughtWorks.CruiseControl.Core.Config.IConfigurationValidation |
| IProjectGridAction | 2 methods | 0 method | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.IProjectGridAction |
| IProjectMonitor | 1 method | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring.IProjectMonitor |
| ISingleProjectDetail | 1 method | 0 method | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring.ISingleProjectDetail |
| ICruiseProjectManager | 1 method | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring.ICruiseProjectManager |
Statistics
| Stat | methodsAdded | methodsRemoved |
|---|---|---|
| Sum: | 0 | 0 |
| Average: | 0 | 0 |
| Minimum: | 0 | 0 |
| Maximum: | 0 | 0 |
| Standard deviation: | 0 | 0 |
| Variance: | 0 | 0 |
| Dead Code |
|
|
| Rule warning: Potentially dead Types |
// <Name>Potentially dead Types</Name>
warnif count > 0
// Filter procedure for types that should'nt be considered as dead
let canTypeBeConsideredAsDeadProc = new Func<IType, bool>(
t => !t.IsPublic && // Public types might be used by client applications of your assemblies.
t.Name != "Program" &&
!t.IsGeneratedByCompiler &&
!t.HasAttribute("NDepend.Attributes.IsNotDeadCodeAttribute".AllowNoMatch()))
// If you don't want to link NDepend.API.dll, you can use your own IsNotDeadCodeAttribute and adapt this rule.
// Select types unused
let typesUnused =
from t in JustMyCode.Types where
t.NbTypesUsingMe == 0 && canTypeBeConsideredAsDeadProc(t)
select t
// Dead types = types used only by unused types (recursive)
let deadTypesMetric = typesUnused.FillIterative(
types => from t in codeBase.Application.Types.UsedByAny(types).Except(types)
where canTypeBeConsideredAsDeadProc(t) &&
t.TypesUsingMe.Intersect(types).Count() == t.NbTypesUsingMe
select t)
from t in deadTypesMetric.DefinitionDomain
select new { t, t.TypesUsingMe, depth = deadTypesMetric[t] }
warnif count > 0
// Filter procedure for types that should'nt be considered as dead
let canTypeBeConsideredAsDeadProc = new Func<IType, bool>(
t => !t.IsPublic && // Public types might be used by client applications of your assemblies.
t.Name != "Program" &&
!t.IsGeneratedByCompiler &&
!t.HasAttribute("NDepend.Attributes.IsNotDeadCodeAttribute".AllowNoMatch()))
// If you don't want to link NDepend.API.dll, you can use your own IsNotDeadCodeAttribute and adapt this rule.
// Select types unused
let typesUnused =
from t in JustMyCode.Types where
t.NbTypesUsingMe == 0 && canTypeBeConsideredAsDeadProc(t)
select t
// Dead types = types used only by unused types (recursive)
let deadTypesMetric = typesUnused.FillIterative(
types => from t in codeBase.Application.Types.UsedByAny(types).Except(types)
where canTypeBeConsideredAsDeadProc(t) &&
t.TypesUsingMe.Intersect(types).Count() == t.NbTypesUsingMe
select t)
from t in deadTypesMetric.DefinitionDomain
select new { t, t.TypesUsingMe, depth = deadTypesMetric[t] }
1 types matched
| type | TypesUsingMe | depth | Full Name |
|---|---|---|---|
| type | TypesUsingMe | depth | Full Name |
| ModificationHistoryProjectPlugin | 0 type | 0 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.ProjectReport .ModificationHistoryProjectPlugin |
Statistics
| Stat | TypesUsingMe | depth |
|---|---|---|
| Sum: | 0 | 0 |
| Average: | 0 | 0 |
| Minimum: | 0 | 0 |
| Maximum: | 0 | 0 |
| Standard deviation: | 0 | 0 |
| Variance: | 0 | 0 |
| Rule warning: Potentially dead Methods |
// <Name>Potentially dead Methods</Name>
warnif count > 0
// Filter procedure for methods that should'nt be considered as dead
let canMethodBeConsideredAsDeadProc = new Func<IMethod, bool>(
m => !m.IsPubliclyVisible && // Public methods might be used by client applications of your assemblies.
!m.IsEntryPoint && // Main() method is not used by-design.
!m.IsExplicitInterfaceImpl && // The IL code never explicitely calls explicit interface methods implementation.
!m.IsClassConstructor && // The IL code never explicitely calls class constructors.
!m.IsFinalizer && // The IL code never explicitely calls finalizers.
!m.IsVirtual && // Only check for non virtual method that are not seen as used in IL.
!(m.IsConstructor && // Don't take account of protected ctor that might be call by a derived ctors.
m.IsProtected) &&
!m.IsEventAdder && // The IL code never explicitely calls events adder/remover.
!m.IsEventRemover &&
!m.IsGeneratedByCompiler &&
!m.ParentType.IsDelegate &&
// Methods tagged with these two attributes are called by the serialization infrastructure.
!m.HasAttribute("System.Runtime.Serialization.OnSerializingAttribute".AllowNoMatch()) &&
!m.HasAttribute("System.Runtime.Serialization.OnDeserializedAttribute".AllowNoMatch()) &&
// If you don't want to link NDepend.API.dll, you can use your own IsNotDeadCodeAttribute and adapt this rule.
!m.HasAttribute("NDepend.Attributes.IsNotDeadCodeAttribute".AllowNoMatch()))
// Get methods unused
let methodsUnused =
from m in JustMyCode.Methods where
m.NbMethodsCallingMe == 0 &&
canMethodBeConsideredAsDeadProc(m)
select m
// Dead methods = methods used only by unused methods (recursive)
let deadMethodsMetric = methodsUnused.FillIterative(
methods => // Unique loop, just to let a chance to build the hashset.
from o in (new object()).ToEnumerable()
// Use a hashet to make Intersect calls much faster!
let hashset = methods.ToHashSet()
from m in codeBase.Application.Methods.UsedByAny(methods).Except(methods)
where canMethodBeConsideredAsDeadProc(m) &&
// Select methods called only by methods already considered as dead
hashset.Intersect(m.MethodsCallingMe).Count() == m.NbMethodsCallingMe
select m)
from m in JustMyCode.Methods.Intersect(deadMethodsMetric.DefinitionDomain)
select new { m, m.MethodsCallingMe, depth = deadMethodsMetric[m] }
warnif count > 0
// Filter procedure for methods that should'nt be considered as dead
let canMethodBeConsideredAsDeadProc = new Func<IMethod, bool>(
m => !m.IsPubliclyVisible && // Public methods might be used by client applications of your assemblies.
!m.IsEntryPoint && // Main() method is not used by-design.
!m.IsExplicitInterfaceImpl && // The IL code never explicitely calls explicit interface methods implementation.
!m.IsClassConstructor && // The IL code never explicitely calls class constructors.
!m.IsFinalizer && // The IL code never explicitely calls finalizers.
!m.IsVirtual && // Only check for non virtual method that are not seen as used in IL.
!(m.IsConstructor && // Don't take account of protected ctor that might be call by a derived ctors.
m.IsProtected) &&
!m.IsEventAdder && // The IL code never explicitely calls events adder/remover.
!m.IsEventRemover &&
!m.IsGeneratedByCompiler &&
!m.ParentType.IsDelegate &&
// Methods tagged with these two attributes are called by the serialization infrastructure.
!m.HasAttribute("System.Runtime.Serialization.OnSerializingAttribute".AllowNoMatch()) &&
!m.HasAttribute("System.Runtime.Serialization.OnDeserializedAttribute".AllowNoMatch()) &&
// If you don't want to link NDepend.API.dll, you can use your own IsNotDeadCodeAttribute and adapt this rule.
!m.HasAttribute("NDepend.Attributes.IsNotDeadCodeAttribute".AllowNoMatch()))
// Get methods unused
let methodsUnused =
from m in JustMyCode.Methods where
m.NbMethodsCallingMe == 0 &&
canMethodBeConsideredAsDeadProc(m)
select m
// Dead methods = methods used only by unused methods (recursive)
let deadMethodsMetric = methodsUnused.FillIterative(
methods => // Unique loop, just to let a chance to build the hashset.
from o in (new object()).ToEnumerable()
// Use a hashet to make Intersect calls much faster!
let hashset = methods.ToHashSet()
from m in codeBase.Application.Methods.UsedByAny(methods).Except(methods)
where canMethodBeConsideredAsDeadProc(m) &&
// Select methods called only by methods already considered as dead
hashset.Intersect(m.MethodsCallingMe).Count() == m.NbMethodsCallingMe
select m)
from m in JustMyCode.Methods.Intersect(deadMethodsMetric.DefinitionDomain)
select new { m, m.MethodsCallingMe, depth = deadMethodsMetric[m] }
44 methods matched
| methods | MethodsCallingMe | depth | Full Name |
|---|---|---|---|
| methods | MethodsCallingMe | depth | Full Name |
| .ctor() | 0 method | 0 | ThoughtWorks.CruiseControl.Remote.QueueSnapshotList..ctor() |
| .ctor() | 0 method | 0 | ThoughtWorks.CruiseControl.Core.LogFileUtil..ctor() |
| get_Expiry() | 0 method | 0 | ThoughtWorks.CruiseControl.Core.CruiseServerClient+SecureConnection .get_Expiry() |
| .ctor() | 0 method | 0 | ThoughtWorks.CruiseControl.Core.Util.ReflectionUtil..ctor() |
| .ctor() | 0 method | 0 | ThoughtWorks.CruiseControl.Core.Util.KillUtil..ctor() |
| .ctor() | 0 method | 0 | ThoughtWorks.CruiseControl.Core.Util.Log4NetTrace.TraceLogManager. .ctor() |
| .ctor() | 0 method | 0 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VSSParserFactory..ctor() |
| GetModificationsFlowGetFullLog(String) | 0 method | 0 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mercurial.Mercurial .GetModificationsFlowGetFullLog(String) |
| AddToFileset(Uri) | 1 method | 1 | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.AddToFileset(Uri) |
| define_text_constant(String,String) | 0 method | 0 | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.define_text_constant(String,String) |
| define_nodeset_constant(String,XPathNodeIterator) | 0 method | 0 | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.define_nodeset_constant(String ,XPathNodeIterator) |
| eval_text_constants(String) | 0 method | 0 | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.eval_text_constants(String) |
| eval_constant(String) | 0 method | 0 | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.eval_constant(String) |
| unwind_eval_stack() | 0 method | 0 | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.unwind_eval_stack() |
| push_stack() | 0 method | 0 | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.push_stack() |
| pop_stack() | 0 method | 0 | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.pop_stack() |
| push_include(String) | 0 method | 0 | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.push_include(String) |
| pop_include() | 0 method | 0 | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.pop_include() |
| _SetConstant(Constant) | 2 methods | 1 | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment._SetConstant(Constant) |
| _IsDefinedInCurrentFrame(String) | 1 method | 2 | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment._IsDefinedInCurrentFrame(String) |
| _CheckAlreadyDefined(String) | 2 methods | 1 | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment._CheckAlreadyDefined(String) |
| CreateException(String,Object[]) | 0 method | 0 | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .DefinitionException.CreateException(String,Object[]) |
| CreateWriter(String) | 0 method | 0 | ThoughtWorks.CruiseControl.Core.Config.Preprocessor.Utils.CreateWriter (String) |
| TransformToDocument(XmlReader,XslCompiledTransform,XsltArgumentList ,XmlResolver) | 0 method | 0 | ThoughtWorks.CruiseControl.Core.Config.Preprocessor.Utils .TransformToDocument(XmlReader,XslCompiledTransform,XsltArgumentList ,XmlResolver) |
| GetAssemblyResourceStream(Type,String) | 0 method | 0 | ThoughtWorks.CruiseControl.Core.Config.Preprocessor.Utils .GetAssemblyResourceStream(Type,String) |
| .ctor() | 0 method | 0 | ThoughtWorks.CruiseControl.Core.Config.Preprocessor.Utils..ctor() |
| get_Uri() | 0 method | 0 | ThoughtWorks.CruiseControl.Core.Config.Preprocessor.UrlResolvedArgs .get_Uri() |
| .ctor() | 0 method | 0 | ThoughtWorks.CruiseControl.Core.Publishers .XmlIntegrationResultWriter+Elements..ctor() |
| ChartGenerator(List<StatisticBase>) | 0 method | 0 | ThoughtWorks.CruiseControl.Core.Publishers.Statistics .StatisticsPublisher.ChartGenerator(List<StatisticBase>) |
| Save(TextWriter) | 0 method | 0 | ThoughtWorks.CruiseControl.Core.Publishers.Statistics .StatisticsResults.Save(TextWriter) |
| HasExtension(String) | 0 method | 0 | ThoughtWorks.CruiseControl.WebDashboard.MVC.MimeType.HasExtension (String) |
| .ctor() | 0 method | 0 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.RSSLinkBuilder..ctor () |
| set_OnlyShowBuildsWithModifications(Boolean) | 0 method | 0 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.ProjectReport .ModificationHistoryProjectPlugin.set_OnlyShowBuildsWithModifications (Boolean) |
| .ctor(IFarmService,IPhysicalApplicationPathProvider) | 0 method | 0 | ThoughtWorks.CruiseControl.WebDashboard.Plugins.ProjectReport .ModificationHistoryProjectPlugin..ctor(IFarmService ,IPhysicalApplicationPathProvider) |
| .ctor() | 0 method | 0 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .MainForm+ListViewItemComparer..ctor() |
| .ctor(Int32) | 0 method | 0 | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .MainForm+ListViewItemComparer..ctor(Int32) |
| .ctor() | 0 method | 0 | ThoughtWorks.CruiseControl.CCTrayLib.X10.Cm11Message..ctor() |
| set_TransmissionRetries(Int32) | 0 method | 0 | ThoughtWorks.CruiseControl.CCTrayLib.X10 .Cm11LowLevelDriver+Cm11LowLevelDriverWorker.set_TransmissionRetries (Int32) |
| get_Filename() | 0 method | 0 | Validator.ConfigurationHierarchy+ConfigurationDetails.get_Filename() |
| get_Size() | 0 method | 0 | Validator.ConfigurationHierarchy+ConfigurationDetails.get_Size() |
| get_LastModified() | 0 method | 0 | Validator.ConfigurationHierarchy+ConfigurationDetails.get_LastModified () |
| .ctor() | 0 method | 0 | ThoughtWorks.CruiseControl.CCCmd.Program..ctor() |
| .ctor() | 0 method | 0 | ThoughtWorks.CruiseControl.MSBuild.XmlLogger+XmlLoggerElements..ctor() |
| .ctor() | 0 method | 0 | ThoughtWorks.CruiseControl.MSBuild.XmlLogger+XmlLoggerAttributes..ctor () |
Statistics
| Stat | MethodsCallingMe | depth |
|---|---|---|
| Sum: | 0 | 5 |
| Average: | 0 | 0.11364 |
| Minimum: | 0 | 0 |
| Maximum: | 0 | 2 |
| Standard deviation: | 0 | 0.38233 |
| Variance: | 0 | 0.14618 |
| Visibility |
|
|
| Rule warning: Methods that could have a lower visibility |
// <Name>Methods that could have a lower visibility</Name>
warnif count > 0 from m in JustMyCode.Methods where
m.Visibility != m.OptimalVisibility &&
!m.HasAttribute("NDepend.Attributes.CannotDecreaseVisibilityAttribute".AllowNoMatch()) &&
!m.HasAttribute("NDepend.Attributes.IsNotDeadCodeAttribute".AllowNoMatch()) &&
// If you don't want to link NDepend.API.dll, you can use your own attributes and adapt this rule.
// Eliminate default constructor from the result.
// Whatever the visibility of the declaring class,
// default constructors are public and introduce noise
// in the current rule.
!( m.IsConstructor && m.IsPublic && m.NbParameters == 0) &&
// Don't decrease the visibility of Main() methods.
!m.IsEntryPoint
select new { m,
m.Visibility ,
CouldBeDeclared = m.OptimalVisibility,
m.MethodsCallingMe }
warnif count > 0 from m in JustMyCode.Methods where
m.Visibility != m.OptimalVisibility &&
!m.HasAttribute("NDepend.Attributes.CannotDecreaseVisibilityAttribute".AllowNoMatch()) &&
!m.HasAttribute("NDepend.Attributes.IsNotDeadCodeAttribute".AllowNoMatch()) &&
// If you don't want to link NDepend.API.dll, you can use your own attributes and adapt this rule.
// Eliminate default constructor from the result.
// Whatever the visibility of the declaring class,
// default constructors are public and introduce noise
// in the current rule.
!( m.IsConstructor && m.IsPublic && m.NbParameters == 0) &&
// Don't decrease the visibility of Main() methods.
!m.IsEntryPoint
select new { m,
m.Visibility ,
CouldBeDeclared = m.OptimalVisibility,
m.MethodsCallingMe }
2,368 methods matched
The following list of methods is truncated and contains only the first 100 methods of the 2368 methods matched. All matched methods could be listed in the report by unchecking the option:
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched methods.
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched methods.
| methods | Visibility | CouldBeDeclared | MethodsCallingMe | Full Name |
|---|---|---|---|---|
| methods | Visibility | CouldBeDeclared | MethodsCallingMe | Full Name |
| .ctor(String) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Core.SessionInvalidException..ctor(String) |
| .ctor(String,Exception) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Core.SessionInvalidException..ctor(String ,Exception) |
| .ctor(SerializationInfo,StreamingContext) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Core.SessionInvalidException..ctor (SerializationInfo,StreamingContext) |
| .ctor(String,String) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Core.PermissionDeniedException..ctor(String ,String) |
| .ctor(String,String,Exception) | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.PermissionDeniedException..ctor(String ,String,Exception) |
| .ctor(SerializationInfo,StreamingContext) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Core.PermissionDeniedException..ctor (SerializationInfo,StreamingContext) |
| get_Permission() | Public | Private | 0 method | ThoughtWorks.CruiseControl.Core.PermissionDeniedException .get_Permission() |
| .ctor(String,String) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Core.BadReferenceException..ctor(String ,String) |
| .ctor(String,String,Exception) | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.BadReferenceException..ctor(String ,String,Exception) |
| .ctor(SerializationInfo,StreamingContext) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Core.BadReferenceException..ctor (SerializationInfo,StreamingContext) |
| get_Reference() | Public | Private | 0 method | ThoughtWorks.CruiseControl.Core.BadReferenceException.get_Reference() |
| .ctor(DateTime) | Public | Internal | 5 methods | ThoughtWorks.CruiseControl.Remote.SerializableDateTime..ctor(DateTime) |
| get_DateTime() | Public | Internal | 2 methods | ThoughtWorks.CruiseControl.Remote.SerializableDateTime.get_DateTime() |
| .ctor(String,IntegrationStatus,DateTime) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.ProjectStatus..ctor(String ,IntegrationStatus,DateTime) |
| set_BuildStage(String) | Public | Internal | 1 method | ThoughtWorks.CruiseControl.Remote.ProjectStatus.set_BuildStage(String) |
| set_Status(ProjectIntegratorState) | Public | Internal | 1 method | ThoughtWorks.CruiseControl.Remote.ProjectStatus.set_Status (ProjectIntegratorState) |
| set_BuildStatus(IntegrationStatus) | Public | Internal | 1 method | ThoughtWorks.CruiseControl.Remote.ProjectStatus.set_BuildStatus (IntegrationStatus) |
| set_Activity(ProjectActivity) | Public | Internal | 1 method | ThoughtWorks.CruiseControl.Remote.ProjectStatus.set_Activity (ProjectActivity) |
| set_Name(String) | Public | Internal | 1 method | ThoughtWorks.CruiseControl.Remote.ProjectStatus.set_Name(String) |
| get_Description() | Public | Internal | 2 methods | ThoughtWorks.CruiseControl.Remote.ProjectStatus.get_Description() |
| set_Category(String) | Public | Internal | 1 method | ThoughtWorks.CruiseControl.Remote.ProjectStatus.set_Category(String) |
| set_Queue(String) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.ProjectStatus.set_Queue(String) |
| set_QueuePriority(Int32) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.ProjectStatus.set_QueuePriority (Int32) |
| set_WebURL(String) | Public | Internal | 1 method | ThoughtWorks.CruiseControl.Remote.ProjectStatus.set_WebURL(String) |
| set_LastBuildDate(DateTime) | Public | Internal | 1 method | ThoughtWorks.CruiseControl.Remote.ProjectStatus.set_LastBuildDate (DateTime) |
| set_LastBuildLabel(String) | Public | Internal | 1 method | ThoughtWorks.CruiseControl.Remote.ProjectStatus.set_LastBuildLabel (String) |
| set_LastSuccessfulBuildLabel(String) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.ProjectStatus .set_LastSuccessfulBuildLabel(String) |
| set_NextBuildTime(DateTime) | Public | Internal | 1 method | ThoughtWorks.CruiseControl.Remote.ProjectStatus.set_NextBuildTime (DateTime) |
| set_QueueSetSnapshot(QueueSetSnapshot) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.CruiseServerSnapshot .set_QueueSetSnapshot(QueueSetSnapshot) |
| GetProjectStatus(String) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.CruiseServerSnapshot .GetProjectStatus(String) |
| .ctor(String) | Public | Internal | 2 methods | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient..ctor (String) |
| get_Type() | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.ProjectActivity.get_Type() |
| set_Type(String) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.ProjectActivity.set_Type(String) |
| IsCheckingModifications() | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.ProjectActivity .IsCheckingModifications() |
| .ctor(ReflectorMember,ReflectorPropertyAttribute,Boolean) | Public | Internal | 2 methods | ThoughtWorks.CruiseControl.Remote.NameValuePairSerialiser..ctor (ReflectorMember,ReflectorPropertyAttribute,Boolean) |
| get_Connection() | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.get_Connection() |
| FindByName(String) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.QueueSetSnapshot.FindByName(String) |
| ProcessResponse(String) | Public | Internal | 3 methods | ThoughtWorks.CruiseControl.Remote.XmlConversionUtil.ProcessResponse (String) |
| FindMessageType(String) | Public | Internal | 3 methods | ThoughtWorks.CruiseControl.Remote.XmlConversionUtil.FindMessageType (String) |
| ConvertXmlToObject(Type,String) | Public | Internal | 3 methods | ThoughtWorks.CruiseControl.Remote.XmlConversionUtil.ConvertXmlToObject (Type,String) |
| ConvertXmlToRequest(String) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.XmlConversionUtil .ConvertXmlToRequest(String) |
| set_QueueName(String) | Public | Internal | 1 method | ThoughtWorks.CruiseControl.Remote.QueueSnapshot.set_QueueName(String) |
| .ctor(String) | Public | Internal | 2 methods | ThoughtWorks.CruiseControl.Remote.RemotingConnection..ctor(String) |
| .ctor(Uri) | Public | Private | 1 method | ThoughtWorks.CruiseControl.Remote.RemotingConnection..ctor(Uri) |
| .ctor(String,String) | Public | Private | 1 method | ThoughtWorks.CruiseControl.Remote.ExternalLink..ctor(String,String) |
| get_Name() | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.ExternalLink.get_Name() |
| set_Name(String) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.ExternalLink.set_Name(String) |
| get_Url() | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.ExternalLink.get_Url() |
| set_Url(String) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.ExternalLink.set_Url(String) |
| .ctor(String,Exception) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.NoSuchProjectException..ctor(String ,Exception) |
| .ctor(SerializationInfo,StreamingContext) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.NoSuchProjectException..ctor (SerializationInfo,StreamingContext) |
| get_RequestedProject() | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.NoSuchProjectException .get_RequestedProject() |
| get_UseClientCaching() | Public | Private | 3 methods | ThoughtWorks.CruiseControl.Remote.CruiseServerClientFactory .get_UseClientCaching() |
| set_UseClientCaching(Boolean) | Public | Private | 1 method | ThoughtWorks.CruiseControl.Remote.CruiseServerClientFactory .set_UseClientCaching(Boolean) |
| InitialiseDefaultHttpClient() | Public | Private | 1 method | ThoughtWorks.CruiseControl.Remote.CruiseServerClientFactory .InitialiseDefaultHttpClient() |
| InitialiseDefaultTcpClient() | Public | Private | 1 method | ThoughtWorks.CruiseControl.Remote.CruiseServerClientFactory .InitialiseDefaultTcpClient() |
| BuildUpConnection(IServerConnection,ClientStartUpSettings) | Public | Private | 4 methods | ThoughtWorks.CruiseControl.Remote.CruiseServerClientFactory .BuildUpConnection(IServerConnection,ClientStartUpSettings) |
| set_ProjectName(String) | Public | Internal | 1 method | ThoughtWorks.CruiseControl.Remote.QueuedRequestSnapshot .set_ProjectName(String) |
| set_Activity(ProjectActivity) | Public | Internal | 1 method | ThoughtWorks.CruiseControl.Remote.QueuedRequestSnapshot.set_Activity (ProjectActivity) |
| get_RequestTime() | Public | Internal | 2 methods | ThoughtWorks.CruiseControl.Remote.QueuedRequestSnapshot .get_RequestTime() |
| set_RequestTime(DateTime) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.QueuedRequestSnapshot .set_RequestTime(DateTime) |
| .ctor(String,CommunicationsMessage) | Public | Internal | 4 methods | ThoughtWorks.CruiseControl.Remote.CommunicationsEventArgs..ctor(String ,CommunicationsMessage) |
| get_Message() | Public | Internal | 2 methods | ThoughtWorks.CruiseControl.Remote.CommunicationsEventArgs.get_Message( ) |
| get_Action() | Public | Internal | 2 methods | ThoughtWorks.CruiseControl.Remote.CommunicationsEventArgs.get_Action() |
| .ctor(String) | Public | Internal | 2 methods | ThoughtWorks.CruiseControl.Remote.HttpConnection..ctor(String) |
| .ctor(Uri) | Public | Private | 1 method | ThoughtWorks.CruiseControl.Remote.HttpConnection..ctor(Uri) |
| .ctor(IServerConnection) | Public | Internal | 1 method | ThoughtWorks.CruiseControl.Remote.EncryptingConnection..ctor (IServerConnection) |
| set_Text(String) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.Message.set_Text(String) |
| set_Kind(Message+MessageKind) | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Remote.Message.set_Kind(Message+MessageKind ) |
| get_Response() | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.MessageReceivedEventArgs .get_Response() |
| get_BackwardsCompatable() | Public | Internal | 4 methods | ThoughtWorks.CruiseControl.Remote.ClientStartUpSettings .get_BackwardsCompatable() |
| get_UseEncryption() | Public | Internal | 1 method | ThoughtWorks.CruiseControl.Remote.ClientStartUpSettings .get_UseEncryption() |
| get_FetchVersionOnStartUp() | Public | Internal | 3 methods | ThoughtWorks.CruiseControl.Remote.ClientStartUpSettings .get_FetchVersionOnStartUp() |
| set_FetchVersionOnStartUp(Boolean) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.ClientStartUpSettings .set_FetchVersionOnStartUp(Boolean) |
| .ctor(String) | Public | Internal | 2 methods | ThoughtWorks.CruiseControl.Remote.CruiseServerHttpClient..ctor(String) |
| .ctor(String,WebClient) | Public | Private | 1 method | ThoughtWorks.CruiseControl.Remote.CruiseServerHttpClient..ctor(String ,WebClient) |
| .ctor(String) | Public | Internal | 6 methods | ThoughtWorks.CruiseControl.Remote.CommunicationsException..ctor(String ) |
| .ctor(String,Exception) | Public | Internal | 4 methods | ThoughtWorks.CruiseControl.Remote.CommunicationsException..ctor(String ,Exception) |
| .ctor(String,String) | Public | Internal | 1 method | ThoughtWorks.CruiseControl.Remote.CommunicationsException..ctor(String ,String) |
| .ctor(String,Exception,String) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.CommunicationsException..ctor(String ,Exception,String) |
| .ctor(SerializationInfo,StreamingContext) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.CommunicationsException..ctor (SerializationInfo,StreamingContext) |
| set_FileName(String) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.PackageDetails.set_FileName(String) |
| set_TimeOfSnapshot(DateTime) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.ProjectStatusSnapshot .set_TimeOfSnapshot(DateTime) |
| set_Name(String) | Public | Internal | 1 method | ThoughtWorks.CruiseControl.Remote.NameValuePair.set_Name(String) |
| set_Value(String) | Public | Internal | 1 method | ThoughtWorks.CruiseControl.Remote.NameValuePair.set_Value(String) |
| get_Permission() | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.Security.SecurityCheckDiagnostics .get_Permission() |
| get_Project() | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.Security.SecurityCheckDiagnostics .get_Project() |
| get_User() | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.Security.SecurityCheckDiagnostics .get_User() |
| get_IsAllowed() | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.Security.SecurityCheckDiagnostics .get_IsAllowed() |
| .ctor(String) | Public | Internal | 1 method | ThoughtWorks.CruiseControl.Remote.Security.ProjectAuditFilter..ctor (String) |
| get_ProjectName() | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.Security.ProjectAuditFilter .get_ProjectName() |
| set_ProjectName(String) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.Security.ProjectAuditFilter .set_ProjectName(String) |
| .ctor(String,AuditFilterBase) | Public | Internal | 2 methods | ThoughtWorks.CruiseControl.Remote.Security.ProjectAuditFilter..ctor (String,AuditFilterBase) |
| .ctor(DateTime,DateTime) | Public | Internal | 1 method | ThoughtWorks.CruiseControl.Remote.Security.DateRangeAuditFilter..ctor (DateTime,DateTime) |
| .ctor(DateTime,DateTime,AuditFilterBase) | Public | Internal | 2 methods | ThoughtWorks.CruiseControl.Remote.Security.DateRangeAuditFilter..ctor (DateTime,DateTime,AuditFilterBase) |
| get_StartDate() | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.Security.DateRangeAuditFilter .get_StartDate() |
| set_StartDate(DateTime) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.Security.DateRangeAuditFilter .set_StartDate(DateTime) |
| get_EndDate() | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.Security.DateRangeAuditFilter .get_EndDate() |
| set_EndDate(DateTime) | Public | Private | 0 method | ThoughtWorks.CruiseControl.Remote.Security.DateRangeAuditFilter .set_EndDate(DateTime) |
| .ctor(SecurityEvent) | Public | Internal | 1 method | ThoughtWorks.CruiseControl.Remote.Security.EventTypeAuditFilter..ctor (SecurityEvent) |
Statistics
| Stat | Visibility | CouldBeDeclared | MethodsCallingMe |
|---|---|---|---|
| Sum: | 0 | 0 | 0 |
| Average: | 0 | 0 | 0 |
| Minimum: | 0 | 0 | 0 |
| Maximum: | 0 | 0 | 0 |
| Standard deviation: | 0 | 0 | 0 |
| Variance: | 0 | 0 | 0 |
| Rule warning: Types that could have a lower visibility |
// <Name>Types that could have a lower visibility</Name>
warnif count > 0 from t in JustMyCode.Types where
t.Visibility != t.OptimalVisibility &&
!t.HasAttribute("NDepend.Attributes.CannotDecreaseVisibilityAttribute".AllowNoMatch()) &&
!t.HasAttribute("NDepend.Attributes.IsNotDeadCodeAttribute".AllowNoMatch())
// If you don't want to link NDepend.API.dll, you can use your own attributes and adapt this rule.
select new { t, t.Visibility ,
CouldBeDeclared = t.OptimalVisibility,
t.TypesUsingMe }
warnif count > 0 from t in JustMyCode.Types where
t.Visibility != t.OptimalVisibility &&
!t.HasAttribute("NDepend.Attributes.CannotDecreaseVisibilityAttribute".AllowNoMatch()) &&
!t.HasAttribute("NDepend.Attributes.IsNotDeadCodeAttribute".AllowNoMatch())
// If you don't want to link NDepend.API.dll, you can use your own attributes and adapt this rule.
select new { t, t.Visibility ,
CouldBeDeclared = t.OptimalVisibility,
t.TypesUsingMe }
736 types matched
The following list of types is truncated and contains only the first 100 types of the 736 types matched. All matched types could be listed in the report by unchecking the option:
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched types.
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched types.
| types | Visibility | CouldBeDeclared | TypesUsingMe | Full Name |
|---|---|---|---|---|
| types | Visibility | CouldBeDeclared | TypesUsingMe | Full Name |
| SerializableDateTime | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Remote.SerializableDateTime |
| NameValuePairSerialiserFactory | Public | Internal | 0 type | ThoughtWorks.CruiseControl.Remote.NameValuePairSerialiserFactory |
| CruiseServerRemotingClient | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient |
| NameValuePairSerialiser | Public | Internal | 2 types | ThoughtWorks.CruiseControl.Remote.NameValuePairSerialiser |
| XmlConversionUtil | Public | Internal | 4 types | ThoughtWorks.CruiseControl.Remote.XmlConversionUtil |
| ProjectConfiguration | Public | Internal | 0 type | ThoughtWorks.CruiseControl.Remote.ProjectConfiguration |
| RemotingConnection | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Remote.RemotingConnection |
| QueuedRequestSnapshotList | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Remote.QueuedRequestSnapshotList |
| CommunicationsEventArgs | Public | Internal | 4 types | ThoughtWorks.CruiseControl.Remote.CommunicationsEventArgs |
| HttpConnection | Public | Internal | 2 types | ThoughtWorks.CruiseControl.Remote.HttpConnection |
| EncryptingConnection | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Remote.EncryptingConnection |
| CruiseServerHttpClient | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Remote.CruiseServerHttpClient |
| NameValuePairListSerialiserFactory | Public | Internal | 0 type | ThoughtWorks.CruiseControl.Remote.NameValuePairListSerialiserFactory |
| ISecurityCredentials | Public | Internal | 0 type | ThoughtWorks.CruiseControl.Remote.Security.ISecurityCredentials |
| ProjectAuditFilter | Public | Internal | 2 types | ThoughtWorks.CruiseControl.Remote.Security.ProjectAuditFilter |
| DateRangeAuditFilter | Public | Internal | 2 types | ThoughtWorks.CruiseControl.Remote.Security.DateRangeAuditFilter |
| EventTypeAuditFilter | Public | Internal | 2 types | ThoughtWorks.CruiseControl.Remote.Security.EventTypeAuditFilter |
| UserAuditFilter | Public | Internal | 2 types | ThoughtWorks.CruiseControl.Remote.Security.UserAuditFilter |
| SecurityRightAuditFilter | Public | Internal | 2 types | ThoughtWorks.CruiseControl.Remote.Security.SecurityRightAuditFilter |
| CombinationAuditFilter | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Remote.Security.CombinationAuditFilter |
| ProjectBuild | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Remote.Monitor.ProjectBuild |
| DataBag | Public | Internal | 3 types | ThoughtWorks.CruiseControl.Remote.Monitor.DataBag |
| BuildQueueChangedArgs | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Remote.Monitor.BuildQueueChangedArgs |
| ServerUpdateArgs | Public | Internal | 4 types | ThoughtWorks.CruiseControl.Remote.Monitor.ServerUpdateArgs |
| IServerWatcher | Public | Internal | 3 types | ThoughtWorks.CruiseControl.Remote.Monitor.IServerWatcher |
| ManualServerWatcher | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Remote.Monitor.ManualServerWatcher |
| BuildQueueRequest | Public | Internal | 2 types | ThoughtWorks.CruiseControl.Remote.Monitor.BuildQueueRequest |
| BuildQueue | Public | Internal | 4 types | ThoughtWorks.CruiseControl.Remote.Monitor.BuildQueue |
| BuildQueueRequestChangedArgs | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Remote.Monitor.BuildQueueRequestChangedArgs |
| Server | Public | Internal | 4 types | ThoughtWorks.CruiseControl.Remote.Monitor.Server |
| ProjectChangedArgs | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Remote.Monitor.ProjectChangedArgs |
| Project | Public | Internal | 7 types | ThoughtWorks.CruiseControl.Remote.Monitor.Project |
| PollingServerWatcher | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Remote.Monitor.PollingServerWatcher |
| BooleanParameter | Public | Internal | 0 type | ThoughtWorks.CruiseControl.Remote.Parameters.BooleanParameter |
| SelectParameter | Public | Internal | 0 type | ThoughtWorks.CruiseControl.Remote.Parameters.SelectParameter |
| DateParameter | Public | Internal | 0 type | ThoughtWorks.CruiseControl.Remote.Parameters.DateParameter |
| NumericParameter | Public | Internal | 0 type | ThoughtWorks.CruiseControl.Remote.Parameters.NumericParameter |
| OptionValueCollection | Public | Internal | 8 types | ThoughtWorks.CruiseControl.Remote.Mono.OptionValueCollection |
| OptionContext | Public | Internal | 6 types | ThoughtWorks.CruiseControl.Remote.Mono.OptionContext |
| Option | Public | Internal | 6 types | ThoughtWorks.CruiseControl.Remote.Mono.Option |
| ObjectionType | Public | Internal | 2 types | Objection.ObjectionType |
| LoadedTypeList | Public | Internal | 1 type | Objection.LoadedTypeList |
| ObjectionObject | Public | Internal | 1 type | Objection.ObjectionObject |
| IModificationUrlBuilder | Public | Internal | 14 types | ThoughtWorks.CruiseControl.Core.IModificationUrlBuilder |
| IParamatisedItem | Public | Internal | 75 types | ThoughtWorks.CruiseControl.Core.IParamatisedItem |
| IStatusSnapshotGenerator | Public | Internal | 40 types | ThoughtWorks.CruiseControl.Core.IStatusSnapshotGenerator |
| IStatusItem | Public | Internal | 38 types | ThoughtWorks.CruiseControl.Core.IStatusItem |
| MultipleIntegrationFailureException | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Core.MultipleIntegrationFailureException |
| IIntegratable | Public | Internal | 5 types | ThoughtWorks.CruiseControl.Core.IIntegratable |
| Workflow | Public | Internal | 0 type | ThoughtWorks.CruiseControl.Core.Workflow |
| LogFileUtil | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Core.LogFileUtil |
| ILabeller | Public | Internal | 10 types | ThoughtWorks.CruiseControl.Core.ILabeller |
| ITaskResult | Public | Internal | 26 types | ThoughtWorks.CruiseControl.Core.ITaskResult |
| IIntegrationResultManager | Public | Internal | 3 types | ThoughtWorks.CruiseControl.Core.IIntegrationResultManager |
| IntegrationResultManager | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Core.IntegrationResultManager |
| ProjectList | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Core.ProjectList |
| IntegrationRunner | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Core.IntegrationRunner |
| IIntegrationResult | Public | Internal | 107 types | ThoughtWorks.CruiseControl.Core.IIntegrationResult |
| WorkflowResult | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Core.WorkflowResult |
| IProjectIntegratorListFactory | Public | Internal | 6 types | ThoughtWorks.CruiseControl.Core.IProjectIntegratorListFactory |
| IIntegrationRepository | Public | Internal | 9 types | ThoughtWorks.CruiseControl.Core.IIntegrationRepository |
| ProjectIntegratorListFactory | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Core.ProjectIntegratorListFactory |
| ITemporaryResult | Public | Internal | 2 types | ThoughtWorks.CruiseControl.Core.ITemporaryResult |
| CruiseServerClient | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Core.CruiseServerClient |
| CruiseControlRemotingException | Public | Internal | 0 type | ThoughtWorks.CruiseControl.Core.CruiseControlRemotingException |
| Modification | Public | Internal | 87 types | ThoughtWorks.CruiseControl.Core.Modification |
| IProjectIntegrator | Public | Internal | 24 types | ThoughtWorks.CruiseControl.Core.IProjectIntegrator |
| ProjectIntegrator | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Core.ProjectIntegrator |
| IIntegrationRunnerTarget | Public | Internal | 2 types | ThoughtWorks.CruiseControl.Core.IIntegrationRunnerTarget |
| IProjectIntegratorList | Public | Internal | 4 types | ThoughtWorks.CruiseControl.Core.IProjectIntegratorList |
| ProjectIntegratorList | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Core.ProjectIntegratorList |
| IntegrationQueueManager | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Core.IntegrationQueueManager |
| CruiseServer | Public | Internal | 33 types | ThoughtWorks.CruiseControl.Core.CruiseServer |
| ViewCVSUrlBuilder | Public | Internal | 0 type | ThoughtWorks.CruiseControl.Core.ViewCVSUrlBuilder |
| IMergeTask | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Core.IMergeTask |
| IParamatisedProject | Public | Internal | 2 types | ThoughtWorks.CruiseControl.Core.IParamatisedProject |
| IntegrationStatusParser | Public | Internal | 0 type | ThoughtWorks.CruiseControl.Core.IntegrationStatusParser |
| IClock | Public | Internal | 4 types | ThoughtWorks.CruiseControl.Core.IClock |
| SystemClock | Public | Internal | 2 types | ThoughtWorks.CruiseControl.Core.SystemClock |
| IntegrationPropertyNames | Public | Internal | 0 type | ThoughtWorks.CruiseControl.Core.IntegrationPropertyNames |
| CruiseManager | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Core.CruiseManager |
| IntegrationSummary | Public | Internal | 12 types | ThoughtWorks.CruiseControl.Core.IntegrationSummary |
| ConsoleEventHandler | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Core.ConsoleEventHandler |
| RemoteCruiseServer | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Core.RemoteCruiseServer |
| IProjectSerializer | Public | Internal | 6 types | ThoughtWorks.CruiseControl.Core.IProjectSerializer |
| NetReflectorProjectSerializer | Public | Internal | 2 types | ThoughtWorks.CruiseControl.Core.NetReflectorProjectSerializer |
| MergeFileSerialiserFactory | Public | Internal | 0 type | ThoughtWorks.CruiseControl.Core.Tasks.MergeFileSerialiserFactory |
| HttpStatusTask | Public | Internal | 0 type | ThoughtWorks.CruiseControl.Core.Tasks.HttpStatusTask |
| HttpStatusTask+HttpRequestStatus | Protected | Private | 1 type | ThoughtWorks.CruiseControl.Core.Tasks.HttpStatusTask+HttpRequestStatus |
| CoverageThreshold | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Core.Tasks.CoverageThreshold |
| GendarmeTask | Public | Internal | 0 type | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask |
| CruiseServerControlTask | Public | Internal | 0 type | ThoughtWorks.CruiseControl.Core.Tasks.CruiseServerControlTask |
| BuilderException | Public | Internal | 10 types | ThoughtWorks.CruiseControl.Core.Tasks.BuilderException |
| NUnitTask | Public | Internal | 0 type | ThoughtWorks.CruiseControl.Core.Tasks.NUnitTask |
| DataTaskResult | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Core.Tasks.DataTaskResult |
| CruiseServerControlTaskAction | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Core.Tasks.CruiseServerControlTaskAction |
| MergeFilesTask | Public | Internal | 1 type | ThoughtWorks.CruiseControl.Core.Tasks.MergeFilesTask |
| ExecutableTask | Public | Internal | 0 type | ThoughtWorks.CruiseControl.Core.Tasks.ExecutableTask |
| IDynamicValue | Public | Internal | 5 types | ThoughtWorks.CruiseControl.Core.Tasks.IDynamicValue |
| DirectDynamicValue | Public | Internal | 0 type | ThoughtWorks.CruiseControl.Core.Tasks.DirectDynamicValue |
Statistics
| Stat | Visibility | CouldBeDeclared | TypesUsingMe |
|---|---|---|---|
| Sum: | 0 | 0 | 0 |
| Average: | 0 | 0 | 0 |
| Minimum: | 0 | 0 | 0 |
| Maximum: | 0 | 0 | 0 |
| Standard deviation: | 0 | 0 | 0 |
| Variance: | 0 | 0 | 0 |
| Rule warning: Fields that could have a lower visibility |
// <Name>Fields that could have a lower visibility</Name>
warnif count > 0 from f in JustMyCode.Fields where
f.Visibility != f.OptimalVisibility &&
!f.HasAttribute("NDepend.Attributes.CannotDecreaseVisibilityAttribute".AllowNoMatch()) &&
!f.HasAttribute("NDepend.Attributes.IsNotDeadCodeAttribute".AllowNoMatch())
// If you don't want to link NDepend.API.dll, you can use your own attributes and adapt this rule.
select new { f,
f.Visibility ,
CouldBeDeclared = f.OptimalVisibility,
f.MethodsUsingMe }
warnif count > 0 from f in JustMyCode.Fields where
f.Visibility != f.OptimalVisibility &&
!f.HasAttribute("NDepend.Attributes.CannotDecreaseVisibilityAttribute".AllowNoMatch()) &&
!f.HasAttribute("NDepend.Attributes.IsNotDeadCodeAttribute".AllowNoMatch())
// If you don't want to link NDepend.API.dll, you can use your own attributes and adapt this rule.
select new { f,
f.Visibility ,
CouldBeDeclared = f.OptimalVisibility,
f.MethodsUsingMe }
582 fields matched
The following list of fields is truncated and contains only the first 100 fields of the 582 fields matched. All matched fields could be listed in the report by unchecking the option:
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched fields.
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched fields.
| fields | Visibility | CouldBeDeclared | MethodsUsingMe | Full Name |
|---|---|---|---|---|
| fields | Visibility | CouldBeDeclared | MethodsUsingMe | Full Name |
| Default | Public | Internal | 4 methods | ThoughtWorks.CruiseControl.Remote.SerializableDateTime.Default |
| BuildNumber | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.LogFile.BuildNumber |
| target | Public | Private | 5 methods | ThoughtWorks.CruiseControl.Core.IntegrationRunner.target |
| Type | Public | Internal | 31 methods | ThoughtWorks.CruiseControl.Core.Modification.Type |
| FileName | Public | Internal | 36 methods | ThoughtWorks.CruiseControl.Core.Modification.FileName |
| FolderName | Public | Internal | 37 methods | ThoughtWorks.CruiseControl.Core.Modification.FolderName |
| ModifiedTime | Public | Internal | 32 methods | ThoughtWorks.CruiseControl.Core.Modification.ModifiedTime |
| UserName | Public | Internal | 28 methods | ThoughtWorks.CruiseControl.Core.Modification.UserName |
| ChangeNumber | Public | Internal | 21 methods | ThoughtWorks.CruiseControl.Core.Modification.ChangeNumber |
| Version | Public | Internal | 15 methods | ThoughtWorks.CruiseControl.Core.Modification.Version |
| Comment | Public | Internal | 26 methods | ThoughtWorks.CruiseControl.Core.Modification.Comment |
| Url | Public | Internal | 8 methods | ThoughtWorks.CruiseControl.Core.Modification.Url |
| IssueUrl | Public | Internal | 4 methods | ThoughtWorks.CruiseControl.Core.Modification.IssueUrl |
| EmailAddress | Public | Internal | 8 methods | ThoughtWorks.CruiseControl.Core.Modification.EmailAddress |
| Initial | Public | Internal | 4 methods | ThoughtWorks.CruiseControl.Core.IntegrationSummary.Initial |
| Executable | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask.Executable |
| ConfiguredBaseDirectory | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask .ConfiguredBaseDirectory |
| Priority | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask.Priority |
| ConfigFile | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask.ConfigFile |
| RuleSet | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask.RuleSet |
| IgnoreFile | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask.IgnoreFile |
| Limit | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask.Limit |
| Severity | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask.Severity |
| Confidence | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask.Confidence |
| Quiet | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask.Quiet |
| Verbose | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask.Verbose |
| FailBuildOnFoundDefects | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask .FailBuildOnFoundDefects |
| Assemblies | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask.Assemblies |
| AssemblyListFile | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask.AssemblyListFile |
| VerifyTimeoutSeconds | Public | Private | 3 methods | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask .VerifyTimeoutSeconds |
| Assemblies | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.NUnitTask.Assemblies |
| NUnitPath | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.NUnitTask.NUnitPath |
| OutputFile | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.NUnitTask.OutputFile |
| Timeout | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.NUnitTask.Timeout |
| Priority | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.NUnitTask.Priority |
| ExcludedCategories | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.NUnitTask.ExcludedCategories |
| IncludedCategories | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.NUnitTask.IncludedCategories |
| MergeFiles | Public | Internal | 3 methods | ThoughtWorks.CruiseControl.Core.Tasks.MergeFilesTask.MergeFiles |
| Executable | Public | Private | 4 methods | ThoughtWorks.CruiseControl.Core.Tasks.ExecutableTask.Executable |
| Priority | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.ExecutableTask.Priority |
| ConfiguredBaseDirectory | Public | Private | 3 methods | ThoughtWorks.CruiseControl.Core.Tasks.ExecutableTask .ConfiguredBaseDirectory |
| BuildArgs | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.ExecutableTask.BuildArgs |
| EnvironmentVariables | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.ExecutableTask .EnvironmentVariables |
| BuildTimeoutSeconds | Public | Private | 3 methods | ThoughtWorks.CruiseControl.Core.Tasks.ExecutableTask .BuildTimeoutSeconds |
| DefaultScriptsDirectory | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.PowerShellTask .DefaultScriptsDirectory |
| Script | Public | Private | 1 method | ThoughtWorks.CruiseControl.Core.Tasks.PowerShellTask.Script |
| Priority | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.PowerShellTask.Priority |
| ConfiguredScriptsDirectory | Public | Private | 4 methods | ThoughtWorks.CruiseControl.Core.Tasks.PowerShellTask .ConfiguredScriptsDirectory |
| BuildArgs | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.PowerShellTask.BuildArgs |
| EnvironmentVariables | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.PowerShellTask .EnvironmentVariables |
| BuildTimeoutSeconds | Public | Private | 3 methods | ThoughtWorks.CruiseControl.Core.Tasks.PowerShellTask .BuildTimeoutSeconds |
| ProjectFile | Public | Private | 5 methods | ThoughtWorks.CruiseControl.Core.Tasks.FinalBuilderTask.ProjectFile |
| ShowBanner | Public | Private | 1 method | ThoughtWorks.CruiseControl.Core.Tasks.FinalBuilderTask.ShowBanner |
| FBVariables | Public | Private | 1 method | ThoughtWorks.CruiseControl.Core.Tasks.FinalBuilderTask.FBVariables |
| DontWriteToLog | Public | Private | 1 method | ThoughtWorks.CruiseControl.Core.Tasks.FinalBuilderTask.DontWriteToLog |
| UseTemporaryLogFile | Public | Private | 1 method | ThoughtWorks.CruiseControl.Core.Tasks.FinalBuilderTask .UseTemporaryLogFile |
| Timeout | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.FinalBuilderTask.Timeout |
| BuildArgs | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.RakeTask.BuildArgs |
| BaseDirectory | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.RakeTask.BaseDirectory |
| BuildTimeoutSeconds | Public | Private | 3 methods | ThoughtWorks.CruiseControl.Core.Tasks.RakeTask.BuildTimeoutSeconds |
| Quiet | Public | Private | 1 method | ThoughtWorks.CruiseControl.Core.Tasks.RakeTask.Quiet |
| Executable | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.RakeTask.Executable |
| Priority | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.RakeTask.Priority |
| Rakefile | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.RakeTask.Rakefile |
| Silent | Public | Private | 1 method | ThoughtWorks.CruiseControl.Core.Tasks.RakeTask.Silent |
| Targets | Public | Private | 4 methods | ThoughtWorks.CruiseControl.Core.Tasks.RakeTask.Targets |
| Trace | Public | Private | 1 method | ThoughtWorks.CruiseControl.Core.Tasks.RakeTask.Trace |
| Name | Public | Internal | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.DynamicValueUtility+PropertyPart .Name |
| KeyName | Public | Internal | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.DynamicValueUtility+PropertyPart .KeyName |
| KeyValue | Public | Internal | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.DynamicValueUtility+PropertyPart .KeyValue |
| Index | Public | Internal | 3 methods | ThoughtWorks.CruiseControl.Core.Tasks.DynamicValueUtility+PropertyPart .Index |
| LogFileId | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.NAntTask.LogFileId |
| Targets | Public | Private | 6 methods | ThoughtWorks.CruiseControl.Core.Tasks.NAntTask.Targets |
| Executable | Public | Private | 3 methods | ThoughtWorks.CruiseControl.Core.Tasks.NAntTask.Executable |
| Priority | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.NAntTask.Priority |
| BuildFile | Public | Private | 4 methods | ThoughtWorks.CruiseControl.Core.Tasks.NAntTask.BuildFile |
| ConfiguredBaseDirectory | Public | Private | 3 methods | ThoughtWorks.CruiseControl.Core.Tasks.NAntTask.ConfiguredBaseDirectory |
| BuildArgs | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.NAntTask.BuildArgs |
| Logger | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.NAntTask.Logger |
| Listener | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.NAntTask.Listener |
| NoLogo | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.NAntTask.NoLogo |
| BuildTimeoutSeconds | Public | Private | 3 methods | ThoughtWorks.CruiseControl.Core.Tasks.NAntTask.BuildTimeoutSeconds |
| Filename | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.ModificationReaderTask.Filename |
| OutputPath | Public | Private | 1 method | ThoughtWorks.CruiseControl.Core.Tasks.ModificationReaderTask .OutputPath |
| assemblies | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.NUnitArgument.assemblies |
| IncludedCategories | Public | Internal | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.NUnitArgument.IncludedCategories |
| ExcludedCategories | Public | Internal | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.NUnitArgument.ExcludedCategories |
| Priority | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.NCoverProfileTask.Priority |
| Priority | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.NCoverReportTask.Priority |
| Priority | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.DupFinderTask.Priority |
| SimulateFailure | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.NullTask.SimulateFailure |
| SimulateFailureMessage | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.NullTask.SimulateFailureMessage |
| Priority | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.NDependTask.Priority |
| LogFileId | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.MsBuildTask.LogFileId |
| Executable | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.MsBuildTask.Executable |
| WorkingDirectory | Public | Private | 1 method | ThoughtWorks.CruiseControl.Core.Tasks.MsBuildTask.WorkingDirectory |
| ProjectFile | Public | Private | 2 methods | ThoughtWorks.CruiseControl.Core.Tasks.MsBuildTask.ProjectFile |
| BuildArgs | Public | Private | 1 method | ThoughtWorks.CruiseControl.Core.Tasks.MsBuildTask.BuildArgs |
| Targets | Public | Private | 1 method | ThoughtWorks.CruiseControl.Core.Tasks.MsBuildTask.Targets |
| Logger | Public | Private | 1 method | ThoughtWorks.CruiseControl.Core.Tasks.MsBuildTask.Logger |
Statistics
| Stat | Visibility | CouldBeDeclared | MethodsUsingMe |
|---|---|---|---|
| Sum: | 0 | 0 | 0 |
| Average: | 0 | 0 | 0 |
| Minimum: | 0 | 0 | 0 |
| Maximum: | 0 | 0 | 0 |
| Standard deviation: | 0 | 0 | 0 |
| Variance: | 0 | 0 | 0 |
| Rule warning: Fields should be declared as private |
// <Name>Fields should be declared as private</Name>
warnif count > 0 from f in Application.Fields where
!f.IsPrivate &&
// These conditions filter cases where fields
// doesn't represent state that should be encapsulated.
!f.IsGeneratedByCompiler &&
!f.IsSpecialName &&
!f.IsInitOnly &&
!f.IsLiteral &&
!f.IsEnumValue
select new { f, f.SizeOfInst }
warnif count > 0 from f in Application.Fields where
!f.IsPrivate &&
// These conditions filter cases where fields
// doesn't represent state that should be encapsulated.
!f.IsGeneratedByCompiler &&
!f.IsSpecialName &&
!f.IsInitOnly &&
!f.IsLiteral &&
!f.IsEnumValue
select new { f, f.SizeOfInst }
510 fields matched
The following list of fields is truncated and contains only the first 100 fields of the 510 fields matched. All matched fields could be listed in the report by unchecking the option:
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched fields.
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched fields.
| fields | Size of instance | Full Name |
|---|---|---|
| fields | Size of instance | Full Name |
| CheckingModifications | N/A | ThoughtWorks.CruiseControl.Remote.ProjectActivity .CheckingModifications |
| Building | N/A | ThoughtWorks.CruiseControl.Remote.ProjectActivity.Building |
| Sleeping | N/A | ThoughtWorks.CruiseControl.Remote.ProjectActivity.Sleeping |
| Pending | N/A | ThoughtWorks.CruiseControl.Remote.ProjectActivity.Pending |
| target | 4 | ThoughtWorks.CruiseControl.Core.IntegrationRunner.target |
| Type | 4 | ThoughtWorks.CruiseControl.Core.Modification.Type |
| FileName | 4 | ThoughtWorks.CruiseControl.Core.Modification.FileName |
| FolderName | 4 | ThoughtWorks.CruiseControl.Core.Modification.FolderName |
| ModifiedTime | 8 | ThoughtWorks.CruiseControl.Core.Modification.ModifiedTime |
| UserName | 4 | ThoughtWorks.CruiseControl.Core.Modification.UserName |
| ChangeNumber | 4 | ThoughtWorks.CruiseControl.Core.Modification.ChangeNumber |
| Version | 4 | ThoughtWorks.CruiseControl.Core.Modification.Version |
| Comment | 4 | ThoughtWorks.CruiseControl.Core.Modification.Comment |
| Url | 4 | ThoughtWorks.CruiseControl.Core.Modification.Url |
| IssueUrl | 4 | ThoughtWorks.CruiseControl.Core.Modification.IssueUrl |
| EmailAddress | 4 | ThoughtWorks.CruiseControl.Core.Modification.EmailAddress |
| PrebuildTasks | 4 | ThoughtWorks.CruiseControl.Core.Project.PrebuildTasks |
| executor | 4 | ThoughtWorks.CruiseControl.Core.Tasks.BaseExecutableTask.executor |
| buildProgressInformation | 4 | ThoughtWorks.CruiseControl.Core.Tasks.BaseExecutableTask .buildProgressInformation |
| Executable | 4 | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask.Executable |
| ConfiguredBaseDirectory | 4 | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask .ConfiguredBaseDirectory |
| Priority | 4 | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask.Priority |
| ConfigFile | 4 | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask.ConfigFile |
| RuleSet | 4 | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask.RuleSet |
| IgnoreFile | 4 | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask.IgnoreFile |
| Limit | 4 | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask.Limit |
| Severity | 4 | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask.Severity |
| Confidence | 4 | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask.Confidence |
| Quiet | 1 | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask.Quiet |
| Verbose | 1 | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask.Verbose |
| FailBuildOnFoundDefects | 1 | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask .FailBuildOnFoundDefects |
| Assemblies | 4 | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask.Assemblies |
| AssemblyListFile | 4 | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask.AssemblyListFile |
| VerifyTimeoutSeconds | 4 | ThoughtWorks.CruiseControl.Core.Tasks.GendarmeTask .VerifyTimeoutSeconds |
| Assemblies | 4 | ThoughtWorks.CruiseControl.Core.Tasks.NUnitTask.Assemblies |
| NUnitPath | 4 | ThoughtWorks.CruiseControl.Core.Tasks.NUnitTask.NUnitPath |
| OutputFile | 4 | ThoughtWorks.CruiseControl.Core.Tasks.NUnitTask.OutputFile |
| Timeout | 4 | ThoughtWorks.CruiseControl.Core.Tasks.NUnitTask.Timeout |
| Priority | 4 | ThoughtWorks.CruiseControl.Core.Tasks.NUnitTask.Priority |
| ExcludedCategories | 4 | ThoughtWorks.CruiseControl.Core.Tasks.NUnitTask.ExcludedCategories |
| IncludedCategories | 4 | ThoughtWorks.CruiseControl.Core.Tasks.NUnitTask.IncludedCategories |
| MergeFiles | 4 | ThoughtWorks.CruiseControl.Core.Tasks.MergeFilesTask.MergeFiles |
| Executable | 4 | ThoughtWorks.CruiseControl.Core.Tasks.ExecutableTask.Executable |
| Priority | 4 | ThoughtWorks.CruiseControl.Core.Tasks.ExecutableTask.Priority |
| ConfiguredBaseDirectory | 4 | ThoughtWorks.CruiseControl.Core.Tasks.ExecutableTask .ConfiguredBaseDirectory |
| BuildArgs | 4 | ThoughtWorks.CruiseControl.Core.Tasks.ExecutableTask.BuildArgs |
| EnvironmentVariables | 4 | ThoughtWorks.CruiseControl.Core.Tasks.ExecutableTask .EnvironmentVariables |
| BuildTimeoutSeconds | 4 | ThoughtWorks.CruiseControl.Core.Tasks.ExecutableTask .BuildTimeoutSeconds |
| DefaultScriptsDirectory | N/A | ThoughtWorks.CruiseControl.Core.Tasks.PowerShellTask .DefaultScriptsDirectory |
| Script | 4 | ThoughtWorks.CruiseControl.Core.Tasks.PowerShellTask.Script |
| Priority | 4 | ThoughtWorks.CruiseControl.Core.Tasks.PowerShellTask.Priority |
| ConfiguredScriptsDirectory | 4 | ThoughtWorks.CruiseControl.Core.Tasks.PowerShellTask .ConfiguredScriptsDirectory |
| BuildArgs | 4 | ThoughtWorks.CruiseControl.Core.Tasks.PowerShellTask.BuildArgs |
| EnvironmentVariables | 4 | ThoughtWorks.CruiseControl.Core.Tasks.PowerShellTask .EnvironmentVariables |
| BuildTimeoutSeconds | 4 | ThoughtWorks.CruiseControl.Core.Tasks.PowerShellTask .BuildTimeoutSeconds |
| ProjectFile | 4 | ThoughtWorks.CruiseControl.Core.Tasks.FinalBuilderTask.ProjectFile |
| ShowBanner | 1 | ThoughtWorks.CruiseControl.Core.Tasks.FinalBuilderTask.ShowBanner |
| FBVariables | 4 | ThoughtWorks.CruiseControl.Core.Tasks.FinalBuilderTask.FBVariables |
| DontWriteToLog | 1 | ThoughtWorks.CruiseControl.Core.Tasks.FinalBuilderTask.DontWriteToLog |
| UseTemporaryLogFile | 1 | ThoughtWorks.CruiseControl.Core.Tasks.FinalBuilderTask .UseTemporaryLogFile |
| Timeout | 4 | ThoughtWorks.CruiseControl.Core.Tasks.FinalBuilderTask.Timeout |
| BuildArgs | 4 | ThoughtWorks.CruiseControl.Core.Tasks.RakeTask.BuildArgs |
| BaseDirectory | 4 | ThoughtWorks.CruiseControl.Core.Tasks.RakeTask.BaseDirectory |
| BuildTimeoutSeconds | 4 | ThoughtWorks.CruiseControl.Core.Tasks.RakeTask.BuildTimeoutSeconds |
| Quiet | 1 | ThoughtWorks.CruiseControl.Core.Tasks.RakeTask.Quiet |
| Executable | 4 | ThoughtWorks.CruiseControl.Core.Tasks.RakeTask.Executable |
| Priority | 4 | ThoughtWorks.CruiseControl.Core.Tasks.RakeTask.Priority |
| Rakefile | 4 | ThoughtWorks.CruiseControl.Core.Tasks.RakeTask.Rakefile |
| Silent | 1 | ThoughtWorks.CruiseControl.Core.Tasks.RakeTask.Silent |
| Targets | 4 | ThoughtWorks.CruiseControl.Core.Tasks.RakeTask.Targets |
| Trace | 1 | ThoughtWorks.CruiseControl.Core.Tasks.RakeTask.Trace |
| Name | 4 | ThoughtWorks.CruiseControl.Core.Tasks.DynamicValueUtility+PropertyPart .Name |
| KeyName | 4 | ThoughtWorks.CruiseControl.Core.Tasks.DynamicValueUtility+PropertyPart .KeyName |
| KeyValue | 4 | ThoughtWorks.CruiseControl.Core.Tasks.DynamicValueUtility+PropertyPart .KeyValue |
| Index | 4 | ThoughtWorks.CruiseControl.Core.Tasks.DynamicValueUtility+PropertyPart .Index |
| Targets | 4 | ThoughtWorks.CruiseControl.Core.Tasks.NAntTask.Targets |
| Executable | 4 | ThoughtWorks.CruiseControl.Core.Tasks.NAntTask.Executable |
| Priority | 4 | ThoughtWorks.CruiseControl.Core.Tasks.NAntTask.Priority |
| BuildFile | 4 | ThoughtWorks.CruiseControl.Core.Tasks.NAntTask.BuildFile |
| ConfiguredBaseDirectory | 4 | ThoughtWorks.CruiseControl.Core.Tasks.NAntTask.ConfiguredBaseDirectory |
| BuildArgs | 4 | ThoughtWorks.CruiseControl.Core.Tasks.NAntTask.BuildArgs |
| Logger | 4 | ThoughtWorks.CruiseControl.Core.Tasks.NAntTask.Logger |
| Listener | 4 | ThoughtWorks.CruiseControl.Core.Tasks.NAntTask.Listener |
| NoLogo | 1 | ThoughtWorks.CruiseControl.Core.Tasks.NAntTask.NoLogo |
| BuildTimeoutSeconds | 4 | ThoughtWorks.CruiseControl.Core.Tasks.NAntTask.BuildTimeoutSeconds |
| Filename | 4 | ThoughtWorks.CruiseControl.Core.Tasks.ModificationReaderTask.Filename |
| OutputPath | 4 | ThoughtWorks.CruiseControl.Core.Tasks.ModificationReaderTask .OutputPath |
| assemblies | 4 | ThoughtWorks.CruiseControl.Core.Tasks.NUnitArgument.assemblies |
| IncludedCategories | 4 | ThoughtWorks.CruiseControl.Core.Tasks.NUnitArgument.IncludedCategories |
| ExcludedCategories | 4 | ThoughtWorks.CruiseControl.Core.Tasks.NUnitArgument.ExcludedCategories |
| ignoreStandardOutputOnSuccess | 1 | ThoughtWorks.CruiseControl.Core.Tasks.ProcessTaskResult .ignoreStandardOutputOnSuccess |
| Priority | 4 | ThoughtWorks.CruiseControl.Core.Tasks.NCoverProfileTask.Priority |
| Priority | 4 | ThoughtWorks.CruiseControl.Core.Tasks.NCoverReportTask.Priority |
| Priority | 4 | ThoughtWorks.CruiseControl.Core.Tasks.DupFinderTask.Priority |
| SimulateFailure | 1 | ThoughtWorks.CruiseControl.Core.Tasks.NullTask.SimulateFailure |
| SimulateFailureMessage | 4 | ThoughtWorks.CruiseControl.Core.Tasks.NullTask.SimulateFailureMessage |
| Priority | 4 | ThoughtWorks.CruiseControl.Core.Tasks.NDependTask.Priority |
| Executable | 4 | ThoughtWorks.CruiseControl.Core.Tasks.MsBuildTask.Executable |
| WorkingDirectory | 4 | ThoughtWorks.CruiseControl.Core.Tasks.MsBuildTask.WorkingDirectory |
| ProjectFile | 4 | ThoughtWorks.CruiseControl.Core.Tasks.MsBuildTask.ProjectFile |
Statistics
| Stat | Size of instance |
|---|---|
| Sum: | 1 737 |
| Average: | 3.481 |
| Minimum: | 1 |
| Maximum: | 8 |
| Standard deviation: | 1.3582 |
| Variance: | 1.8448 |
| Rule warning: Constructors of abstract classes should be declared as protected or private |
// <Name>Constructors of abstract classes should be declared as protected or private</Name>
// Constructors of an abstract class can only be accessed from this class and derived class.
// Declaring such a constructor with another visibility level is useless and potentially misleading.
warnif count > 0
from t in Application.Types where
t.IsClass &&
t.IsAbstract
let ctors = t.Constructors.Where(c => !c.IsProtected && !c.IsPrivate)
where ctors.Count() > 0
select new { t, ctors }
// Notice that if a constructor of an abstract class is declared as private,
// it can only be accessed from derived classes nested in the abstract class.
// Constructors of an abstract class can only be accessed from this class and derived class.
// Declaring such a constructor with another visibility level is useless and potentially misleading.
warnif count > 0
from t in Application.Types where
t.IsClass &&
t.IsAbstract
let ctors = t.Constructors.Where(c => !c.IsProtected && !c.IsPrivate)
where ctors.Count() > 0
select new { t, ctors }
// Notice that if a constructor of an abstract class is declared as private,
// it can only be accessed from derived classes nested in the abstract class.
6 types matched
| types | ctors | Full Name |
|---|---|---|
| types | ctors | Full Name |
| AuditFilterBase | 2 methods | ThoughtWorks.CruiseControl.Remote.Security.AuditFilterBase |
| ParameterBase | 2 methods | ThoughtWorks.CruiseControl.Remote.Parameters.ParameterBase |
| ProcessSourceControl | 2 methods | ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl |
| VSSParser | 1 method | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VSSParser |
| StatisticBase | 2 methods | ThoughtWorks.CruiseControl.Core.Publishers.Statistics.StatisticBase |
| ConfigurationTypeDescriptor+PropertyDescriptorBase | 1 method | Validator.ConfigurationTypeDescriptor+PropertyDescriptorBase |
Statistics
| Stat | ctors |
|---|---|
| Sum: | 0 |
| Average: | 0 |
| Minimum: | 0 |
| Maximum: | 0 |
| Standard deviation: | 0 |
| Variance: | 0 |
| Rule warning: Avoid public methods not publicly visible |
//<Name>Avoid public methods not publicly visible</Name>
// Matched methods are declared public but are not publicly visible by assemblies consumers.
// Their visibility level must be decreased.
warnif count > 0
from m in JustMyCode.Methods where
!m.IsPubliclyVisible && m.IsPublic &&
// Eliminate virtual methods
!m.IsVirtual &&
// Eliminate interface and delegate types
!m.ParentType.IsInterface &&
!m.ParentType.IsDelegate &&
// Eliminate default constructors
!(m.IsConstructor && m.NbParameters == 0) &&
// Eliminate operators that must be declared public
!m.IsOperator &&
// Eliminate methods generated by compiler
!m.IsGeneratedByCompiler
select m
// Matched methods are declared public but are not publicly visible by assemblies consumers.
// Their visibility level must be decreased.
warnif count > 0
from m in JustMyCode.Methods where
!m.IsPubliclyVisible && m.IsPublic &&
// Eliminate virtual methods
!m.IsVirtual &&
// Eliminate interface and delegate types
!m.ParentType.IsInterface &&
!m.ParentType.IsDelegate &&
// Eliminate default constructors
!(m.IsConstructor && m.NbParameters == 0) &&
// Eliminate operators that must be declared public
!m.IsOperator &&
// Eliminate methods generated by compiler
!m.IsGeneratedByCompiler
select m
97 methods matched
| methods | Full Name |
|---|---|
| methods | Full Name |
| .ctor(String,String,Int32,Action<OptionValueCollection>) | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet+ActionOption..ctor (String,String,Int32,Action<OptionValueCollection>) |
| .ctor(String,String,Action<T>) | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet+ActionOption<T>..ctor (String,String,Action<T>) |
| .ctor(String,String,OptionAction<TKey,TValue>) | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet+ActionOption<TKey ,TValue>..ctor(String,String,OptionAction<TKey,TValue>) |
| get_Key() | ThoughtWorks.CruiseControl.Core.CruiseServerClient+SecureConnection .get_Key() |
| set_Key(Byte[]) | ThoughtWorks.CruiseControl.Core.CruiseServerClient+SecureConnection .set_Key(Byte[]) |
| get_IV() | ThoughtWorks.CruiseControl.Core.CruiseServerClient+SecureConnection .get_IV() |
| set_IV(Byte[]) | ThoughtWorks.CruiseControl.Core.CruiseServerClient+SecureConnection .set_IV(Byte[]) |
| get_Expiry() | ThoughtWorks.CruiseControl.Core.CruiseServerClient+SecureConnection .get_Expiry() |
| set_Expiry(DateTime) | ThoughtWorks.CruiseControl.Core.CruiseServerClient+SecureConnection .set_Expiry(DateTime) |
| .ctor(IntegrationQueue,IList<IIntegrationQueue>) | ThoughtWorks.CruiseControl.Core.Queues.IntegrationQueue+LockHolder. .ctor(IntegrationQueue,IList<IIntegrationQueue>) |
| .ctor(CircularArray,EnumeratorDirection) | ThoughtWorks.CruiseControl.Core.Logging .CircularArray+CircularArrayEnumerator..ctor(CircularArray ,EnumeratorDirection) |
| .ctor(String,Object,Boolean) | ThoughtWorks.CruiseControl.Core.Util.PrivateArguments+PrivateArgument. .ctor(String,Object,Boolean) |
| ToString(SecureDataMode) | ThoughtWorks.CruiseControl.Core.Util.PrivateArguments+PrivateArgument .ToString(SecureDataMode) |
| add_ProcessOutput(EventHandler<ProcessOutputEventArgs>) | ThoughtWorks.CruiseControl.Core.Util.ProcessExecutor+RunnableProcess .add_ProcessOutput(EventHandler<ProcessOutputEventArgs>) |
| remove_ProcessOutput(EventHandler<ProcessOutputEventArgs>) | ThoughtWorks.CruiseControl.Core.Util.ProcessExecutor+RunnableProcess .remove_ProcessOutput(EventHandler<ProcessOutputEventArgs>) |
| .ctor(ProcessInfo,String,String) | ThoughtWorks.CruiseControl.Core.Util.ProcessExecutor+RunnableProcess. .ctor(ProcessInfo,String,String) |
| Run() | ThoughtWorks.CruiseControl.Core.Util.ProcessExecutor+RunnableProcess .Run() |
| get_Process() | ThoughtWorks.CruiseControl.Core.Util.ProcessExecutor+RunnableProcess .get_Process() |
| ForProject(String) | ThoughtWorks.CruiseControl.Core.Util.ProcessExecutor+ProcessMonitor .ForProject(String) |
| MonitorProcessForProject(Process,String) | ThoughtWorks.CruiseControl.Core.Util.ProcessExecutor+ProcessMonitor .MonitorProcessForProject(Process,String) |
| RemoveMonitorForProject(String) | ThoughtWorks.CruiseControl.Core.Util.ProcessExecutor+ProcessMonitor .RemoveMonitorForProject(String) |
| KillProcess() | ThoughtWorks.CruiseControl.Core.Util.ProcessExecutor+ProcessMonitor .KillProcess() |
| get_At() | ThoughtWorks.CruiseControl.Core.Util.BuildProgressInformationData .get_At() |
| get_Information() | ThoughtWorks.CruiseControl.Core.Util.BuildProgressInformationData .get_Information() |
| .ctor(String) | ThoughtWorks.CruiseControl.Core.Util.BuildProgressInformationData. .ctor(String) |
| KillPid(Int32) | ThoughtWorks.CruiseControl.Core.Util.KillUtil.KillPid(Int32) |
| CopyFile(String) | ThoughtWorks.CruiseControl.Core.Util.DefaultShadowCopier+ShadowStore .CopyFile(String) |
| CreateParser(String,IVssLocale) | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VSSParserFactory .CreateParser(String,IVssLocale) |
| .ctor(Uri,PreprocessorUrlResolver) | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment..ctor(Uri,PreprocessorUrlResolver) |
| AddToFileset(Uri) | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.AddToFileset(Uri) |
| get_Fileset() | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.get_Fileset() |
| define_text_constant(String,String) | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.define_text_constant(String,String) |
| define_nodeset_constant(String,XPathNodeIterator) | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.define_nodeset_constant(String ,XPathNodeIterator) |
| eval_text_constants(String) | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.eval_text_constants(String) |
| eval_constant(String) | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.eval_constant(String) |
| eval_text_constant(String) | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.eval_text_constant(String) |
| unwind_eval_stack() | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.unwind_eval_stack() |
| push_stack() | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.push_stack() |
| pop_stack() | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.pop_stack() |
| push_include(String) | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.push_include(String) |
| pop_include() | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.pop_include() |
| GetAssemblyResourceStream(Type,String) | ThoughtWorks.CruiseControl.Core.Config.Preprocessor.Utils .GetAssemblyResourceStream(Type,String) |
| GetAssemblyResourceStream(String) | ThoughtWorks.CruiseControl.Core.Config.Preprocessor.Utils .GetAssemblyResourceStream(String) |
| PreProcess(XmlReader,XmlWriter,PreprocessorUrlResolver,Uri) | ThoughtWorks.CruiseControl.Core.Config.Preprocessor.ConfigPreprocessor .PreProcess(XmlReader,XmlWriter,PreprocessorUrlResolver,Uri) |
| add_SubfileLoaded(ConfigurationSubfileLoadedHandler) | ThoughtWorks.CruiseControl.Core.Config.Preprocessor.ConfigPreprocessor .add_SubfileLoaded(ConfigurationSubfileLoadedHandler) |
| remove_SubfileLoaded(ConfigurationSubfileLoadedHandler) | ThoughtWorks.CruiseControl.Core.Config.Preprocessor.ConfigPreprocessor .remove_SubfileLoaded(ConfigurationSubfileLoadedHandler) |
| add_UrlResolved(EventHandler<UrlResolvedArgs>) | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .PreprocessorUrlResolver.add_UrlResolved(EventHandler<UrlResolvedArgs> ) |
| remove_UrlResolved(EventHandler<UrlResolvedArgs>) | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .PreprocessorUrlResolver.remove_UrlResolved(EventHandler <UrlResolvedArgs>) |
| .ctor(Uri) | ThoughtWorks.CruiseControl.Core.Config.Preprocessor.UrlResolvedArgs. .ctor(Uri) |
| get_Uri() | ThoughtWorks.CruiseControl.Core.Config.Preprocessor.UrlResolvedArgs .get_Uri() |
| .ctor(ObjectSource,HttpContext) | ThoughtWorks.CruiseControl.WebDashboard.Configuration .CachingDashboardConfigurationLoader..ctor(ObjectSource,HttpContext) |
| ClearCache() | ThoughtWorks.CruiseControl.WebDashboard.Configuration .CachingDashboardConfigurationLoader.ClearCache() |
| .ctor(String,String[]) | ThoughtWorks.CruiseControl.WebDashboard.MVC.MimeType..ctor(String ,String[]) |
| HasExtension(String) | ThoughtWorks.CruiseControl.WebDashboard.MVC.MimeType.HasExtension (String) |
| get_ContentType() | ThoughtWorks.CruiseControl.WebDashboard.MVC.MimeType.get_ContentType() |
| .ctor(ProjectGridSortColumn,Boolean) | ThoughtWorks.CruiseControl.WebDashboard.Dashboard .ProjectGrid+ProjectGridRowComparer..ctor(ProjectGridSortColumn ,Boolean) |
| CreateRSSLink(ILinkFactory,IProjectSpecifier) | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.RSSLinkBuilder .CreateRSSLink(ILinkFactory,IProjectSpecifier) |
| get_OnlyShowBuildsWithModifications() | ThoughtWorks.CruiseControl.WebDashboard.Plugins.ProjectReport .ModificationHistoryProjectPlugin.get_OnlyShowBuildsWithModifications( ) |
| set_OnlyShowBuildsWithModifications(Boolean) | ThoughtWorks.CruiseControl.WebDashboard.Plugins.ProjectReport .ModificationHistoryProjectPlugin.set_OnlyShowBuildsWithModifications (Boolean) |
| .ctor(IFarmService,IPhysicalApplicationPathProvider) | ThoughtWorks.CruiseControl.WebDashboard.Plugins.ProjectReport .ModificationHistoryProjectPlugin..ctor(IFarmService ,IPhysicalApplicationPathProvider) |
| .ctor(IRequest,ICruiseUrlBuilder) | ThoughtWorks.CruiseControl.WebDashboard.Plugins.ProjectReport .ProjectReportProjectPlugin+ModifiedCruiseRequest..ctor(IRequest ,ICruiseUrlBuilder) |
| ReplaceBuildSpecifier(IBuildSpecifier) | ThoughtWorks.CruiseControl.WebDashboard.Plugins.ProjectReport .ProjectReportProjectPlugin+ModifiedCruiseRequest .ReplaceBuildSpecifier(IBuildSpecifier) |
| get_AssemblyTitle() | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.About .get_AssemblyTitle() |
| get_AssemblyVersion() | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.About .get_AssemblyVersion() |
| get_AssemblyCopyright() | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.About .get_AssemblyCopyright() |
| get_SortColumn() | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .MainForm+ListViewItemComparer.get_SortColumn() |
| set_SortColumn(Int32) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .MainForm+ListViewItemComparer.set_SortColumn(Int32) |
| get_SortAscending() | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .MainForm+ListViewItemComparer.get_SortAscending() |
| set_SortAscending(Boolean) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .MainForm+ListViewItemComparer.set_SortAscending(Boolean) |
| .ctor(Int32) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .MainForm+ListViewItemComparer..ctor(Int32) |
| .ctor(Int32,Boolean) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .MainForm+ListViewItemComparer..ctor(Int32,Boolean) |
| .ctor(String,String) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .ConfigureServer+ExtensionDetails..ctor(String,String) |
| .ctor(Byte[],Int32) | ThoughtWorks.CruiseControl.CCTrayLib.X10.Cm11Message..ctor(Byte[] ,Int32) |
| get_Buffer() | ThoughtWorks.CruiseControl.CCTrayLib.X10.Cm11Message.get_Buffer() |
| set_Buffer(Byte[]) | ThoughtWorks.CruiseControl.CCTrayLib.X10.Cm11Message.set_Buffer(Byte[] ) |
| get_Count() | ThoughtWorks.CruiseControl.CCTrayLib.X10.Cm11Message.get_Count() |
| set_Count(Int32) | ThoughtWorks.CruiseControl.CCTrayLib.X10.Cm11Message.set_Count(Int32) |
| add_Error(EventHandler<Cm11LowLevelDriverError>) | ThoughtWorks.CruiseControl.CCTrayLib.X10 .Cm11LowLevelDriver+Cm11LowLevelDriverWorker.add_Error(EventHandler <Cm11LowLevelDriverError>) |
| remove_Error(EventHandler<Cm11LowLevelDriverError>) | ThoughtWorks.CruiseControl.CCTrayLib.X10 .Cm11LowLevelDriver+Cm11LowLevelDriverWorker.remove_Error(EventHandler <Cm11LowLevelDriverError>) |
| .ctor(Cm11LowLevelDriver+CM11aHouseCode,String,Int32,Parity,Int32 ,StopBits) | ThoughtWorks.CruiseControl.CCTrayLib.X10 .Cm11LowLevelDriver+Cm11LowLevelDriverWorker..ctor (Cm11LowLevelDriver+CM11aHouseCode,String,Int32,Parity,Int32,StopBits) |
| StartProcessing() | ThoughtWorks.CruiseControl.CCTrayLib.X10 .Cm11LowLevelDriver+Cm11LowLevelDriverWorker.StartProcessing() |
| CloseDriver() | ThoughtWorks.CruiseControl.CCTrayLib.X10 .Cm11LowLevelDriver+Cm11LowLevelDriverWorker.CloseDriver() |
| AddMessage(Cm11Message) | ThoughtWorks.CruiseControl.CCTrayLib.X10 .Cm11LowLevelDriver+Cm11LowLevelDriverWorker.AddMessage(Cm11Message) |
| StopProcessing() | ThoughtWorks.CruiseControl.CCTrayLib.X10 .Cm11LowLevelDriver+Cm11LowLevelDriverWorker.StopProcessing() |
| get_TransmissionRetries() | ThoughtWorks.CruiseControl.CCTrayLib.X10 .Cm11LowLevelDriver+Cm11LowLevelDriverWorker.get_TransmissionRetries() |
| set_TransmissionRetries(Int32) | ThoughtWorks.CruiseControl.CCTrayLib.X10 .Cm11LowLevelDriver+Cm11LowLevelDriverWorker.set_TransmissionRetries (Int32) |
| .ctor(String,Int32,IX10LowLevelDriver) | ThoughtWorks.CruiseControl.CCTrayLib.X10.LampController+Lamp..ctor (String,Int32,IX10LowLevelDriver) |
| SetState(LampController+LampState) | ThoughtWorks.CruiseControl.CCTrayLib.X10.LampController+Lamp.SetState (LampController+LampState) |
| .ctor(String) | Validator.ConfigurationHierarchy+ConfigurationDetails..ctor(String) |
| get_Filename() | Validator.ConfigurationHierarchy+ConfigurationDetails.get_Filename() |
| set_Filename(String) | Validator.ConfigurationHierarchy+ConfigurationDetails.set_Filename (String) |
| get_Size() | Validator.ConfigurationHierarchy+ConfigurationDetails.get_Size() |
| set_Size(Int64) | Validator.ConfigurationHierarchy+ConfigurationDetails.set_Size(Int64) |
| get_LastModified() | Validator.ConfigurationHierarchy+ConfigurationDetails.get_LastModified () |
| set_LastModified(DateTime) | Validator.ConfigurationHierarchy+ConfigurationDetails.set_LastModified (DateTime) |
| LoadSynchronously(WebBrowser,Stream) | Validator.MainForm+CompletionClosure.LoadSynchronously(WebBrowser ,Stream) |
| .ctor(String,Object) | Validator.MainForm+ConfigurationItem..ctor(String,Object) |
Statistics
| Stat |
|---|
| Sum: |
| Average: |
| Minimum: |
| Maximum: |
| Standard deviation: |
| Variance: |
| Purity - Immutability - Side-Effects |
|
|
| Rule warning: Fields should be marked as ReadOnly when possible |
// <Name>Fields should be marked as ReadOnly when possible</Name>
warnif count > 0
from f in JustMyCode.Fields where
f.IsImmutable &&
!f.IsInitOnly &&
!f.IsGeneratedByCompiler &&
!f.IsEventDelegateObject
select new { f, f.SizeOfInst }
// A field that matches the condition IsImmutable
// is a field that is assigned only by constructors
// of its class.
// For an instance field, this means its value
// will remain constant throught the lifetime
// of the object.
// For a static field, this means its value will
// remain constant throught the lifetime of the
// program.
// In both cases, such field can safely be marked
// with the C# readonly keyword
// (ReadOnly in VB.NET).
// The condition IsInitOnly matches fields that
// are marked with the C# readonly keyword
// (ReadOnly in VB.NET).
warnif count > 0
from f in JustMyCode.Fields where
f.IsImmutable &&
!f.IsInitOnly &&
!f.IsGeneratedByCompiler &&
!f.IsEventDelegateObject
select new { f, f.SizeOfInst }
// A field that matches the condition IsImmutable
// is a field that is assigned only by constructors
// of its class.
// For an instance field, this means its value
// will remain constant throught the lifetime
// of the object.
// For a static field, this means its value will
// remain constant throught the lifetime of the
// program.
// In both cases, such field can safely be marked
// with the C# readonly keyword
// (ReadOnly in VB.NET).
// The condition IsInitOnly matches fields that
// are marked with the C# readonly keyword
// (ReadOnly in VB.NET).
311 fields matched
The following list of fields is truncated and contains only the first 100 fields of the 311 fields matched. All matched fields could be listed in the report by unchecking the option:
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched fields.
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched fields.
| fields | Size of instance | Full Name |
|---|---|---|
| fields | Size of instance | Full Name |
| permission | 4 | ThoughtWorks.CruiseControl.Core.PermissionDeniedException.permission |
| reference | 4 | ThoughtWorks.CruiseControl.Core.BadReferenceException.reference |
| lockObject | 4 | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase.lockObject |
| ticks | 8 | ThoughtWorks.CruiseControl.Remote.SerializableDateTime.ticks |
| manager | 4 | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient.manager |
| userName | 4 | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient.userName |
| isList | 1 | ThoughtWorks.CruiseControl.Remote.NameValuePairSerialiser.isList |
| queueSnapshots | 4 | ThoughtWorks.CruiseControl.Remote.QueueSetSnapshot.queueSnapshots |
| messageSerialisers | N/A | ThoughtWorks.CruiseControl.Remote.XmlConversionUtil.messageSerialisers |
| _requests | 4 | ThoughtWorks.CruiseControl.Remote.QueueSnapshot._requests |
| queueSnapshots | 4 | ThoughtWorks.CruiseControl.Remote.QueueSnapshotList.queueSnapshots |
| queuedRequests | 4 | ThoughtWorks.CruiseControl.Remote.QueuedRequestSnapshotList .queuedRequests |
| initialisers | 4 | ThoughtWorks.CruiseControl.Remote.CruiseServerClientFactory .initialisers |
| clients | 4 | ThoughtWorks.CruiseControl.Remote.CruiseServerClientFactory.clients |
| asyncOperations | 4 | ThoughtWorks.CruiseControl.Remote.HttpConnection.asyncOperations |
| lockObject | 4 | ThoughtWorks.CruiseControl.Remote.HttpConnection.lockObject |
| innerConnection | 4 | ThoughtWorks.CruiseControl.Remote.EncryptingConnection.innerConnection |
| childItems | 4 | ThoughtWorks.CruiseControl.Remote.ItemStatus.childItems |
| client | 4 | ThoughtWorks.CruiseControl.Remote.CruiseServerHttpClient.client |
| fileData | 4 | ThoughtWorks.CruiseControl.Remote.RemotingFileTransfer.fileData |
| fileLength | 4 | ThoughtWorks.CruiseControl.Remote.RemotingFileTransfer.fileLength |
| innerFilter | 4 | ThoughtWorks.CruiseControl.Remote.Security.AuditFilterBase.innerFilter |
| errorMessages | 4 | ThoughtWorks.CruiseControl.Remote.Messages.Response.errorMessages |
| dataStore | 4 | ThoughtWorks.CruiseControl.Remote.Monitor.DataBag.dataStore |
| requests | 4 | ThoughtWorks.CruiseControl.Remote.Monitor.BuildQueue.requests |
| syncLock | 4 | ThoughtWorks.CruiseControl.Remote.Monitor.BuildQueue.syncLock |
| data | 4 | ThoughtWorks.CruiseControl.Remote.Monitor.BuildQueue.data |
| projects | 4 | ThoughtWorks.CruiseControl.Remote.Monitor.Server.projects |
| buildQueues | 4 | ThoughtWorks.CruiseControl.Remote.Monitor.Server.buildQueues |
| syncLock | 4 | ThoughtWorks.CruiseControl.Remote.Monitor.Server.syncLock |
| data | 4 | ThoughtWorks.CruiseControl.Remote.Monitor.Server.data |
| builds | 4 | ThoughtWorks.CruiseControl.Remote.Monitor.Project.builds |
| lockObject | 4 | ThoughtWorks.CruiseControl.Remote.Monitor.Project.lockObject |
| snapshotLock | 4 | ThoughtWorks.CruiseControl.Remote.Monitor.Project.snapshotLock |
| data | 4 | ThoughtWorks.CruiseControl.Remote.Monitor.Project.data |
| pollingThread | 4 | ThoughtWorks.CruiseControl.Remote.Monitor.PollingServerWatcher .pollingThread |
| dayOfWeekRegex | N/A | ThoughtWorks.CruiseControl.Remote.Parameters.DateParameter .dayOfWeekRegex |
| dayOfMonthRegex | N/A | ThoughtWorks.CruiseControl.Remote.Parameters.DateParameter .dayOfMonthRegex |
| values | 4 | ThoughtWorks.CruiseControl.Remote.Mono.OptionValueCollection.values |
| c | 4 | ThoughtWorks.CruiseControl.Remote.Mono.OptionValueCollection.c |
| set | 4 | ThoughtWorks.CruiseControl.Remote.Mono.OptionContext.set |
| c | 4 | ThoughtWorks.CruiseControl.Remote.Mono.OptionContext.c |
| prototype | 4 | ThoughtWorks.CruiseControl.Remote.Mono.Option.prototype |
| description | 4 | ThoughtWorks.CruiseControl.Remote.Mono.Option.description |
| names | 4 | ThoughtWorks.CruiseControl.Remote.Mono.Option.names |
| type | 4 | ThoughtWorks.CruiseControl.Remote.Mono.Option.type |
| count | 4 | ThoughtWorks.CruiseControl.Remote.Mono.Option.count |
| option | 4 | ThoughtWorks.CruiseControl.Remote.Mono.OptionException.option |
| localizer | 4 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet.localizer |
| action | 4 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet+ActionOption.action |
| action | 4 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet+ActionOption<T> .action |
| action | 4 | ThoughtWorks.CruiseControl.Remote.Mono.OptionSet+ActionOption<TKey ,TValue>.action |
| implementationResolver | 4 | Objection.ObjectionStore.implementationResolver |
| constructorSelectionStrategy | 4 | Objection.ObjectionStore.constructorSelectionStrategy |
| typedInstances | 4 | Objection.ObjectionStore.typedInstances |
| implementationTypes | 4 | Objection.ObjectionStore.implementationTypes |
| dependencyImplementations | 4 | Objection.ObjectionStore.dependencyImplementations |
| namedTypes | 4 | Objection.ObjectionStore.namedTypes |
| dependencyImplementationsForNames | 4 | Objection.ObjectionStore.dependencyImplementationsForNames |
| namedInstances | 4 | Objection.ObjectionStore.namedInstances |
| failures | 4 | ThoughtWorks.CruiseControl.Core.MultipleIntegrationFailureException .failures |
| projects | 4 | ThoughtWorks.CruiseControl.Core.ProjectList.projects |
| sourceControlData | 4 | ThoughtWorks.CruiseControl.Core.IntegrationResult.sourceControlData |
| modifications | 4 | ThoughtWorks.CruiseControl.Core.WorkflowResult.modifications |
| messageSerialisers | 4 | ThoughtWorks.CruiseControl.Core.CruiseServerClient.messageSerialisers |
| connections | 4 | ThoughtWorks.CruiseControl.Core.CruiseServerClient.connections |
| integrators | 4 | ThoughtWorks.CruiseControl.Core.ProjectIntegratorList.integrators |
| receivedRequests | 4 | ThoughtWorks.CruiseControl.Core.CruiseServer.receivedRequests |
| integrationQueueManager | 4 | ThoughtWorks.CruiseControl.Core.CruiseServer.integrationQueueManager |
| services | 4 | ThoughtWorks.CruiseControl.Core.CruiseServer.services |
| logCacheLock | 4 | ThoughtWorks.CruiseControl.Core.CruiseServer.logCacheLock |
| cacheTime | 8 | ThoughtWorks.CruiseControl.Core.CruiseServer.cacheTime |
| integrationResultManager | 4 | ThoughtWorks.CruiseControl.Core.Project.integrationResultManager |
| integratable | 4 | ThoughtWorks.CruiseControl.Core.Project.integratable |
| quietPeriod | 4 | ThoughtWorks.CruiseControl.Core.Project.quietPeriod |
| messages | 4 | ThoughtWorks.CruiseControl.Core.Project.messages |
| currentProjectStatus | 4 | ThoughtWorks.CruiseControl.Core.Project.currentProjectStatus |
| currentProjectItems | 4 | ThoughtWorks.CruiseControl.Core.Project.currentProjectItems |
| sourceControlOperations | 4 | ThoughtWorks.CruiseControl.Core.Project.sourceControlOperations |
| status | 4 | ThoughtWorks.CruiseControl.Core.IntegrationSummary.status |
| label | 4 | ThoughtWorks.CruiseControl.Core.IntegrationSummary.label |
| lastSuccessfulIntegrationLabel | 4 | ThoughtWorks.CruiseControl.Core.IntegrationSummary .lastSuccessfulIntegrationLabel |
| startTime | 8 | ThoughtWorks.CruiseControl.Core.IntegrationSummary.startTime |
| environment | 4 | ThoughtWorks.CruiseControl.Core.ConsoleEventHandler.environment |
| server | 4 | ThoughtWorks.CruiseControl.Core.RemoteCruiseServer.server |
| environment | 4 | ThoughtWorks.CruiseControl.Core.RemoteCruiseServer.environment |
| elapsedTimes | 4 | ThoughtWorks.CruiseControl.Core.Tasks.TaskBase.elapsedTimes |
| taskStatuses | 4 | ThoughtWorks.CruiseControl.Core.Tasks.TaskContainerBase.taskStatuses |
| cachedProjects | 4 | ThoughtWorks.CruiseControl.Core.Tasks.CruiseServerControlTask .cachedProjects |
| executor | 4 | ThoughtWorks.CruiseControl.Core.Tasks.PowerShellTask.executor |
| parameterRegex | N/A | ThoughtWorks.CruiseControl.Core.Tasks.DynamicValueUtility .parameterRegex |
| paramPartRegex | N/A | ThoughtWorks.CruiseControl.Core.Tasks.DynamicValueUtility .paramPartRegex |
| mySource | 4 | ThoughtWorks.CruiseControl.Core.Tasks .DynamicValueUtility+PropertyValue.mySource |
| myProperty | 4 | ThoughtWorks.CruiseControl.Core.Tasks .DynamicValueUtility+PropertyValue.myProperty |
| myArrayIndex | 4 | ThoughtWorks.CruiseControl.Core.Tasks .DynamicValueUtility+PropertyValue.myArrayIndex |
| contexts | N/A | ThoughtWorks.CruiseControl.Core.Tasks.SynchronisationTask.contexts |
| lockObject | N/A | ThoughtWorks.CruiseControl.Core.Tasks.SynchronisationTask.lockObject |
| deleteAfterMerge | 1 | ThoughtWorks.CruiseControl.Core.Tasks.FileTaskResult.deleteAfterMerge |
| fileSystem | 4 | ThoughtWorks.CruiseControl.Core.Tasks.NDependTask.fileSystem |
| logger | 4 | ThoughtWorks.CruiseControl.Core.Tasks.NDependTask.logger |
Statistics
| Stat | Size of instance |
|---|---|
| Sum: | 1 130 |
| Average: | 4.0071 |
| Minimum: | 1 |
| Maximum: | 8 |
| Standard deviation: | 0.6893 |
| Variance: | 0.47513 |
| Rule warning: Structures should be immutable |
// <Name>Structures should be immutable</Name>
warnif count > 0 from t in Application.Types where
t.IsStructure &&
!t.IsImmutable
let mutableFields = t.Fields.Where(f => !f.IsImmutable)
select new { t, t.NbLinesOfCode, mutableFields }
// It is deemed as a good practice to make
// your structure immutable.
// An object is immutable if its state doesn’t
// change once the object has been created.
// Consequently, a structure is immutable if
// its instances are immutable.
// Immutable types naturally simplify code by
// limiting side-effects.
// See some explanations on immutability and
// how NDepend supports it here:
// http://codebetter.com/blogs/patricksmacchia/archive/2008/01/13/immutable-types-understand-them-and-use-them.aspx
warnif count > 0 from t in Application.Types where
t.IsStructure &&
!t.IsImmutable
let mutableFields = t.Fields.Where(f => !f.IsImmutable)
select new { t, t.NbLinesOfCode, mutableFields }
// It is deemed as a good practice to make
// your structure immutable.
// An object is immutable if its state doesn’t
// change once the object has been created.
// Consequently, a structure is immutable if
// its instances are immutable.
// Immutable types naturally simplify code by
// limiting side-effects.
// See some explanations on immutability and
// how NDepend supports it here:
// http://codebetter.com/blogs/patricksmacchia/archive/2008/01/13/immutable-types-understand-them-and-use-them.aspx
2 types matched
| types | # lines of code (LOC) | mutableFields | Full Name |
|---|---|---|---|
| types | # lines of code (LOC) | mutableFields | Full Name |
| ConfigureServer+ExtensionDetails | 3 | 2 fields | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .ConfigureServer+ExtensionDetails |
| MainForm+ConfigurationItem | 2 | 2 fields | Validator.MainForm+ConfigurationItem |
Statistics
| Stat | # lines of code (LOC) | mutableFields |
|---|---|---|
| Sum: | 5 | 0 |
| Average: | 2.5 | 0 |
| Minimum: | 2 | 0 |
| Maximum: | 3 | 0 |
| Standard deviation: | 0.5 | 0 |
| Variance: | 0.25 | 0 |
| Rule warning: Property Getters should be immutable |
// <Name>Property Getters should be immutable</Name>
warnif count > 0 from m in Application.Methods where
m.IsPropertyGetter &&
( ( !m.IsStatic && m.ChangesObjectState) ||
( m.IsStatic && m.ChangesTypeState) )
let fieldsAssigned = m.FieldsAssigned
select new { m, m.NbLinesOfCode, fieldsAssigned }
// This rule might be violated in the case of object lazy initialized
// when the property getter is accessed the first time.
// But in general, the callers of a property
// doesn't expect to change any state through the call.
warnif count > 0 from m in Application.Methods where
m.IsPropertyGetter &&
( ( !m.IsStatic && m.ChangesObjectState) ||
( m.IsStatic && m.ChangesTypeState) )
let fieldsAssigned = m.FieldsAssigned
select new { m, m.NbLinesOfCode, fieldsAssigned }
// This rule might be violated in the case of object lazy initialized
// when the property getter is accessed the first time.
// But in general, the callers of a property
// doesn't expect to change any state through the call.
28 methods matched
| methods | # lines of code (LOC) | fieldsAssigned | Full Name |
|---|---|---|---|
| methods | # lines of code (LOC) | fieldsAssigned | Full Name |
| get_LastIntegrationResult() | 3 | 1 field | ThoughtWorks.CruiseControl.Core.IntegrationResultManager .get_LastIntegrationResult() |
| get_LastIntegration() | 3 | 1 field | ThoughtWorks.CruiseControl.Core.IntegrationResultManager .get_LastIntegration() |
| get_CurrentIntegration() | 5 | 1 field | ThoughtWorks.CruiseControl.Core.IntegrationResultManager .get_CurrentIntegration() |
| get_Executable() | 3 | 1 field | ThoughtWorks.CruiseControl.Core.Tasks.PowerShellTask.get_Executable() |
| get_Executable() | 3 | 1 field | ThoughtWorks.CruiseControl.Core.Tasks.DevenvTask.get_Executable() |
| get_Name() | 3 | 1 field | ThoughtWorks.CruiseControl.Core.Triggers.IntervalTrigger.get_Name() |
| get_Name() | 3 | 1 field | ThoughtWorks.CruiseControl.Core.Triggers.ScheduleTrigger.get_Name() |
| get_Executable() | 3 | 1 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vsts.get_Executable() |
| get_Workspace() | 3 | 1 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vsts.get_Workspace() |
| get_Executable() | 3 | 1 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vss.get_Executable() |
| get_Executable() | 3 | 1 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Alienbrain .get_Executable() |
| get_IssueTrackers() | 3 | 1 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol .MultiIssueTrackerUrlBuilder.get_IssueTrackers() |
| get_ErrorFile() | 1 | 1 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Pvcs.get_ErrorFile() |
| get_LogFile() | 1 | 1 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Pvcs.get_LogFile() |
| get_TempFile() | 1 | 1 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Pvcs.get_TempFile() |
| get_SourceControls() | 3 | 1 field | ThoughtWorks.CruiseControl.Core.Sourcecontrol.MultiSourceControl .get_SourceControls() |
| get_HtmlEmailCss() | 3 | 1 field | ThoughtWorks.CruiseControl.Core.Publishers.HtmlDetailsMessageBuilder .get_HtmlEmailCss() |
| get_Location() | 5 | 1 field | ThoughtWorks.CruiseControl.WebDashboard.IO.ProgramDataFolder .get_Location() |
| get_VelocityEngine() | 8 | 1 field | ThoughtWorks.CruiseControl.WebDashboard.MVC.View .LazilyInitialisingVelocityTransformer.get_VelocityEngine() |
| get_VelocityEngineCustom() | 8 | 1 field | ThoughtWorks.CruiseControl.WebDashboard.MVC.View .LazilyInitialisingVelocityTransformer.get_VelocityEngineCustom() |
| get_CustomTemplateLocation() | 7 | 1 field | ThoughtWorks.CruiseControl.WebDashboard.MVC.View .LazilyInitialisingVelocityTransformer.get_CustomTemplateLocation() |
| get_TopControlsViewBuilder() | 3 | 1 field | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.ActionDecorators .SiteTemplateActionDecorator.get_TopControlsViewBuilder() |
| get_SideBarViewBuilder() | 3 | 1 field | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.ActionDecorators .SiteTemplateActionDecorator.get_SideBarViewBuilder() |
| get_LoginViewBuilder() | 3 | 1 field | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.ActionDecorators .SiteTemplateActionDecorator.get_LoginViewBuilder() |
| get_ResourceManager() | 4 | 1 field | ThoughtWorks.CruiseControl.CCTrayLib.DefaultProjectIcons .get_ResourceManager() |
| get_ResourceManager() | 4 | 1 field | ThoughtWorks.CruiseControl.CCTrayLib.DefaultQueueIcons .get_ResourceManager() |
| get_ResourceManager() | 4 | 1 field | ThoughtWorks.CruiseControl.CCTrayLib.Properties.Resources .get_ResourceManager() |
| get_ResourceManager() | 4 | 1 field | Validator.Properties.Resources.get_ResourceManager() |
Statistics
| Stat | # lines of code (LOC) | fieldsAssigned |
|---|---|---|
| Sum: | 100 | 0 |
| Average: | 3.5714 | 0 |
| Minimum: | 1 | 0 |
| Maximum: | 8 | 0 |
| Standard deviation: | 1.6993 | 0 |
| Variance: | 2.8878 | 0 |
| Rule warning: Avoid static fields with a mutable field type |
// <Name>Avoid static fields with a mutable field type</Name>
warnif count > 0
from f in Application.Fields
where f.IsStatic && !f.IsEnumValue && !f.IsGeneratedByCompiler && !f.IsLiteral
let fieldType = f.FieldType
where fieldType != null &&
!fieldType.IsThirdParty &&
!fieldType.IsInterface &&
!fieldType.IsImmutable
select new { f,
mutableFieldType = fieldType ,
isFieldImmutable = f.IsImmutable,
isFieldIsReadOnly = f.IsInitOnly }
// As explained in this blog post
// http://codebetter.com/patricksmacchia/2011/05/04/back-to-basics-usage-of-static-members
// static fields should be used to hold only constant and immutable states.
warnif count > 0
from f in Application.Fields
where f.IsStatic && !f.IsEnumValue && !f.IsGeneratedByCompiler && !f.IsLiteral
let fieldType = f.FieldType
where fieldType != null &&
!fieldType.IsThirdParty &&
!fieldType.IsInterface &&
!fieldType.IsImmutable
select new { f,
mutableFieldType = fieldType ,
isFieldImmutable = f.IsImmutable,
isFieldIsReadOnly = f.IsInitOnly }
// As explained in this blog post
// http://codebetter.com/patricksmacchia/2011/05/04/back-to-basics-usage-of-static-members
// static fields should be used to hold only constant and immutable states.
22 fields matched
| fields | mutableFieldType | isFieldImmutable | isFieldIsReadOnly | Full Name |
|---|---|---|---|---|
| fields | mutableFieldType | isFieldImmutable | isFieldIsReadOnly | Full Name |
| CheckingModifications | ProjectActivity | False | False | ThoughtWorks.CruiseControl.Remote.ProjectActivity .CheckingModifications |
| Building | ProjectActivity | False | False | ThoughtWorks.CruiseControl.Remote.ProjectActivity.Building |
| Sleeping | ProjectActivity | False | False | ThoughtWorks.CruiseControl.Remote.ProjectActivity.Sleeping |
| Pending | ProjectActivity | False | False | ThoughtWorks.CruiseControl.Remote.ProjectActivity.Pending |
| NullRequest | IntegrationRequest | True | True | ThoughtWorks.CruiseControl.Remote.IntegrationRequest.NullRequest |
| Initial | IntegrationSummary | True | True | ThoughtWorks.CruiseControl.Core.IntegrationSummary.Initial |
| DefaultDirection | EnumeratorDirection | True | True | ThoughtWorks.CruiseControl.Core.Logging.CircularArray.DefaultDirection |
| DefaultTimeout | Timeout | False | False | ThoughtWorks.CruiseControl.Core.Util.Timeout.DefaultTimeout |
| REMOTING_SERVER | StatusIcon | True | True | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .ResourceIntegrationQueueIconProvider.REMOTING_SERVER |
| HTTP_SERVER | StatusIcon | True | True | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .ResourceIntegrationQueueIconProvider.HTTP_SERVER |
| QUEUE_EMPTY | StatusIcon | True | True | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .ResourceIntegrationQueueIconProvider.QUEUE_EMPTY |
| QUEUE_POPULATED | StatusIcon | True | True | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .ResourceIntegrationQueueIconProvider.QUEUE_POPULATED |
| CHECKING_MODIFICATIONS | StatusIcon | True | True | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .ResourceIntegrationQueueIconProvider.CHECKING_MODIFICATIONS |
| BUILDING | StatusIcon | True | True | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .ResourceIntegrationQueueIconProvider.BUILDING |
| PENDING | StatusIcon | True | True | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .ResourceIntegrationQueueIconProvider.PENDING |
| YELLOW | StatusIcon | True | True | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .ResourceProjectStateIconProvider.YELLOW |
| GRAY | StatusIcon | True | True | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .ResourceProjectStateIconProvider.GRAY |
| GREEN | StatusIcon | True | True | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .ResourceProjectStateIconProvider.GREEN |
| RED | StatusIcon | True | True | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .ResourceProjectStateIconProvider.RED |
| ORANGE | StatusIcon | True | True | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .ResourceProjectStateIconProvider.ORANGE |
| defaultInstance | Settings | True | False | Validator.Properties.Settings.defaultInstance |
| command | CommandType | False | False | ThoughtWorks.CruiseControl.CCCmd.Program.command |
Statistics
| Stat | mutableFieldType | isFieldImmutable | isFieldIsReadOnly |
|---|---|---|---|
| Sum: | 0 | 0 | 0 |
| Average: | 0 | 0 | 0 |
| Minimum: | 0 | 0 | 0 |
| Maximum: | 0 | 0 | 0 |
| Standard deviation: | 0 | 0 | 0 |
| Variance: | 0 | 0 | 0 |
| Rule warning: A field must not be assigned from outside its parent hierarchy types |
// <Name>A field must not be assigned from outside its parent hierarchy types</Name>
warnif count > 0
from f in JustMyCode.Fields.Where(f =>
!f.IsPrivate && !f.IsGeneratedByCompiler &&
!f.IsImmutable && !f.IsEnumValue)
let methodsAssignerOutsideOfMyType = f.MethodsAssigningMe.Where(
m =>!m.IsGeneratedByCompiler &&
m.ParentType != f.ParentType &&
!m.ParentType.DeriveFrom(f.ParentType) )
where methodsAssignerOutsideOfMyType.Count() > 0
select new { f, methodsAssignerOutsideOfMyType }
warnif count > 0
from f in JustMyCode.Fields.Where(f =>
!f.IsPrivate && !f.IsGeneratedByCompiler &&
!f.IsImmutable && !f.IsEnumValue)
let methodsAssignerOutsideOfMyType = f.MethodsAssigningMe.Where(
m =>!m.IsGeneratedByCompiler &&
m.ParentType != f.ParentType &&
!m.ParentType.DeriveFrom(f.ParentType) )
where methodsAssignerOutsideOfMyType.Count() > 0
select new { f, methodsAssignerOutsideOfMyType }
75 fields matched
| fields | methodsAssignerOutsideOfMyType | Full Name |
|---|---|---|
| fields | methodsAssignerOutsideOfMyType | Full Name |
| Type | 23 methods | ThoughtWorks.CruiseControl.Core.Modification.Type |
| FileName | 24 methods | ThoughtWorks.CruiseControl.Core.Modification.FileName |
| FolderName | 25 methods | ThoughtWorks.CruiseControl.Core.Modification.FolderName |
| ModifiedTime | 23 methods | ThoughtWorks.CruiseControl.Core.Modification.ModifiedTime |
| UserName | 19 methods | ThoughtWorks.CruiseControl.Core.Modification.UserName |
| ChangeNumber | 12 methods | ThoughtWorks.CruiseControl.Core.Modification.ChangeNumber |
| Version | 9 methods | ThoughtWorks.CruiseControl.Core.Modification.Version |
| Comment | 18 methods | ThoughtWorks.CruiseControl.Core.Modification.Comment |
| Url | 7 methods | ThoughtWorks.CruiseControl.Core.Modification.Url |
| IssueUrl | 2 methods | ThoughtWorks.CruiseControl.Core.Modification.IssueUrl |
| EmailAddress | 7 methods | ThoughtWorks.CruiseControl.Core.Modification.EmailAddress |
| Name | 1 method | ThoughtWorks.CruiseControl.Core.Tasks.DynamicValueUtility+PropertyPart .Name |
| KeyName | 1 method | ThoughtWorks.CruiseControl.Core.Tasks.DynamicValueUtility+PropertyPart .KeyName |
| KeyValue | 1 method | ThoughtWorks.CruiseControl.Core.Tasks.DynamicValueUtility+PropertyPart .KeyValue |
| Index | 1 method | ThoughtWorks.CruiseControl.Core.Tasks.DynamicValueUtility+PropertyPart .Index |
| IncludedCategories | 1 method | ThoughtWorks.CruiseControl.Core.Tasks.NUnitArgument.IncludedCategories |
| ExcludedCategories | 1 method | ThoughtWorks.CruiseControl.Core.Tasks.NUnitArgument.ExcludedCategories |
| BuildCondition | 1 method | ThoughtWorks.CruiseControl.Core.Triggers.IntervalTrigger .BuildCondition |
| WorkingDirectory | 1 method | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VaultVersionChecker .WorkingDirectory |
| SessionId | 1 method | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic .SynergyConnectionInfo.SessionId |
| Delimiter | 1 method | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic .SynergyConnectionInfo.Delimiter |
| Timeout | 1 method | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic .SynergyConnectionInfo.Timeout |
| ObjectName | 1 method | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic .SynergyProjectInfo.ObjectName |
| WorkAreaPath | 1 method | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic .SynergyProjectInfo.WorkAreaPath |
| LastReconfigureTime | 1 method | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic .SynergyProjectInfo.LastReconfigureTime |
| DisplayName | 1 method | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic .SynergyParser+SynergyTaskInfo.DisplayName |
| TaskNumber | 1 method | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic .SynergyParser+SynergyTaskInfo.TaskNumber |
| TaskSynopsis | 1 method | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic .SynergyParser+SynergyTaskInfo.TaskSynopsis |
| CompletionDate | 1 method | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic .SynergyParser+SynergyTaskInfo.CompletionDate |
| Resolver | 1 method | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic .SynergyParser+SynergyTaskInfo.Resolver |
| Client | 1 method | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Perforce.P4.Client |
| ExpiryTime | 1 method | ThoughtWorks.CruiseControl.Core.Security .SessionCacheBase+SessionDetails.ExpiryTime |
| Name | 3 methods | ThoughtWorks.CruiseControl.Core.Config.Preprocessor.Constant.Name |
| Value | 3 methods | ThoughtWorks.CruiseControl.Core.Config.Preprocessor.Constant.Value |
| Enabled | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.SpeechConfiguration .Enabled |
| SpeakBuildStarted | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.SpeechConfiguration .SpeakBuildStarted |
| SpeakBuildSucceded | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.SpeechConfiguration .SpeakBuildSucceded |
| SpeakBuildFailed | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.SpeechConfiguration .SpeakBuildFailed |
| Enabled | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.GrowlConfiguration .Enabled |
| Hostname | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.GrowlConfiguration .Hostname |
| Port | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.GrowlConfiguration .Port |
| Password | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.GrowlConfiguration .Password |
| MinimumNotificationLevel | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.GrowlConfiguration .MinimumNotificationLevel |
| ShowBalloon | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration .BuildTransitionNotification.ShowBalloon |
| MinimumNotificationLevel | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration .BuildTransitionNotification.MinimumNotificationLevel |
| BrokenCommand | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.ExecCommands .BrokenCommand |
| BuildingCommand | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.ExecCommands .BuildingCommand |
| SuccessCommand | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.ExecCommands .SuccessCommand |
| NotConnectedCommand | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.ExecCommands .NotConnectedCommand |
| BrokenAndBuildingCommand | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.ExecCommands .BrokenAndBuildingCommand |
| Projects | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration .PersistentConfiguration.Projects |
| PollPeriodSeconds | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration .PersistentConfiguration.PollPeriodSeconds |
| TrayIconDoubleClickAction | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration .PersistentConfiguration.TrayIconDoubleClickAction |
| AlwaysOnTop | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration .PersistentConfiguration.AlwaysOnTop |
| ShowInTaskbar | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration .PersistentConfiguration.ShowInTaskbar |
| ReportProjectChanges | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration .PersistentConfiguration.ReportProjectChanges |
| FixUserName | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration .PersistentConfiguration.FixUserName |
| BrokenBuildSound | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.AudioFiles .BrokenBuildSound |
| FixedBuildSound | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.AudioFiles .FixedBuildSound |
| StillFailingBuildSound | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.AudioFiles .StillFailingBuildSound |
| StillSuccessfulBuildSound | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.AudioFiles .StillSuccessfulBuildSound |
| BrokenIcon | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.Icons.BrokenIcon |
| BuildingIcon | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.Icons.BuildingIcon |
| SuccessIcon | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.Icons.SuccessIcon |
| NotConnectedIcon | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.Icons .NotConnectedIcon |
| BrokenAndBuildingIcon | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.Icons .BrokenAndBuildingIcon |
| Enabled | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.X10Configuration .Enabled |
| ComPort | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.X10Configuration .ComPort |
| DeviceType | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.X10Configuration .DeviceType |
| HouseCode | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.X10Configuration .HouseCode |
| SuccessUnitCode | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.X10Configuration .SuccessUnitCode |
| FailureUnitCode | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.X10Configuration .FailureUnitCode |
| BuildingUnitCode | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.X10Configuration .BuildingUnitCode |
| StartTime | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.X10Configuration .StartTime |
| EndTime | 1 method | ThoughtWorks.CruiseControl.CCTrayLib.Configuration.X10Configuration .EndTime |
Statistics
| Stat | methodsAssignerOutsideOfMyType |
|---|---|
| Sum: | 0 |
| Average: | 0 |
| Minimum: | 0 |
| Maximum: | 0 |
| Standard deviation: | 0 |
| Variance: | 0 |
| Naming Conventions |
|
|
| Rule warning: Instance fields should be prefixed with a 'm_' |
// <Name>Instance fields should be prefixed with a 'm_'</Name>
warnif count > 0 from f in Application.Fields where
!f.NameLike (@"^m_") &&
!f.IsStatic &&
!f.IsLiteral &&
!f.IsGeneratedByCompiler &&
!f.IsSpecialName &&
!f.IsEventDelegateObject
select new { f, f.SizeOfInst }
// This naming convention provokes debate.
// Don't hesitate to customize the regex of
// NameLike to your preference.
warnif count > 0 from f in Application.Fields where
!f.NameLike (@"^m_") &&
!f.IsStatic &&
!f.IsLiteral &&
!f.IsGeneratedByCompiler &&
!f.IsSpecialName &&
!f.IsEventDelegateObject
select new { f, f.SizeOfInst }
// This naming convention provokes debate.
// Don't hesitate to customize the regex of
// NameLike to your preference.
2,388 fields matched
The following list of fields is truncated and contains only the first 100 fields of the 2388 fields matched. All matched fields could be listed in the report by unchecking the option:
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched fields.
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched fields.
| fields | Size of instance | Full Name |
|---|---|---|
| fields | Size of instance | Full Name |
| permission | 4 | ThoughtWorks.CruiseControl.Core.PermissionDeniedException.permission |
| reference | 4 | ThoughtWorks.CruiseControl.Core.BadReferenceException.reference |
| sessionToken | 4 | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase.sessionToken |
| lockObject | 4 | ThoughtWorks.CruiseControl.Remote.CruiseServerClientBase.lockObject |
| ticks | 8 | ThoughtWorks.CruiseControl.Remote.SerializableDateTime.ticks |
| status | 4 | ThoughtWorks.CruiseControl.Remote.ProjectStatus.status |
| buildStatus | 4 | ThoughtWorks.CruiseControl.Remote.ProjectStatus.buildStatus |
| activity | 4 | ThoughtWorks.CruiseControl.Remote.ProjectStatus.activity |
| name | 4 | ThoughtWorks.CruiseControl.Remote.ProjectStatus.name |
| category | 4 | ThoughtWorks.CruiseControl.Remote.ProjectStatus.category |
| webURL | 4 | ThoughtWorks.CruiseControl.Remote.ProjectStatus.webURL |
| lastBuildDate | 4 | ThoughtWorks.CruiseControl.Remote.ProjectStatus.lastBuildDate |
| lastBuildLabel | 4 | ThoughtWorks.CruiseControl.Remote.ProjectStatus.lastBuildLabel |
| lastSuccessfulBuildLabel | 4 | ThoughtWorks.CruiseControl.Remote.ProjectStatus .lastSuccessfulBuildLabel |
| nextBuildTime | 4 | ThoughtWorks.CruiseControl.Remote.ProjectStatus.nextBuildTime |
| currentBuildStage | 4 | ThoughtWorks.CruiseControl.Remote.ProjectStatus.currentBuildStage |
| _serverName | 4 | ThoughtWorks.CruiseControl.Remote.ProjectStatus._serverName |
| messages | 4 | ThoughtWorks.CruiseControl.Remote.ProjectStatus.messages |
| queue | 4 | ThoughtWorks.CruiseControl.Remote.ProjectStatus.queue |
| queuePriority | 4 | ThoughtWorks.CruiseControl.Remote.ProjectStatus.queuePriority |
| projectStatuses | 4 | ThoughtWorks.CruiseControl.Remote.CruiseServerSnapshot.projectStatuses |
| queueSetSnapshot | 4 | ThoughtWorks.CruiseControl.Remote.CruiseServerSnapshot .queueSetSnapshot |
| serverUri | 4 | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient.serverUri |
| targetServer | 4 | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient .targetServer |
| manager | 4 | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient.manager |
| userName | 4 | ThoughtWorks.CruiseControl.Remote.CruiseServerRemotingClient.userName |
| type | 4 | ThoughtWorks.CruiseControl.Remote.ProjectActivity.type |
| isList | 1 | ThoughtWorks.CruiseControl.Remote.NameValuePairSerialiser.isList |
| connection | 4 | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.connection |
| targetServer | 4 | ThoughtWorks.CruiseControl.Remote.CruiseServerClient.targetServer |
| snapshots | 4 | ThoughtWorks.CruiseControl.Remote.QueueSetSnapshot.snapshots |
| queueSnapshots | 4 | ThoughtWorks.CruiseControl.Remote.QueueSetSnapshot.queueSnapshots |
| type | 4 | ThoughtWorks.CruiseControl.Remote.ExtensionConfiguration.type |
| configurationItems | 4 | ThoughtWorks.CruiseControl.Remote.ExtensionConfiguration .configurationItems |
| queueName | 4 | ThoughtWorks.CruiseControl.Remote.QueueSnapshot.queueName |
| queueRequests | 4 | ThoughtWorks.CruiseControl.Remote.QueueSnapshot.queueRequests |
| _requests | 4 | ThoughtWorks.CruiseControl.Remote.QueueSnapshot._requests |
| buildCondition | 4 | ThoughtWorks.CruiseControl.Remote.IntegrationRequest.buildCondition |
| source | 4 | ThoughtWorks.CruiseControl.Remote.IntegrationRequest.source |
| requestTime | 8 | ThoughtWorks.CruiseControl.Remote.IntegrationRequest.requestTime |
| parameterValues | 4 | ThoughtWorks.CruiseControl.Remote.IntegrationRequest.parameterValues |
| serverAddress | 4 | ThoughtWorks.CruiseControl.Remote.RemotingConnection.serverAddress |
| client | 4 | ThoughtWorks.CruiseControl.Remote.RemotingConnection.client |
| isBusy | 1 | ThoughtWorks.CruiseControl.Remote.RemotingConnection.isBusy |
| queueSnapshots | 4 | ThoughtWorks.CruiseControl.Remote.QueueSnapshotList.queueSnapshots |
| name | 4 | ThoughtWorks.CruiseControl.Remote.ExternalLink.name |
| url | 4 | ThoughtWorks.CruiseControl.Remote.ExternalLink.url |
| queuedRequests | 4 | ThoughtWorks.CruiseControl.Remote.QueuedRequestSnapshotList .queuedRequests |
| requestedProject | 4 | ThoughtWorks.CruiseControl.Remote.NoSuchProjectException .requestedProject |
| initialisers | 4 | ThoughtWorks.CruiseControl.Remote.CruiseServerClientFactory .initialisers |
| clients | 4 | ThoughtWorks.CruiseControl.Remote.CruiseServerClientFactory.clients |
| projectName | 4 | ThoughtWorks.CruiseControl.Remote.QueuedRequestSnapshot.projectName |
| activity | 4 | ThoughtWorks.CruiseControl.Remote.QueuedRequestSnapshot.activity |
| requestTime | 8 | ThoughtWorks.CruiseControl.Remote.QueuedRequestSnapshot.requestTime |
| serverAddress | 4 | ThoughtWorks.CruiseControl.Remote.HttpConnection.serverAddress |
| isBusy | 1 | ThoughtWorks.CruiseControl.Remote.HttpConnection.isBusy |
| asyncOperations | 4 | ThoughtWorks.CruiseControl.Remote.HttpConnection.asyncOperations |
| lockObject | 4 | ThoughtWorks.CruiseControl.Remote.HttpConnection.lockObject |
| innerConnection | 4 | ThoughtWorks.CruiseControl.Remote.EncryptingConnection.innerConnection |
| cryptoKey | 4 | ThoughtWorks.CruiseControl.Remote.EncryptingConnection.cryptoKey |
| cryptoIv | 4 | ThoughtWorks.CruiseControl.Remote.EncryptingConnection.cryptoIv |
| message | 4 | ThoughtWorks.CruiseControl.Remote.Message.message |
| messageKind | 4 | ThoughtWorks.CruiseControl.Remote.Message.messageKind |
| identifier | 16 | ThoughtWorks.CruiseControl.Remote.ItemStatus.identifier |
| name | 4 | ThoughtWorks.CruiseControl.Remote.ItemStatus.name |
| status | 4 | ThoughtWorks.CruiseControl.Remote.ItemStatus.status |
| timeStarted | 5 | ThoughtWorks.CruiseControl.Remote.ItemStatus.timeStarted |
| timeCompleted | 5 | ThoughtWorks.CruiseControl.Remote.ItemStatus.timeCompleted |
| timeOfEstimatedCompletion | 5 | ThoughtWorks.CruiseControl.Remote.ItemStatus.timeOfEstimatedCompletion |
| description | 4 | ThoughtWorks.CruiseControl.Remote.ItemStatus.description |
| childItems | 4 | ThoughtWorks.CruiseControl.Remote.ItemStatus.childItems |
| parent | 4 | ThoughtWorks.CruiseControl.Remote.ItemStatus.parent |
| response | 4 | ThoughtWorks.CruiseControl.Remote.MessageReceivedEventArgs.response |
| serverUri | 4 | ThoughtWorks.CruiseControl.Remote.CruiseServerHttpClient.serverUri |
| targetServer | 4 | ThoughtWorks.CruiseControl.Remote.CruiseServerHttpClient.targetServer |
| client | 4 | ThoughtWorks.CruiseControl.Remote.CruiseServerHttpClient.client |
| name | 4 | ThoughtWorks.CruiseControl.Remote.PackageDetails.name |
| buildLabel | 4 | ThoughtWorks.CruiseControl.Remote.PackageDetails.buildLabel |
| dateTime | 8 | ThoughtWorks.CruiseControl.Remote.PackageDetails.dateTime |
| numberOfFiles | 4 | ThoughtWorks.CruiseControl.Remote.PackageDetails.numberOfFiles |
| size | 8 | ThoughtWorks.CruiseControl.Remote.PackageDetails.size |
| fileName | 4 | ThoughtWorks.CruiseControl.Remote.PackageDetails.fileName |
| timeOfSnapshot | 8 | ThoughtWorks.CruiseControl.Remote.ProjectStatusSnapshot.timeOfSnapshot |
| name | 4 | ThoughtWorks.CruiseControl.Remote.NameValuePair.name |
| namedValue | 4 | ThoughtWorks.CruiseControl.Remote.NameValuePair.namedValue |
| fileData | 4 | ThoughtWorks.CruiseControl.Remote.RemotingFileTransfer.fileData |
| fileLength | 4 | ThoughtWorks.CruiseControl.Remote.RemotingFileTransfer.fileLength |
| permissionName | 4 | ThoughtWorks.CruiseControl.Remote.Security.SecurityCheckDiagnostics .permissionName |
| projectName | 4 | ThoughtWorks.CruiseControl.Remote.Security.SecurityCheckDiagnostics .projectName |
| userName | 4 | ThoughtWorks.CruiseControl.Remote.Security.SecurityCheckDiagnostics .userName |
| isAllowed | 1 | ThoughtWorks.CruiseControl.Remote.Security.SecurityCheckDiagnostics .isAllowed |
| innerFilter | 4 | ThoughtWorks.CruiseControl.Remote.Security.AuditFilterBase.innerFilter |
| project | 4 | ThoughtWorks.CruiseControl.Remote.Security.ProjectAuditFilter.project |
| filterStartDate | 8 | ThoughtWorks.CruiseControl.Remote.Security.DateRangeAuditFilter .filterStartDate |
| filterEndDate | 8 | ThoughtWorks.CruiseControl.Remote.Security.DateRangeAuditFilter .filterEndDate |
| type | 4 | ThoughtWorks.CruiseControl.Remote.Security.EventTypeAuditFilter.type |
| user | 4 | ThoughtWorks.CruiseControl.Remote.Security.UserAuditFilter.user |
| right | 4 | ThoughtWorks.CruiseControl.Remote.Security.SecurityRightAuditFilter .right |
| userName | 4 | ThoughtWorks.CruiseControl.Remote.Security.UserDetails.userName |
| displayName | 4 | ThoughtWorks.CruiseControl.Remote.Security.UserDetails.displayName |
Statistics
| Stat | Size of instance |
|---|---|
| Sum: | 9 263 |
| Average: | 3.879 |
| Minimum: | 1 |
| Maximum: | 16 |
| Standard deviation: | 1.1331 |
| Variance: | 1.2839 |
| Rule warning: Static fields should be prefixed with a 's_' |
// <Name>Static fields should be prefixed with a 's_'</Name>
warnif count > 0 from f in Application.Fields where
!f.NameLike (@"^s_") &&
f.IsStatic &&
!f.IsLiteral &&
!f.IsGeneratedByCompiler &&
!f.IsSpecialName &&
!f.IsEventDelegateObject
select new { f, f.SizeOfInst }
// This naming convention provokes debate.
// Don't hesitate to customize the regex of
// NameLike to your preference.
warnif count > 0 from f in Application.Fields where
!f.NameLike (@"^s_") &&
f.IsStatic &&
!f.IsLiteral &&
!f.IsGeneratedByCompiler &&
!f.IsSpecialName &&
!f.IsEventDelegateObject
select new { f, f.SizeOfInst }
// This naming convention provokes debate.
// Don't hesitate to customize the regex of
// NameLike to your preference.
179 fields matched
The following list of fields is truncated and contains only the first 100 fields of the 179 fields matched. All matched fields could be listed in the report by unchecking the option:
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched fields.
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched fields.
| fields | Size of instance | Full Name |
|---|---|---|
| fields | Size of instance | Full Name |
| Default | N/A | ThoughtWorks.CruiseControl.Remote.SerializableDateTime.Default |
| CheckingModifications | N/A | ThoughtWorks.CruiseControl.Remote.ProjectActivity .CheckingModifications |
| Building | N/A | ThoughtWorks.CruiseControl.Remote.ProjectActivity.Building |
| Sleeping | N/A | ThoughtWorks.CruiseControl.Remote.ProjectActivity.Sleeping |
| Pending | N/A | ThoughtWorks.CruiseControl.Remote.ProjectActivity.Pending |
| messageTypes | N/A | ThoughtWorks.CruiseControl.Remote.XmlConversionUtil.messageTypes |
| messageSerialisers | N/A | ThoughtWorks.CruiseControl.Remote.XmlConversionUtil.messageSerialisers |
| NullRequest | N/A | ThoughtWorks.CruiseControl.Remote.IntegrationRequest.NullRequest |
| dayOfWeekRegex | N/A | ThoughtWorks.CruiseControl.Remote.Parameters.DateParameter .dayOfWeekRegex |
| dayOfMonthRegex | N/A | ThoughtWorks.CruiseControl.Remote.Parameters.DateParameter .dayOfMonthRegex |
| NameTerminator | N/A | ThoughtWorks.CruiseControl.Remote.Mono.Option.NameTerminator |
| DefaultWorkingSubDirectory | N/A | ThoughtWorks.CruiseControl.Core.ProjectBase.DefaultWorkingSubDirectory |
| DefaultArtifactSubDirectory | N/A | ThoughtWorks.CruiseControl.Core.ProjectBase .DefaultArtifactSubDirectory |
| BuildNumber | N/A | ThoughtWorks.CruiseControl.Core.LogFile.BuildNumber |
| RemotingConfigurationFile | N/A | ThoughtWorks.CruiseControl.Core.CruiseServerFactory .RemotingConfigurationFile |
| Initial | N/A | ThoughtWorks.CruiseControl.Core.IntegrationSummary.Initial |
| DefaultScriptsDirectory | N/A | ThoughtWorks.CruiseControl.Core.Tasks.PowerShellTask .DefaultScriptsDirectory |
| parameterRegex | N/A | ThoughtWorks.CruiseControl.Core.Tasks.DynamicValueUtility .parameterRegex |
| paramPartRegex | N/A | ThoughtWorks.CruiseControl.Core.Tasks.DynamicValueUtility .paramPartRegex |
| contexts | N/A | ThoughtWorks.CruiseControl.Core.Tasks.SynchronisationTask.contexts |
| lockObject | N/A | ThoughtWorks.CruiseControl.Core.Tasks.SynchronisationTask.lockObject |
| managerFactory | N/A | ThoughtWorks.CruiseControl.Core.Queues.IntegrationQueueManagerFactory .managerFactory |
| blockingLockObject | N/A | ThoughtWorks.CruiseControl.Core.Queues.IntegrationQueue .blockingLockObject |
| queueLockSync | N/A | ThoughtWorks.CruiseControl.Core.Queues.IntegrationQueue.queueLockSync |
| DefaultDirection | N/A | ThoughtWorks.CruiseControl.Core.Logging.CircularArray.DefaultDirection |
| logger | N/A | ThoughtWorks.CruiseControl.Core.Util.Log.logger |
| loggingEnabled | N/A | ThoughtWorks.CruiseControl.Core.Util.Log.loggingEnabled |
| frequency | N/A | ThoughtWorks.CruiseControl.Core.Util.AccurateTimer.frequency |
| processMonitors | N/A | ThoughtWorks.CruiseControl.Core.Util.ProcessExecutor+ProcessMonitor .processMonitors |
| lockObject | N/A | ThoughtWorks.CruiseControl.Core.Util.ProcessExecutor+ProcessMonitor .lockObject |
| defaultProgramDataFolder | N/A | ThoughtWorks.CruiseControl.Core.Util.PathUtils .defaultProgramDataFolder |
| DefaultTimeout | N/A | ThoughtWorks.CruiseControl.Core.Util.Timeout.DefaultTimeout |
| isRunningOnWindows | N/A | ThoughtWorks.CruiseControl.Core.Util.ExecutionEnvironment .isRunningOnWindows |
| NullStringRegex | N/A | ThoughtWorks.CruiseControl.Core.Util.StringUtil.NullStringRegex |
| urlEncodeRegex | N/A | ThoughtWorks.CruiseControl.Core.Util.StringUtil.urlEncodeRegex |
| hiddenTextRegex | N/A | ThoughtWorks.CruiseControl.Core.Util.ProcessArgumentBuilder .hiddenTextRegex |
| Temp | N/A | ThoughtWorks.CruiseControl.Core.Util.SystemPath.Temp |
| values | N/A | ThoughtWorks.CruiseControl.Core.Util.TimeUnits.values |
| MILLIS | N/A | ThoughtWorks.CruiseControl.Core.Util.TimeUnits.MILLIS |
| SECONDS | N/A | ThoughtWorks.CruiseControl.Core.Util.TimeUnits.SECONDS |
| MINUTES | N/A | ThoughtWorks.CruiseControl.Core.Util.TimeUnits.MINUTES |
| HOURS | N/A | ThoughtWorks.CruiseControl.Core.Util.TimeUnits.HOURS |
| store | N/A | ThoughtWorks.CruiseControl.Core.Util.DefaultShadowCopier.store |
| ThisDeclaringType | N/A | ThoughtWorks.CruiseControl.Core.Util.Log4NetTrace.TraceLogImpl .ThisDeclaringType |
| FolderInfoSeparator | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.StarTeamHistoryParser .FolderInfoSeparator |
| FileHistorySeparator | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.StarTeamHistoryParser .FileHistorySeparator |
| MatchVaultElements | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vault3 .MatchVaultElements |
| DELETED_DIR_TAG | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.RobocopyHistoryParser .DELETED_DIR_TAG |
| DELETED_FILE_TAG | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.RobocopyHistoryParser .DELETED_FILE_TAG |
| ADDED_FILE_TAG | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.RobocopyHistoryParser .ADDED_FILE_TAG |
| UPDATED_FILE_TAG | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.RobocopyHistoryParser .UPDATED_FILE_TAG |
| ParseDeletedDirectoryRegex | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.RobocopyHistoryParser .ParseDeletedDirectoryRegex |
| ParseDeletedFileRegex | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.RobocopyHistoryParser .ParseDeletedFileRegex |
| ParseAddedFileRegex | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.RobocopyHistoryParser .ParseAddedFileRegex |
| ParseUpdatedFileRegex | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.RobocopyHistoryParser .ParseUpdatedFileRegex |
| DELIMITER | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.ClearCaseHistoryParser .DELIMITER |
| END_OF_LINE_DELIMITER | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.ClearCaseHistoryParser .END_OF_LINE_DELIMITER |
| REGEX_FILE_NAME | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VSSParser .REGEX_FILE_NAME |
| UtcXmlDateFormat | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn.UtcXmlDateFormat |
| FILE_REGEX | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.AlienbrainHistoryParser .FILE_REGEX |
| DELIMITER | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.AlienbrainHistoryParser .DELIMITER |
| successExitCodes | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.RobocopySourceControl .successExitCodes |
| standardArguments | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.RobocopySourceControl .standardArguments |
| CVS_FILE_DELIM | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.CvsHistoryParser .CVS_FILE_DELIM |
| CvsModificationDelimiter | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.CvsHistoryParser .CvsModificationDelimiter |
| CVS_RCSFILE_LINE | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.CvsHistoryParser .CVS_RCSFILE_LINE |
| CVS_REVISION_DATE | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.CvsHistoryParser .CVS_REVISION_DATE |
| CVS_REVISION_DEAD | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.CvsHistoryParser .CVS_REVISION_DEAD |
| NO_CHANGE | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Alienbrain.NO_CHANGE |
| FORMAT | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.PlasticSCM.FORMAT |
| usageCount | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mks.usageCount |
| usageCountLock | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mks.usageCountLock |
| modificationList | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.GitHistoryParser .modificationList |
| changeList | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.GitHistoryParser .changeList |
| HISTORY_COMMAND_FORMAT | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.StarTeam .HISTORY_COMMAND_FORMAT |
| GET_SOURCE_COMMAND_FORMAT | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.StarTeam .GET_SOURCE_COMMAND_FORMAT |
| _searchRegEx | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.PvcsHistoryParser ._searchRegEx |
| _archiveRegEx | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.PvcsHistoryParser ._archiveRegEx |
| _revisionRegEx | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.PvcsHistoryParser ._revisionRegEx |
| PadLock | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Telelogic.SynergyCommand .PadLock |
| modRegex | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Perforce.P4HistoryParser .modRegex |
| changeRegex | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Perforce.P4HistoryParser .changeRegex |
| COMMAND_DATE_FORMAT | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Perforce.P4 .COMMAND_DATE_FORMAT |
| EXIT_CODE_PATTERN | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Perforce.P4 .EXIT_CODE_PATTERN |
| DEFAULT_ERROR_PATTERN | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Perforce.P4 .DEFAULT_ERROR_PATTERN |
| FILES_UP_TO_DATE_PATTERN | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Perforce.P4 .FILES_UP_TO_DATE_PATTERN |
| DEFAULT_REGEX_OPTIONS | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Perforce.P4 .DEFAULT_REGEX_OPTIONS |
| ClientPrefix | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Perforce .ProcessP4Initializer.ClientPrefix |
| BK_CHANGESET_LINE | N/A | ThoughtWorks.CruiseControl.Core.Sourcecontrol.BitKeeper .BitKeeperHistoryParser.BK_CHANGESET_LINE |
| _const_ref_matcher | N/A | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment._const_ref_matcher |
| DEFAULT_EXTENSION | N/A | ThoughtWorks.CruiseControl.Core.Reporting.Dashboard.Navigation .DefaultUrlBuilder.DEFAULT_EXTENSION |
| BuildRESTSpecifier | N/A | ThoughtWorks.CruiseControl.Core.Reporting.Dashboard.Navigation .DefaultCruiseUrlBuilder.BuildRESTSpecifier |
| ProjectRESTSpecifier | N/A | ThoughtWorks.CruiseControl.Core.Reporting.Dashboard.Navigation .DefaultCruiseUrlBuilder.ProjectRESTSpecifier |
| ServerRESTSpecifier | N/A | ThoughtWorks.CruiseControl.Core.Reporting.Dashboard.Navigation .DefaultCruiseUrlBuilder.ServerRESTSpecifier |
| DEFAULT_LOG_SUBDIRECTORY | N/A | ThoughtWorks.CruiseControl.Core.Publishers.XmlLogPublisher .DEFAULT_LOG_SUBDIRECTORY |
| HtmlCSSFile | N/A | ThoughtWorks.CruiseControl.Core.Publishers.HtmlDetailsMessageBuilder .HtmlCSSFile |
| fileSystem | N/A | ThoughtWorks.CruiseControl.WebDashboard.IO.ProgramDataFolder .fileSystem |
| executionEnvironment | N/A | ThoughtWorks.CruiseControl.WebDashboard.IO.ProgramDataFolder .executionEnvironment |
| location | N/A | ThoughtWorks.CruiseControl.WebDashboard.IO.ProgramDataFolder.location |
| NOT_AVAILABLE | N/A | ThoughtWorks.CruiseControl.WebDashboard.IO.ConditionalGetFingerprint .NOT_AVAILABLE |
Statistics
| Stat | Size of instance |
|---|---|
| Sum: | 0 |
| Average: | 0 |
| Minimum: | 0 |
| Maximum: | 0 |
| Standard deviation: | 0 |
| Variance: | 0 |
| Rule warning: Interface name should begin with a 'I' |
// <Name>Interface name should begin with a 'I'</Name>
warnif count > 0 from t in Application.Types where
t.IsInterface
// Discard outter type(s) name prefix for nested types
let name = !t.IsNested ? t.Name : t.Name.Substring(t.Name.LastIndexOf('+') + 1, t.Name.Length - t.Name.LastIndexOf('+') - 1)
where name[0] != 'I'
select t
warnif count > 0 from t in Application.Types where
t.IsInterface
// Discard outter type(s) name prefix for nested types
let name = !t.IsNested ? t.Name : t.Name.Substring(t.Name.LastIndexOf('+') + 1, t.Name.Length - t.Name.LastIndexOf('+') - 1)
where name[0] != 'I'
select t
5 types matched
| types | Full Name |
|---|---|
| types | Full Name |
| DecoratableByType | Objection.DecoratableByType |
| ObjectSource | Objection.ObjectSource |
| ObjectionManager | Objection.ObjectionManager |
| ConstructorSelectionStrategy | Objection.ConstructorSelectionStrategy |
| TypeToTypeMap | Objection.TypeToTypeMap |
Statistics
| Stat |
|---|
| Sum: |
| Average: |
| Minimum: |
| Maximum: |
| Standard deviation: |
| Variance: |
| Rule warning: Abstract base class should be suffixed with 'Base' |
// <Name>Abstract base class should be suffixed with 'Base'</Name>
warnif count > 0 from t in Application.Types where
t.IsAbstract &&
t.IsClass &&
// equivalent to: DepthOfDeriveFrom "System.Object" == 1
t.DepthOfInheritance == 1 &&
((!t.IsGeneric && !t.NameLike (@"Base$")) ||
( t.IsGeneric && !t.NameLike (@"Base<")))
select new { t, t.DepthOfInheritance }
warnif count > 0 from t in Application.Types where
t.IsAbstract &&
t.IsClass &&
// equivalent to: DepthOfDeriveFrom "System.Object" == 1
t.DepthOfInheritance == 1 &&
((!t.IsGeneric && !t.NameLike (@"Base$")) ||
( t.IsGeneric && !t.NameLike (@"Base<")))
select new { t, t.DepthOfInheritance }
6 types matched
| types | Depth of inheritance | Full Name |
|---|---|---|
| types | Depth of inheritance | Full Name |
| CommunicationsMessage | 1 | ThoughtWorks.CruiseControl.Remote.Messages.CommunicationsMessage |
| Option | 1 | ThoughtWorks.CruiseControl.Remote.Mono.Option |
| VSSParser | 1 | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VSSParser |
| ChannelSecurityInformation | 1 | ThoughtWorks.CruiseControl.Core.Security.ChannelSecurityInformation |
| ProjectConfigurableBuildPlugin | 1 | ThoughtWorks.CruiseControl.WebDashboard.Dashboard.GenericPlugins .ProjectConfigurableBuildPlugin |
| ErrorLevel | 1 | ThoughtWorks.CruiseControl.CCTrayLib.ErrorLevel |
Statistics
| Stat | Depth of inheritance |
|---|---|
| Sum: | 6 |
| Average: | 1 |
| Minimum: | 1 |
| Maximum: | 1 |
| Standard deviation: | 0 |
| Variance: | 0 |
| Rule warning: Methods name should begin with an Upper character |
// <Name>Methods name should begin with an Upper character</Name>
warnif count > 0 from m in JustMyCode.Methods where
!m.NameLike (@"^[A-Z]") &&
!m.IsSpecialName &&
!m.IsGeneratedByCompiler
select m
// The name of a regular method should
// begin with an Upper letter.
warnif count > 0 from m in JustMyCode.Methods where
!m.NameLike (@"^[A-Z]") &&
!m.IsSpecialName &&
!m.IsGeneratedByCompiler
select m
// The name of a regular method should
// begin with an Upper letter.
157 methods matched
The following list of methods is truncated and contains only the first 100 methods of the 157 methods matched. All matched methods could be listed in the report by unchecking the option:
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched methods.
NDepend Project Properties > Report > Avoid too big report for large code base > Don't show more than 100 matched items for a Rule violated
It is recommended to use the NDepend interactive UI capabilities to browse a large list of matched methods.
| methods | Full Name |
|---|---|
| methods | Full Name |
| server_IntegrationCompleted(Object,IntegrationCompletedEventArgs) | ThoughtWorks.CruiseControl.Core.Extensions .IntegrationRequestThrottleExtension.server_IntegrationCompleted (Object,IntegrationCompletedEventArgs) |
| server_IntegrationStarted(Object,IntegrationStartedEventArgs) | ThoughtWorks.CruiseControl.Core.Extensions .IntegrationRequestThrottleExtension.server_IntegrationStarted(Object ,IntegrationStartedEventArgs) |
| makeString(ICollection) | ThoughtWorks.CruiseControl.Core.Util.TimeUnits.makeString(ICollection) |
| parseItem(String) | ThoughtWorks.CruiseControl.Core.Sourcecontrol.VstsHistoryParser .parseItem(String) |
| projectExists(IIntegrationResult) | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vsts.projectExists (IIntegrationResult) |
| workspaceIsMappedCorrectly(IIntegrationResult) | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vsts .workspaceIsMappedCorrectly(IIntegrationResult) |
| lookForErrorReturns(ProcessResult) | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vsts.lookForErrorReturns (ProcessResult) |
| deleteDirectory(String) | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vsts.deleteDirectory (String) |
| workspaceExists(IIntegrationResult) | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vsts.workspaceExists (IIntegrationResult) |
| define_text_constant(String,String) | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.define_text_constant(String,String) |
| define_nodeset_constant(String,XPathNodeIterator) | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.define_nodeset_constant(String ,XPathNodeIterator) |
| eval_text_constants(String) | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.eval_text_constants(String) |
| eval_constant(String) | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.eval_constant(String) |
| eval_text_constant(String) | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.eval_text_constant(String) |
| _CheckForCycle(String) | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment._CheckForCycle(String) |
| unwind_eval_stack() | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.unwind_eval_stack() |
| push_stack() | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.push_stack() |
| pop_stack() | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.pop_stack() |
| push_include(String) | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.push_include(String) |
| pop_include() | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment.pop_include() |
| _IsDefined(String) | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment._IsDefined(String) |
| _SetConstant(Constant) | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment._SetConstant(Constant) |
| _GetConstantDef(String) | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment._GetConstantDef(String) |
| _InternalGetSymbolDef(String) | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment._InternalGetSymbolDef(String) |
| _IsDefinedInCurrentFrame(String) | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment._IsDefinedInCurrentFrame(String) |
| _CheckAlreadyDefined(String) | ThoughtWorks.CruiseControl.Core.Config.Preprocessor .ConfigPreprocessorEnvironment._CheckAlreadyDefined(String) |
| sndPlaySoundA(String,Int32) | ThoughtWorks.CruiseControl.CCTrayLib.Audio.sndPlaySoundA(String,Int32) |
| chkShowBalloons_CheckedChanged(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .GeneralSettingsControl.chkShowBalloons_CheckedChanged(Object ,EventArgs) |
| refreshTimer_Tick(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.CurrentStatusWindow .refreshTimer_Tick(Object,EventArgs) |
| refreshCommand_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.CurrentStatusWindow .refreshCommand_Click(Object,EventArgs) |
| displayWorker_DoWork(Object,DoWorkEventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.CurrentStatusWindow .displayWorker_DoWork(Object,DoWorkEventArgs) |
| displayWorker_RunWorkerCompleted(Object,RunWorkerCompletedEventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.CurrentStatusWindow .displayWorker_RunWorkerCompleted(Object,RunWorkerCompletedEventArgs) |
| statusExplorer_AfterSelect(Object,TreeViewEventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.CurrentStatusWindow .statusExplorer_AfterSelect(Object,TreeViewEventArgs) |
| checkBoxX10Enabled_CheckedChanged(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.X10SettingsControl .checkBoxX10Enabled_CheckedChanged(Object,EventArgs) |
| timeWithGoodDate(DateTime) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.X10SettingsControl .timeWithGoodDate(DateTime) |
| checkBoxRemoteGrowl_CheckedChanged(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.GrowlSettingsControl .checkBoxRemoteGrowl_CheckedChanged(Object,EventArgs) |
| textBoxPort_Leave(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.GrowlSettingsControl .textBoxPort_Leave(Object,EventArgs) |
| checkBoxEnabled_CheckedChanged(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.GrowlSettingsControl .checkBoxEnabled_CheckedChanged(Object,EventArgs) |
| btnOK_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .CCTrayMultiSettingsForm.btnOK_Click(Object,EventArgs) |
| saveSettingsButton_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .CCTrayMultiSettingsForm.saveSettingsButton_Click(Object,EventArgs) |
| loadSettingsButton_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .CCTrayMultiSettingsForm.loadSettingsButton_Click(Object,EventArgs) |
| linkLabel1_LinkClicked(Object,LinkLabelLinkClickedEventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.About .linkLabel1_LinkClicked(Object,LinkLabelLinkClickedEventArgs) |
| famfamfamLink_LinkClicked(Object,LinkLabelLinkClickedEventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.About .famfamfamLink_LinkClicked(Object,LinkLabelLinkClickedEventArgs) |
| buildButton_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.BuildParameters .buildButton_Click(Object,EventArgs) |
| parameters_PropertyValueChanged(Object,PropertyValueChangedEventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.BuildParameters .parameters_PropertyValueChanged(Object,PropertyValueChangedEventArgs) |
| rdoDashboard_CheckedChanged(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AddBuildServer .rdoDashboard_CheckedChanged(Object,EventArgs) |
| rdoRemoting_CheckedChanged(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AddBuildServer .rdoRemoting_CheckedChanged(Object,EventArgs) |
| rdoHttp_CheckedChanged(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AddBuildServer .rdoHttp_CheckedChanged(Object,EventArgs) |
| rdoExtension_CheckedChanged(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AddBuildServer .rdoExtension_CheckedChanged(Object,EventArgs) |
| btnOK_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AddBuildServer .btnOK_Click(Object,EventArgs) |
| panel4_Paint(Object,PaintEventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AddBuildServer .panel4_Paint(Object,PaintEventArgs) |
| panel3_Paint(Object,PaintEventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AddBuildServer .panel3_Paint(Object,PaintEventArgs) |
| panel2_Paint(Object,PaintEventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AddBuildServer .panel2_Paint(Object,PaintEventArgs) |
| panel1_Paint(Object,PaintEventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AddBuildServer .panel1_Paint(Object,PaintEventArgs) |
| connectToOldServer_CheckedChanged(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AddBuildServer .connectToOldServer_CheckedChanged(Object,EventArgs) |
| remotingEncryption_CheckedChanged(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AddBuildServer .remotingEncryption_CheckedChanged(Object,EventArgs) |
| connectToOldDashboard_CheckedChanged(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AddBuildServer .connectToOldDashboard_CheckedChanged(Object,EventArgs) |
| httpEncryption_CheckedChanged(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AddBuildServer .httpEncryption_CheckedChanged(Object,EventArgs) |
| menuFileExit_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .menuFileExit_Click(Object,EventArgs) |
| lvProjects_SelectedIndexChanged(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .lvProjects_SelectedIndexChanged(Object,EventArgs) |
| mnuForce_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .mnuForce_Click(Object,EventArgs) |
| mnuAbort_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .mnuAbort_Click(Object,EventArgs) |
| mnuCopyBuildLabel_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .mnuCopyBuildLabel_Click(Object,EventArgs) |
| mnuCancelPending_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .mnuCancelPending_Click(Object,EventArgs) |
| btnForceBuild_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .btnForceBuild_Click(Object,EventArgs) |
| mnuWebPage_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .mnuWebPage_Click(Object,EventArgs) |
| lvProjects_DoubleClick(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .lvProjects_DoubleClick(Object,EventArgs) |
| mnuViewIcons_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .mnuViewIcons_Click(Object,EventArgs) |
| mnuViewList_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .mnuViewList_Click(Object,EventArgs) |
| mnuViewDetails_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .mnuViewDetails_Click(Object,EventArgs) |
| mnuAbout_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .mnuAbout_Click(Object,EventArgs) |
| projectContextMenu_Popup(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .projectContextMenu_Popup(Object,EventArgs) |
| mnuFilePreferences_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .mnuFilePreferences_Click(Object,EventArgs) |
| mnuView_Popup(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .mnuView_Popup(Object,EventArgs) |
| mnuShow_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .mnuShow_Click(Object,EventArgs) |
| trayIcon_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .trayIcon_Click(Object,EventArgs) |
| trayIcon_DoubleClick(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .trayIcon_DoubleClick(Object,EventArgs) |
| lvProjects_ColumnClick(Object,ColumnClickEventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .lvProjects_ColumnClick(Object,ColumnClickEventArgs) |
| mnuFixBuild_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .mnuFixBuild_Click(Object,EventArgs) |
| btnToggleQueueView_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .btnToggleQueueView_Click(Object,EventArgs) |
| queueTreeView_MouseUp(Object,MouseEventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .queueTreeView_MouseUp(Object,MouseEventArgs) |
| mnuQueueCancelPending_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .mnuQueueCancelPending_Click(Object,EventArgs) |
| mon_Polled(Object,MonitorPolledEventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm.mon_Polled (Object,MonitorPolledEventArgs) |
| btnStartStopProject_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .btnStartStopProject_Click(Object,EventArgs) |
| mnuStart_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .mnuStart_Click(Object,EventArgs) |
| mnuStop_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .mnuStop_Click(Object,EventArgs) |
| currentStatusMenu_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .currentStatusMenu_Click(Object,EventArgs) |
| packagesMenu_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .packagesMenu_Click(Object,EventArgs) |
| closeUpdateButton_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .closeUpdateButton_Click(Object,EventArgs) |
| updateProjectsButton_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm .updateProjectsButton_Click(Object,EventArgs) |
| listLoader_DoWork(Object,DoWorkEventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.PackagesListForm .listLoader_DoWork(Object,DoWorkEventArgs) |
| listLoader_RunWorkerCompleted(Object,RunWorkerCompletedEventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.PackagesListForm .listLoader_RunWorkerCompleted(Object,RunWorkerCompletedEventArgs) |
| refreshButton_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.PackagesListForm .refreshButton_Click(Object,EventArgs) |
| downloadButton_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.PackagesListForm .downloadButton_Click(Object,EventArgs) |
| packageList_DoubleClick(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.PackagesListForm .packageList_DoubleClick(Object,EventArgs) |
| downloader_DoWork(Object,DoWorkEventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.PackagesListForm .downloader_DoWork(Object,DoWorkEventArgs) |
| downloader_RunWorkerCompleted(Object,RunWorkerCompletedEventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.PackagesListForm .downloader_RunWorkerCompleted(Object,RunWorkerCompletedEventArgs) |
| downloader_ProgressChanged(Object,ProgressChangedEventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.PackagesListForm .downloader_ProgressChanged(Object,ProgressChangedEventArgs) |
| btnAddServer_Click(Object,EventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AddProjects .btnAddServer_Click(Object,EventArgs) |
| lbProject_KeyDown(Object,KeyEventArgs) | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AddProjects .lbProject_KeyDown(Object,KeyEventArgs) |
Statistics
| Stat |
|---|
| Sum: |
| Average: |
| Minimum: |
| Maximum: |
| Standard deviation: |
| Variance: |
| Rule warning: Avoid types with name too long |
// <Name>Avoid types with name too long</Name>
warnif count > 0 from t in Application.Types
where !t.IsGeneratedByCompiler
where t.SimpleName.Length > 35
select new { t, t.SimpleName }
warnif count > 0 from t in Application.Types
where !t.IsGeneratedByCompiler
where t.SimpleName.Length > 35
select new { t, t.SimpleName }
18 types matched
| types | SimpleName | Full Name |
|---|---|---|
| types | SimpleName | Full Name |
| MaxLengthConstructorSelectionStrategy | MaxLengthConstructorSelectionStrategy | Objection.MaxLengthConstructorSelectionStrategy |
| IntegrationPerformanceCountersExtension | IntegrationPerformanceCountersExtension | ThoughtWorks.CruiseControl.Core.Extensions .IntegrationPerformanceCountersExtension |
| ServerSecurityConfigurationInformation | ServerSecurityConfigurationInformation | ThoughtWorks.CruiseControl.Core.Security .ServerSecurityConfigurationInformation |
| ProjectSecurityConfigurationInformation | ProjectSecurityConfigurationInformation | ThoughtWorks.CruiseControl.Core.Security .ProjectSecurityConfigurationInformation |
| CruiseServerSnapshotListAndExceptions | CruiseServerSnapshotListAndExceptions | ThoughtWorks.CruiseControl.WebDashboard.ServerConnection .CruiseServerSnapshotListAndExceptions |
| ServerAggregatingCruiseManagerWrapper | ServerAggregatingCruiseManagerWrapper | ThoughtWorks.CruiseControl.WebDashboard.ServerConnection .ServerAggregatingCruiseManagerWrapper |
| NetReflectorRemoteServicesConfiguration | NetReflectorRemoteServicesConfiguration | ThoughtWorks.CruiseControl.WebDashboard.Configuration .NetReflectorRemoteServicesConfiguration |
| LazilyInitialisingVelocityTransformer | LazilyInitialisingVelocityTransformer | ThoughtWorks.CruiseControl.WebDashboard.MVC.View .LazilyInitialisingVelocityTransformer |
| VelocityViewGeneratorWithTransformer | VelocityViewGeneratorWithTransformer | ThoughtWorks.CruiseControl.WebDashboard.MVC.View .VelocityViewGeneratorWithTransformer |
| ImmutableNamedActionWithoutSiteTemplate | ImmutableNamedActionWithoutSiteTemplate | ThoughtWorks.CruiseControl.WebDashboard.Dashboard .ImmutableNamedActionWithoutSiteTemplate |
| ServerSecurityConfigurationServerPlugin | ServerSecurityConfigurationServerPlugin | ThoughtWorks.CruiseControl.WebDashboard.Plugins.ServerReport .ServerSecurityConfigurationServerPlugin |
| ServerSecurityConfigurationProjectPlugin | ServerSecurityConfigurationProjectPlugin | ThoughtWorks.CruiseControl.WebDashboard.Plugins.ProjectReport .ServerSecurityConfigurationProjectPlugin |
| BuildReportXslFilenameSerialiserFactory | BuildReportXslFilenameSerialiserFactory | ThoughtWorks.CruiseControl.WebDashboard.Plugins.BuildReport .BuildReportXslFilenameSerialiserFactory |
| ProjectConfigurationListViewItemAdaptor | ProjectConfigurationListViewItemAdaptor | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .ProjectConfigurationListViewItemAdaptor |
| ResourceIntegrationQueueIconProvider | ResourceIntegrationQueueIconProvider | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .ResourceIntegrationQueueIconProvider |
| ConfigurableProjectStateIconProvider | ConfigurableProjectStateIconProvider | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .ConfigurableProjectStateIconProvider |
| MonitorServerQueueChangedEventHandler | MonitorServerQueueChangedEventHandler | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring .MonitorServerQueueChangedEventHandler |
| ExtensionTransportProjectListRetriever | ExtensionTransportProjectListRetriever | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring .ExtensionTransportProjectListRetriever |
Statistics
| Stat | SimpleName |
|---|---|
| Sum: | 0 |
| Average: | 0 |
| Minimum: | 0 |
| Maximum: | 0 |
| Standard deviation: | 0 |
| Variance: | 0 |
| Rule warning: Avoid methods with name too long |
// <Name>Avoid methods with name too long</Name>
warnif count > 0 from m in Application.Methods where
!m.IsExplicitInterfaceImpl &&
!m.IsGeneratedByCompiler &&
((!m.IsSpecialName && m.SimpleName.Length > 35) ||
// Property getter/setter are prefixed with "get_" "set_" of length 4.
( m.IsSpecialName && m.SimpleName.Length - 4 > 35))
select new { m, m.SimpleName }
// The regex matches methods with name longer
// than 35 characters.
// Method Name doesn't contain the type and namespace
// prefix, FullName does.
// The regex computes the method name length from
// the beginning until the first open parenthesis
// or first lower than (for generic methods).
// Explicit Interface Implementation methods are
// discarded because their names are prefixed
// with the interface name.
warnif count > 0 from m in Application.Methods where
!m.IsExplicitInterfaceImpl &&
!m.IsGeneratedByCompiler &&
((!m.IsSpecialName && m.SimpleName.Length > 35) ||
// Property getter/setter are prefixed with "get_" "set_" of length 4.
( m.IsSpecialName && m.SimpleName.Length - 4 > 35))
select new { m, m.SimpleName }
// The regex matches methods with name longer
// than 35 characters.
// Method Name doesn't contain the type and namespace
// prefix, FullName does.
// The regex computes the method name length from
// the beginning until the first open parenthesis
// or first lower than (for generic methods).
// Explicit Interface Implementation methods are
// discarded because their names are prefixed
// with the interface name.
47 methods matched
| methods | SimpleName | Full Name |
|---|---|---|
| methods | SimpleName | Full Name |
| AllowOneThreadPerAppDomainToDoResolution(Type) | AllowOneThreadPerAppDomainToDoResolution | Objection.CachingImplementationResolver .AllowOneThreadPerAppDomainToDoResolution(Type) |
| ThrowExceptionForUnfoundImplementation(Type) | ThrowExceptionForUnfoundImplementation | Objection.NMockAwareImplementationResolver .ThrowExceptionForUnfoundImplementation(Type) |
| OverrideWithSpecifiedDependencyImplementationIfNecessary(Type,Type ,String) | OverrideWithSpecifiedDependencyImplementationIfNecessary | Objection.ObjectionStore .OverrideWithSpecifiedDependencyImplementationIfNecessary(Type,Type ,String) |
| get_stopProjectOnReachingMaxSourceControlRetries() | get_stopProjectOnReachingMaxSourceControlRetries | ThoughtWorks.CruiseControl.Core.IProject .get_stopProjectOnReachingMaxSourceControlRetries() |
| get_stopProjectOnReachingMaxSourceControlRetries() | get_stopProjectOnReachingMaxSourceControlRetries | ThoughtWorks.CruiseControl.Core.Workflow .get_stopProjectOnReachingMaxSourceControlRetries() |
| get_stopProjectOnReachingMaxSourceControlRetries() | get_stopProjectOnReachingMaxSourceControlRetries | ThoughtWorks.CruiseControl.Core.Project .get_stopProjectOnReachingMaxSourceControlRetries() |
| set_stopProjectOnReachingMaxSourceControlRetries(Boolean) | set_stopProjectOnReachingMaxSourceControlRetries | ThoughtWorks.CruiseControl.Core.Project .set_stopProjectOnReachingMaxSourceControlRetries(Boolean) |
| KillProcessCurrentlyRunningForProject(String) | KillProcessCurrentlyRunningForProject | ThoughtWorks.CruiseControl.Core.Util.ProcessExecutor .KillProcessCurrentlyRunningForProject(String) |
| RepathExecutableIfItIsInWorkingDirectory() | RepathExecutableIfItIsInWorkingDirectory | ThoughtWorks.CruiseControl.Core.Util.ProcessInfo .RepathExecutableIfItIsInWorkingDirectory() |
| WorkingFolderIsKnownAsSvnWorkingFolder(String) | WorkingFolderIsKnownAsSvnWorkingFolder | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn .WorkingFolderIsKnownAsSvnWorkingFolder(String) |
| AddMemberInfoToModifiedOrAddedModifications(Modification[]) | AddMemberInfoToModifiedOrAddedModifications | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mks .AddMemberInfoToModifiedOrAddedModifications(Modification[]) |
| CreatePcliContentsForCreatingVlogByLabel(String) | CreatePcliContentsForCreatingVlogByLabel | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Pvcs .CreatePcliContentsForCreatingVlogByLabel(String) |
| StripRepositoryRootFromModificationFolderNames(Modification[]) | StripRepositoryRootFromModificationFolderNames | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Cvs .StripRepositoryRootFromModificationFolderNames(Modification[]) |
| GetModificationsFlowFindTipRevisionNumber(String) | GetModificationsFlowFindTipRevisionNumber | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mercurial.Mercurial .GetModificationsFlowFindTipRevisionNumber(String) |
| GetModificationsFlowFindRevisionNumber(String) | GetModificationsFlowFindRevisionNumber | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mercurial.Mercurial .GetModificationsFlowFindRevisionNumber(String) |
| GetModificationsFlowCreateInitProcessInfo(String) | GetModificationsFlowCreateInitProcessInfo | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mercurial.Mercurial .GetModificationsFlowCreateInitProcessInfo(String) |
| GetModificationsFlowCreatePullProcessInfo(String) | GetModificationsFlowCreatePullProcessInfo | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mercurial.Mercurial .GetModificationsFlowCreatePullProcessInfo(String) |
| GetSourceFlowPerformUpdateProcessInfo(String) | GetSourceFlowPerformUpdateProcessInfo | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mercurial.Mercurial .GetSourceFlowPerformUpdateProcessInfo(String) |
| get_ViewForSpecificationsAsNewlineSeparatedString() | get_ViewForSpecificationsAsNewlineSeparatedString | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Perforce.P4 .get_ViewForSpecificationsAsNewlineSeparatedString() |
| AddConfigurationSubfileLoadedHandler(ConfigurationSubfileLoadedHandler ) | AddConfigurationSubfileLoadedHandler | ThoughtWorks.CruiseControl.Core.Config.IConfigurationService .AddConfigurationSubfileLoadedHandler (ConfigurationSubfileLoadedHandler) |
| AddConfigurationSubfileLoadedHandler(ConfigurationSubfileLoadedHandler ) | AddConfigurationSubfileLoadedHandler | ThoughtWorks.CruiseControl.Core.Config.FileWatcherConfigurationService .AddConfigurationSubfileLoadedHandler (ConfigurationSubfileLoadedHandler) |
| AddConfigurationSubfileLoadedHandler(ConfigurationSubfileLoadedHandler ) | AddConfigurationSubfileLoadedHandler | ThoughtWorks.CruiseControl.Core.Config.FileConfigurationService .AddConfigurationSubfileLoadedHandler (ConfigurationSubfileLoadedHandler) |
| AddConfigurationSubfileLoadedHandler(ConfigurationSubfileLoadedHandler ) | AddConfigurationSubfileLoadedHandler | ThoughtWorks.CruiseControl.Core.Config.CachingConfigurationService .AddConfigurationSubfileLoadedHandler (ConfigurationSubfileLoadedHandler) |
| GetProjectStatusListAndCaptureExceptions(String) | GetProjectStatusListAndCaptureExceptions | ThoughtWorks.CruiseControl.WebDashboard.ServerConnection.IFarmService .GetProjectStatusListAndCaptureExceptions(String) |
| GetProjectStatusListAndCaptureExceptions(IServerSpecifier,String) | GetProjectStatusListAndCaptureExceptions | ThoughtWorks.CruiseControl.WebDashboard.ServerConnection.IFarmService .GetProjectStatusListAndCaptureExceptions(IServerSpecifier,String) |
| GetCruiseServerSnapshotListAndExceptions(String) | GetCruiseServerSnapshotListAndExceptions | ThoughtWorks.CruiseControl.WebDashboard.ServerConnection.IFarmService .GetCruiseServerSnapshotListAndExceptions(String) |
| GetCruiseServerSnapshotListAndExceptions(IServerSpecifier,String) | GetCruiseServerSnapshotListAndExceptions | ThoughtWorks.CruiseControl.WebDashboard.ServerConnection.IFarmService .GetCruiseServerSnapshotListAndExceptions(IServerSpecifier,String) |
| GetProjectStatusListAndCaptureExceptions(String) | GetProjectStatusListAndCaptureExceptions | ThoughtWorks.CruiseControl.WebDashboard.ServerConnection .ServerAggregatingCruiseManagerWrapper .GetProjectStatusListAndCaptureExceptions(String) |
| GetProjectStatusListAndCaptureExceptions(IServerSpecifier,String) | GetProjectStatusListAndCaptureExceptions | ThoughtWorks.CruiseControl.WebDashboard.ServerConnection .ServerAggregatingCruiseManagerWrapper .GetProjectStatusListAndCaptureExceptions(IServerSpecifier,String) |
| GetProjectStatusListAndCaptureExceptions(IServerSpecifier[],String) | GetProjectStatusListAndCaptureExceptions | ThoughtWorks.CruiseControl.WebDashboard.ServerConnection .ServerAggregatingCruiseManagerWrapper .GetProjectStatusListAndCaptureExceptions(IServerSpecifier[],String) |
| GetCruiseServerSnapshotListAndExceptions(String) | GetCruiseServerSnapshotListAndExceptions | ThoughtWorks.CruiseControl.WebDashboard.ServerConnection .ServerAggregatingCruiseManagerWrapper .GetCruiseServerSnapshotListAndExceptions(String) |
| GetCruiseServerSnapshotListAndExceptions(IServerSpecifier,String) | GetCruiseServerSnapshotListAndExceptions | ThoughtWorks.CruiseControl.WebDashboard.ServerConnection .ServerAggregatingCruiseManagerWrapper .GetCruiseServerSnapshotListAndExceptions(IServerSpecifier,String) |
| GetCruiseServerSnapshotListAndExceptions(IServerSpecifier[],String) | GetCruiseServerSnapshotListAndExceptions | ThoughtWorks.CruiseControl.WebDashboard.ServerConnection .ServerAggregatingCruiseManagerWrapper .GetCruiseServerSnapshotListAndExceptions(IServerSpecifier[],String) |
| CompareProjectStatusByQueueAndQueuePriority(ProjectStatus ,ProjectStatus) | CompareProjectStatusByQueueAndQueuePriority | ThoughtWorks.CruiseControl.WebDashboard.Plugins.ServerReport .ProjectConfigurationServerPlugin .CompareProjectStatusByQueueAndQueuePriority(ProjectStatus ,ProjectStatus) |
| ConstructBuildServerFromSelectedOptions() | ConstructBuildServerFromSelectedOptions | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AddBuildServer .ConstructBuildServerFromSelectedOptions() |
| connectToOldDashboard_CheckedChanged(Object,EventArgs) | connectToOldDashboard_CheckedChanged | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.AddBuildServer .connectToOldDashboard_CheckedChanged(Object,EventArgs) |
| GetCaptionAndMessageForBuildTransition(BuildTransition) | GetCaptionAndMessageForBuildTransition | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .IBalloonMessageProvider.GetCaptionAndMessageForBuildTransition (BuildTransition) |
| DisplayIntegrationQueueInTreeViewNode() | DisplayIntegrationQueueInTreeViewNode | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .IntegrationQueueTreeNodeAdaptor.DisplayIntegrationQueueInTreeViewNode () |
| get_EstimatedTimeRemainingOnCurrentBuild() | get_EstimatedTimeRemainingOnCurrentBuild | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.StubProjectMonitor .get_EstimatedTimeRemainingOnCurrentBuild() |
| GetCaptionAndMessageForBuildTransition(BuildTransition) | GetCaptionAndMessageForBuildTransition | ThoughtWorks.CruiseControl.CCTrayLib.Presentation .ConfigurableBalloonMessageProvider .GetCaptionAndMessageForBuildTransition(BuildTransition) |
| get_EstimatedTimeRemainingOnCurrentBuild() | get_EstimatedTimeRemainingOnCurrentBuild | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring.ISingleProjectDetail .get_EstimatedTimeRemainingOnCurrentBuild() |
| get_EstimatedTimeRemainingOnCurrentBuild() | get_EstimatedTimeRemainingOnCurrentBuild | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring.BuildDurationTracker .get_EstimatedTimeRemainingOnCurrentBuild() |
| get_EstimatedTimeRemainingOnCurrentBuild() | get_EstimatedTimeRemainingOnCurrentBuild | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring.ProjectMonitor .get_EstimatedTimeRemainingOnCurrentBuild() |
| BuildCruiseServerSnapshotFromProjectsAndQueues(String) | BuildCruiseServerSnapshotFromProjectsAndQueues | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring.DashboardXmlParser .BuildCruiseServerSnapshotFromProjectsAndQueues(String) |
| BuildCruiseServerSnapshotFromProjectsOnly(String) | BuildCruiseServerSnapshotFromProjectsOnly | ThoughtWorks.CruiseControl.CCTrayLib.Monitoring.DashboardXmlParser .BuildCruiseServerSnapshotFromProjectsOnly(String) |
| GetCaptionAndMessageForBuildTransition(BuildTransition) | GetCaptionAndMessageForBuildTransition | ThoughtWorks.CruiseControl.CCTrayLib.Growl.GrowlController .GetCaptionAndMessageForBuildTransition(BuildTransition) |
| versionInformationToolStripMenuItem_Click(Object,EventArgs) | versionInformationToolStripMenuItem_Click | Validator.MainForm.versionInformationToolStripMenuItem_Click(Object ,EventArgs) |
Statistics
| Stat | SimpleName |
|---|---|
| Sum: | 0 |
| Average: | 0 |
| Minimum: | 0 |
| Maximum: | 0 |
| Standard deviation: | 0 |
| Variance: | 0 |
| Rule warning: Avoid fields with name too long |
// <Name>Avoid fields with name too long</Name>
warnif count > 0 from f in Application.Fields where
!f.IsGeneratedByCompiler &&
f.Name.Length > 35
select f
// The regex matches fields with name longer
// than 35 characters.
// Field Name doesn't contain the type and
// namespace prefix, FullName does.
warnif count > 0 from f in Application.Fields where
!f.IsGeneratedByCompiler &&
f.Name.Length > 35
select f
// The regex matches fields with name longer
// than 35 characters.
// Field Name doesn't contain the type and
// namespace prefix, FullName does.
6 fields matched
| fields | Full Name |
|---|---|
| fields | Full Name |
| StopProjectOnReachingMaxSourceControlRetries | ThoughtWorks.CruiseControl.Core.Project .StopProjectOnReachingMaxSourceControlRetries |
| SymbolCCModuleClassFailedCoverageTop | ThoughtWorks.CruiseControl.Core.Tasks .NCoverReportTask+NCoverReportType .SymbolCCModuleClassFailedCoverageTop |
| MethodCCModuleClassFailedCoverageTop | ThoughtWorks.CruiseControl.Core.Tasks .NCoverReportTask+NCoverReportType .MethodCCModuleClassFailedCoverageTop |
| GracePeriodInWhichItIsNotWorthApplyingTheQuietPeriod | ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod .GracePeriodInWhichItIsNotWorthApplyingTheQuietPeriod |
| AmountOfTimeInTheFutureToWarnAboutFutureModifications | ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod .AmountOfTimeInTheFutureToWarnAboutFutureModifications |
| AmountOfTimeInTheFutureToSkipQuietPeriod | ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod .AmountOfTimeInTheFutureToSkipQuietPeriod |
Statistics
| Stat |
|---|
| Sum: |
| Average: |
| Minimum: |
| Maximum: |
| Standard deviation: |
| Variance: |
| Rule warning: Avoid having different types with same name |
// <Name>Avoid having different types with same name</Name>
// Such practice typically creates confusion,
// and type naming collision inside a source file.
warnif count > 0
// This rule matches also collisions between
// application and third-party types sharing a same name.
let groups = JustMyCode.Types.Union(ThirdParty.Types)
// Discard nested types, whose name is
// prefixed with the parent type name.
.Where(t => !t.IsNested)
// Group types by name.
.GroupBy(t => t.Name)
from @group in groups
where @group.Count() > 1
// Let's see if types with the same name are declared
// in different namespaces.
// (t.FullName is {namespaceName}.{typeName} )
let groupsFullName = @group.GroupBy(t => t.FullName)
where groupsFullName.Count() > 1
// If several types with same name are declared in different namespaces
// eliminate the case where all types are declared in third-party assemblies.
let types= groupsFullName.SelectMany(g => g)
where types.Any(t => !t.IsThirdParty)
// Uncomment this line, to only gets naming collision involving
// both application adn third-party types.
// && types.Any(t => t.IsThirdParty)
orderby types.Count() descending
select new { t = types.First(),
// In the 'types' column, make sure to group matched types
// by parent assemblies and parent namespaces.
types
}
// Such practice typically creates confusion,
// and type naming collision inside a source file.
warnif count > 0
// This rule matches also collisions between
// application and third-party types sharing a same name.
let groups = JustMyCode.Types.Union(ThirdParty.Types)
// Discard nested types, whose name is
// prefixed with the parent type name.
.Where(t => !t.IsNested)
// Group types by name.
.GroupBy(t => t.Name)
from @group in groups
where @group.Count() > 1
// Let's see if types with the same name are declared
// in different namespaces.
// (t.FullName is {namespaceName}.{typeName} )
let groupsFullName = @group.GroupBy(t => t.FullName)
where groupsFullName.Count() > 1
// If several types with same name are declared in different namespaces
// eliminate the case where all types are declared in third-party assemblies.
let types= groupsFullName.SelectMany(g => g)
where types.Any(t => !t.IsThirdParty)
// Uncomment this line, to only gets naming collision involving
// both application adn third-party types.
// && types.Any(t => t.IsThirdParty)
orderby types.Count() descending
select new { t = types.First(),
// In the 'types' column, make sure to group matched types
// by parent assemblies and parent namespaces.
types
}
14 types matched
| types | types | Full Name |
|---|---|---|
| types | types | Full Name |
| CruiseServerClient | 2 types | ThoughtWorks.CruiseControl.Remote.CruiseServerClient |
| Message | 2 types | ThoughtWorks.CruiseControl.Remote.Message |
| FileTransferResponse | 2 types | ThoughtWorks.CruiseControl.Remote.Messages.FileTransferResponse |
| Project | 2 types | ThoughtWorks.CruiseControl.Remote.Monitor.Project |
| ILogger | 2 types | ThoughtWorks.CruiseControl.Core.Util.ILogger |
| Registry | 2 types | ThoughtWorks.CruiseControl.Core.Util.Registry |
| DateTimeProvider | 2 types | ThoughtWorks.CruiseControl.Core.Util.DateTimeProvider |
| UserNameAuthentication | 2 types | ThoughtWorks.CruiseControl.Core.Security.UserNameAuthentication |
| UserPasswordAuthentication | 2 types | ThoughtWorks.CruiseControl.Core.Security.UserPasswordAuthentication |
| WindowStateEventArgs | 2 types | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.WindowStateEventArgs |
| MainForm | 2 types | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.MainForm |
| PersistWindowState | 2 types | ThoughtWorks.CruiseControl.CCTrayLib.Presentation.PersistWindowState |
| AppRunner | 2 types | ThoughtWorks.CruiseControl.Console.AppRunner |
| Program | 2 types | Validator.Program |
Statistics
| Stat | types |
|---|---|
| Sum: | 0 |
| Average: | 0 |
| Minimum: | 0 |
| Maximum: | 0 |
| Standard deviation: | 0 |
| Variance: | 0 |
| Rule warning: Avoid naming types and namespaces with the same identifier |
// <Name>Avoid naming types and namespaces with the same identifier</Name>
// Not only this can provoke compiler resolution collision,
// but also, this makes code less maintainable because
// concepts are not concisely identified.
warnif count > 0
let hashsetShortNames = Namespaces.Where(n => n.Name.Length > 0).Select(n => n.SimpleName).ToHashSet()
from t in JustMyCode.Types
where hashsetShortNames.Contains(t.Name)
select new { t, namespaces = Namespaces.Where(n => n.SimpleName == t.Name) }
// Not only this can provoke compiler resolution collision,
// but also, this makes code less maintainable because
// concepts are not concisely identified.
warnif count > 0
let hashsetShortNames = Namespaces.Where(n => n.Name.Length > 0).Select(n => n.SimpleName).ToHashSet()
from t in JustMyCode.Types
where hashsetShortNames.Contains(t.Name)
select new { t, namespaces = Namespaces.Where(n => n.SimpleName == t.Name) }
3 types matched
| types | namespaces | Full Name |
|---|---|---|
| types | namespaces | Full Name |
| Mercurial | 1 namespace | ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mercurial.Mercurial |
| BitKeeper | 1 namespace | ThoughtWorks.CruiseControl.Core.Sourcecontrol.BitKeeper.BitKeeper |
| Configuration | 6 namespaces | ThoughtWorks.CruiseControl.Core.Config.Configuration |
Statistics
| Stat | namespaces |
|---|---|
| Sum: | 0 |
| Average: | 0 |
| Minimum: | 0 |
| Maximum: | 0 |
| Standard deviation: | 0 |
| Variance: | 0 |
| Rule warning: Methods prefixed with 'Try' should return a boolean |
// <Name>Methods prefixed with 'Try' should return a boolean</Name>
// and such TryXXX method can eventually have out parameters to return results.
// Get inspired from the API design of:
// System.Int32.TryParse(int,out string):bool
warnif count > 0
from m in Application.Methods where
m.SimpleNameLike("^Try") &&
m.ReturnType != null &&
m.ReturnType.FullName != "System.Boolean"
select new { m, m.ReturnType }
// and such TryXXX method can eventually have out parameters to return results.
// Get inspired from the API design of:
// System.Int32.TryParse(int,out string):bool
warnif count > 0
from m in Application.Methods where
m.SimpleNameLike("^Try") &&
m.ReturnType != null &&
m.ReturnType.FullName != "System.Boolean"
select new { m, m.ReturnType }
2 methods matched
| methods | ReturnType | Full Name |
|---|---|---|
| methods | ReturnType | Full Name |
| TryToRun(ProcessInfo,IIntegrationResult) | ProcessResult | ThoughtWorks.CruiseControl.Core.Tasks.BaseExecutableTask.TryToRun (ProcessInfo,IIntegrationResult) |
| TryToRun(IIntegrationResult) | ProcessResult | ThoughtWorks.CruiseControl.Core.Tasks.DevenvTask.TryToRun (IIntegrationResult) |
Statistics
| Stat | ReturnType |
|---|---|
| Sum: | 0 |
| Average: |



