Company.DisposeTests.Errors.dll
Rules Run: 122 Passed: 8 Warned: 0 Justified: 0 Failed: 1 Exception: 113
Design
Design
Do not declare virtual members in sealed types
Exception
Avoid empty interfaces
Exception
Do not declare visible instance fields
Exception
Types that own native resources should be disposable
Exception
ICollection implementations have strongly typed members
Exception
Nested types should not be visible
Exception
Lists are strongly typed
Exception
Enumerators should be strongly typed
Exception
Implement IDisposable correctly
Exception
Do not hide base class methods
Exception
Do not raise exceptions in unexpected locations
Exception
Exceptions should be public
Exception
Static holder types should not have constructors
Exception
Static holder types should be sealed
Exception
Move P/Invokes to NativeMethods class
Exception
Types should not extend certain base types
Exception
Avoid excessive parameters on generic types
Exception
Generic methods should provide type parameter
Exception
Use generics where appropriate
Exception
Do not nest generic types in member signatures
Exception
Types that own disposable fields should be disposable
Exception
Do not declare static members on generic types
Exception
Use generic event handler instances
Exception
Do not expose generic lists
Exception
Enum storage should be Int32
Exception
Default parameters should not be used
Exception
Interface methods should be callable by child types
Exception
Implement standard exception constructors
Exception
Declare event handlers correctly
Exception
Enums should have zero value
Exception
Assemblies should have valid strong names
Exception
Abstract types should not have constructors
Exception
Security
Security
Seal methods that satisfy private interfaces
Exception
Secure serialization constructors
Exception
Review SuppressUnmanagedCodeSecurityAttribute usage
Exception
APTCA methods should only call APTCA methods
Exception
APTCA types should only extend APTCA base types
Exception
Type link demands require inheritance demands
Exception
Security transparent assemblies should not contain security critical code
Exception
Wrap vulnerable finally clauses in outer try
Exception
Static constructors should be private
Exception
Override link demands should be identical to base
Exception
Call GC.KeepAlive when using native resources
Exception
Secure asserts
Exception
Review deny and permit only usage
Exception
Array fields should not be read only
Exception
Review imperative security
Exception
Do not declare read only mutable reference types
Exception
Secured types should not expose fields
Exception
Method security should be a superset of type
Exception
Pointers should not be visible
Exception
Review declarative security on value types
Exception
Review visible event handlers
Exception
Redirection to user controlled site
Pass
XSS
Pass
LDAP Injection
Pass
XPATH Injection
Pass
Process Command Execution
Pass
Sql Injection
Pass
Information Disclosure through exception
Pass
File Canonicalization
Pass
Microsoft Online custom rules
Custom
ULS logging in each catch block
Exception
SPDiagnosticsService
Exception
Out-Of-Box files modification
Exception
Inline code ASPX pages
Exception
SharePointMonitorScope Webpart Check
Exception
SharePointFeatureReceiver Check
Exception
Windows Claims Check
Exception
BlobCache value editing in Web.Config is prohibited
Exception
RunWithElevatedPrivileges Restrictions
Exception
SPQuery RowLimit value range
Exception
SPListItemCollection\GetItemByID inside loop.
Exception
Use of SPList.Items
Exception
SPQuery object without RowLimit property
Exception
SPListItem.Update() inside loop
Exception
Deprecated APIs
Exception
Verbose logging\tracing
Exception
Implementation of Timer jobs
Exception
Editing Web config files
Exception
Usage
Usage
Finalizers should call base class finalizer
Exception
Do not raise exceptions in exception clauses
Exception
Do not mark enums with FlagsAttribute
Exception
Call GC.SuppressFinalize correctly
Exception
Operations should not overflow
Exception
Do not decrease inherited member visibility
Exception
Disposable types should declare finalizer
Exception
Instantiate argument exceptions correctly
Exception
Use managed equivalents of Win32 API
Exception
Rethrow to preserve stack details
Exception
Do not call overridable methods in constructors
Exception
Disposable fields should be disposed
Exception
Do not mark serviced components with WebMethod
Exception
Interoperability
Interoperability
Mark ComSource interfaces as IDispatch
Exception
COM registration methods should not be visible
Exception
Avoid non-public fields in COM visible value types
Exception
Declare P/Invokes correctly
Exception
Mark boolean P/Invoke arguments with MarshalAs
Exception
Avoid overloads in COM visible interfaces
Exception
P/Invokes should not be visible
Exception
Auto layout types should not be COM visible
Exception
Do not use AutoDual ClassInterfaceType
Exception
Avoid Int64 arguments for Visual Basic 6 clients
Exception
Performance
Performance
Properties should not return arrays
Exception
Test for empty strings using string length
Exception
Remove empty finalizers
Exception
Avoid excessive locals
Exception
Do not cast unnecessarily
Exception
Use literals where appropriate
Exception
Remove unused locals
Exception
SharePoint 2013 Upgrade Rules
Custom
XMLDataSource Transform Check
Exception
SharePoint SQL Search Syntax Check
Exception
SPUtility.GetGenericSetupPath deprecation check
Exception
Hard Coded _layouts folder path
Exception
Hard Coded _Controltemplates path
Exception
Mobility
Mobility
Do not use timers that prevent power state changes
Exception
Do not use idle process priority
Exception
Portability
Portability
P/Invoke declarations should be portable
Exception
Value type fields should be portable
Exception
Naming
Naming
Identifiers should not match keywords
Exception
Do not name enum values 'Reserved'
Exception
Globalization
Globalization
Specify marshaling for P/Invoke string arguments
Exception
Memory management
MemoryManagement
SPDisposeCheck
Failures : 42
Source File Name Target Name Line No. Resolution Help Justification
Company.DisposeTests.Errors.DisposeSPSiteCreatedBySPSiteCollectionAdd.SPSiteCollectionAddLeak Constructor called for Microsoft.SharePoint.SPSite but not assigned. This type should be assigned and subsequently disposed http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_110
Company.DisposeTests.Errors.DisposeSPWebCreatedBySPWebCollectionAdd.AllWebsAddLeak Disposable type not disposed Microsoft.SharePoint.SPWeb ***This may be a false positive depending on how the type was created or if it is disposed outside the current scope http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_150
Company.DisposeTests.Errors.DisposeSPWebCreatedBySPWebCollectionAdd.SPWebCollectionAddLeak(System.String) Disposable type not disposed Microsoft.SharePoint.SPWeb ***This may be a false positive depending on how the type was created or if it is disposed outside the current scope http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_150
Company.DisposeTests.Errors.DisposeSPWebCreatedByOpenWeb.TestMethod Disposable type not disposed Microsoft.SharePoint.SPWeb ***This may be a false positive depending on how the type was created or if it is disposed outside the current scope http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_120
Company.DisposeTests.Errors.DisposeSPWebCreatedByOpenWeb.TestMethodWithReturnValue NOTE This instance was returned from the method and can likely be ignored as long as the type is disposed in the caller. SPDisposeCheck will automatically determine if the instance was disposed in the calling method Disposable type not disposed: Microsoft.SharePoint.SPWeb ***This may be a false positive depending on how the type was created or if it is disposed outside the current scope http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_120
Company.DisposeTests.Errors.DoNotDisposeSPWebParentWeb.TestWithExplizitDisposeOnParentWeb Dispose should not be called on this object. http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_640
Company.DisposeTests.Errors.DoNotDisposeSPWebParentWeb.TestWithUsingOnRootWeb Dispose should not be called on this object. http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_640
Company.DisposeTests.Errors.DoNotDisposeSPWebParentWeb.TestWithDisposingRootWebWithMultipleVariables Dispose should not be called on this object. http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_640
Company.DisposeTests.Errors.ClosePublishingWebCreatedByPublishingWebGetVariation.GetVariationLeak Disposable type not disposed Microsoft.SharePoint.Publishing.PublishingWeb ***This may be a false positive depending on how the type was created or if it is disposed outside the current scope http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_320
Company.DisposeTests.Errors.ClosePublishingWebCreatedByPublishingWebCollectionAdd.Test Disposable type not disposed Microsoft.SharePoint.Publishing.PublishingWeb ***This may be a false positive depending on how the type was created or if it is disposed outside the current scope http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_310
Company.DisposeTests.Errors.DoNotDisposeSPSiteRootWeb.TestWithExplizitDisposeOnRootWeb Dispose should not be called on this object. http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_655
Company.DisposeTests.Errors.DoNotDisposeSPSiteRootWeb.TestWithUsingOnRootWeb Dispose should not be called on this object. http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_655
Company.DisposeTests.Errors.DoNotDisposeSPSiteRootWeb.TestWithDisposingRootWebWithMultipleVariables Dispose should not be called on this object. http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_655
Company.DisposeTests.Errors.DisposeSPSiteCreatedBySPSiteCollectionIndex.SPSiteCollectionIndexerLeak Disposable type not disposed Microsoft.SharePoint.SPSite ***This may be a false positive depending on how the type was created or if it is disposed outside the current scope http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_230
Company.DisposeTests.Errors.DisposeSPSiteCreatedBySPSiteCollectionIndex.SPSiteCollectionForEachLeak Disposable type not disposed Microsoft.SharePoint.SPSite ***This may be a false positive depending on how the type was created or if it is disposed outside the current scope http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_230
Company.DisposeTests.Errors.DisposeSPSiteCreatedBySPSiteCollectionIndex.SPSiteCollectionForLeak Disposable type not disposed Microsoft.SharePoint.SPSite ***This may be a false positive depending on how the type was created or if it is disposed outside the current scope http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_230
Company.DisposeTests.Errors.ItemEventReceiverWebSite.ItemAdded(Microsoft.SharePoint.SPItemEventProperties) Dispose should not be called on this object. http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_620
Company.DisposeTests.Errors.DisposeSPSiteCreatedByUserProfilesPersonalSite.PersonalSiteLeak Disposable type not disposed Microsoft.SharePoint.SPSite ***This may be a false positive depending on how the type was created or if it is disposed outside the current scope http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_400
Company.DisposeTests.Errors.ListEventReceiver.FieldAdded(Microsoft.SharePoint.SPListEventProperties) Dispose should not be called on this object. http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_600
Company.DisposeTests.Errors.ListEventReceiver.FieldDeleting(Microsoft.SharePoint.SPListEventProperties) Dispose should not be called on this object. http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_600
Company.DisposeTests.Errors.DisposeSPWebCreatedBySPLimitedWebPartManager.SPLimitedWebPartManagerLeak Dispose/Close was not called on SPLimitedWebPartManager.Web http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_160
Company.DisposeTests.Errors.ItemEventReceiver.ItemAdded(Microsoft.SharePoint.SPItemEventProperties) Dispose should not be called on this object. http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_610
Company.DisposeTests.Errors.ItemEventReceiver.ItemDeleting(Microsoft.SharePoint.SPItemEventProperties) Dispose should not be called on this object. http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_610
Company.DisposeTests.Errors.DisposeSPSiteCreatedBySPSiteCollectionAdd.SPSiteCollectionAddLeak Disposable type not disposed Microsoft.SharePoint.SPSite ***This may be a false positive depending on how the type was created or if it is disposed outside the current scope http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_240
Company.DisposeTests.Errors.WebEventReceiver.WebAdding(Microsoft.SharePoint.SPWebEventProperties) Dispose should not be called on this object. http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_605
Company.DisposeTests.Errors.DisposeCreatedSPSiteObject.TestMethodWithoutReturn Disposable type not disposed Microsoft.SharePoint.SPSite ***This may be a false positive depending on how the type was created or if it is disposed outside the current scope http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_110
Company.DisposeTests.Errors.DisposeCreatedSPSiteObject.TestMethodWithReturn NOTE This instance was returned from the method and can likely be ignored as long as the type is disposed in the caller. SPDisposeCheck will automatically determine if the instance was disposed in the calling method Disposable type not disposed: Microsoft.SharePoint.SPSite ***This may be a false positive depending on how the type was created or if it is disposed outside the current scope http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_110
Company.DisposeTests.Errors.DisposeCreatedSPSiteObject.TestMethodWithMultipleVariableAssignments Disposable type not disposed Microsoft.SharePoint.SPSite ***This may be a false positive depending on how the type was created or if it is disposed outside the current scope http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_110
Company.DisposeTests.Errors.DisposeSPWebCreatedBySPWebCollectionIndex.AllWebsIndexLeak Disposable type not disposed Microsoft.SharePoint.SPWeb ***This may be a false positive depending on how the type was created or if it is disposed outside the current scope http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_130
Company.DisposeTests.Errors.DisposeSPWebCreatedBySPWebCollectionIndex.AllWebsForEachLeak Disposable type not disposed Microsoft.SharePoint.SPWeb ***This may be a false positive depending on how the type was created or if it is disposed outside the current scope http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_130
Company.DisposeTests.Errors.DisposeSPWebCreatedBySPWebCollectionIndex.AllWebsForLeak Disposable type not disposed Microsoft.SharePoint.SPWeb ***This may be a false positive depending on how the type was created or if it is disposed outside the current scope http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_130
Company.DisposeTests.Errors.FeatureReceiver+<>c__DisplayClass1.<TestMethod4>b__0 Dispose should not be called on this object. http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_630
Company.DisposeTests.Errors.DoNotDisposeSPSiteCreatedBySPControlGetContextSite.SPControlBADPractice Dispose should not be called on this object. http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_665
Company.DisposeTests.Errors.DoNotDisposeSPWebCreatedBySPControlGetContextWeb.SPControlBADPractice Dispose should not be called on this object. http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_660
Company.DisposeTests.Errors.DoNotDisposeSPWebCreatedBySPContext.Test Dispose should not be called on this object. http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_650
Company.DisposeTests.Errors.DoNotDisposeSPSiteCreatedBySPContext.Test Dispose should not be called on this object. http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_645
Company.DisposeTests.Errors.ClosePublishingWebCreatedByPublishingWebGetPublishingWebsIndex.PublishingWebCollectionLeak Disposable type not disposed Microsoft.SharePoint.Publishing.PublishingWeb ***This may be a false positive depending on how the type was created or if it is disposed outside the current scope http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_300
Company.DisposeTests.Errors.ItemEventReceiverListItem.ItemAdded(Microsoft.SharePoint.SPItemEventProperties) Dispose should not be called on this object. http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_615
Company.DisposeTests.Errors.DoNotDisposeSPListParentWeb.TestWithExplizitDisposeOnParentWeb Dispose should not be called on this object. http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_635
Company.DisposeTests.Errors.DoNotDisposeSPListParentWeb.TestWithUsingOnRootWeb Dispose should not be called on this object. http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_635
Company.DisposeTests.Errors.DoNotDisposeSPListParentWeb.TestWithDisposingRootWebWithMultipleVariables Dispose should not be called on this object. http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_635
Company.DisposeTests.Errors.ItemEventReceiverListItemSite.ItemAdded(Microsoft.SharePoint.SPItemEventProperties) Dispose should not be called on this object. http://blogs.msdn.com/rogerla/archive/2008/02/12/sharepoint-2007-and-wss-3-0-dispose-patterns-by-example.aspx#SPDisposeCheckID_625