1 Summary
1.1 List of assemblies searched
1.2 List of rules used
2 Reported defects
Assembly:
Module:
Type:
Method:
The method 'System.CodeDom.Compiler.CompilerError Mono.CSharp.CSharpCodeCompiler::CreateErrorFromString(System.String)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Void Mono.CSharp.CSharpCodeGenerator::GenerateCompileUnitStart(System.CodeDom.CodeCompileUnit)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Void Mono.CSharp.CSharpCodeGenerator::GenerateCompileUnit(System.CodeDom.CodeCompileUnit)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Void Mono.CSharp.CSharpCodeGenerator::OutputStartBrace()' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.String Mono.CSharp.CSharpCodeGenerator::QuoteSnippetString(System.String)' use some literal values for new lines (e.g. \r\n) which aren't portable across operating systems.
Solution:Replace literals with Environment.NewLine.
The method 'System.String Mono.CSharp.CSharpCodeGenerator::QuoteSnippetString(System.String)' use some literal values for new lines (e.g. \r\n) which aren't portable across operating systems.
Solution:Replace literals with Environment.NewLine.
The method 'System.String System.ComponentModel.MemberDescriptor::get_Description()' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.CodeDom.Compiler.CompilerResults Microsoft.VisualBasic.VBCodeCompiler::CompileFromFileBatch(System.CodeDom.Compiler.CompilerParameters,System.String[])' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Void Microsoft.VisualBasic.VBCodeGenerator::GenerateCompileUnitStart(System.CodeDom.CodeCompileUnit)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Void Microsoft.VisualBasic.VBCodeGenerator::GenerateTypeStart(System.CodeDom.CodeTypeDeclaration)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Void Microsoft.VisualBasic.VBCodeGenerator::OutputAttributes(System.CodeDom.CodeAttributeDeclarationCollection,System.String,Microsoft.VisualBasic.VBCodeGenerator/LineHandling)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Void Microsoft.VisualBasic.VBCodeGenerator::OutputAttributes(System.CodeDom.CodeAttributeDeclarationCollection,System.String,Microsoft.VisualBasic.VBCodeGenerator/LineHandling)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Void System.Configuration.ConfigurationData::ReadConfigFile(System.Xml.XmlTextReader)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.String System.Diagnostics.DefaultTraceListener::GetPrefix(System.String,System.String)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Void System.Diagnostics.TraceListener::Fail(System.String)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Void System.Diagnostics.TraceListener::Fail(System.String,System.String)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.String System.Diagnostics.PerformanceCounter::get_CounterHelp()' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Boolean System.Diagnostics.Process::Start_common(System.Diagnostics.ProcessStartInfo,System.Diagnostics.Process)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
Method 'System.Void System.IO.FAMWatcher::StartMonitoringDirectory(System.IO.FAMData,System.Boolean)' uses the unreliable double-check locking technique.
Solution:Remove the lock check that occurs outside of the protected region. Or see: http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html
The method 'System.String System.IO.FileSystemWatcher::get_FullPath()' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Void System.IO.FileSystemWatcher::set_Filter(System.String)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Void System.IO.FileSystemWatcher::DispatchEvents(System.IO.FileAction,System.String,System.IO.RenamedEventArgs&)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Void System.IO.FileSystemWatcher::DispatchEvents(System.IO.FileAction,System.String,System.IO.RenamedEventArgs&)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
Method 'System.Void System.IO.InotifyWatcher::StartMonitoringDirectory(System.IO.InotifyData,System.Boolean)' uses the unreliable double-check locking technique.
Solution:Remove the lock check that occurs outside of the protected region. Or see: http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html
The method 'System.Void System.IO.KeventWatcher::ProcessEvent(System.IO.kevent)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Net.Authorization System.Net.BasicClient::InternalAuthenticate(System.Net.WebRequest,System.Net.ICredentials)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Net.Authorization System.Net.BasicClient::InternalAuthenticate(System.Net.WebRequest,System.Net.ICredentials)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Net.Authorization System.Net.BasicClient::InternalAuthenticate(System.Net.WebRequest,System.Net.ICredentials)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Net.ChunkStream/State System.Net.ChunkStream::ReadTrailer(System.Byte[],System.Int32&,System.Int32)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Net.ChunkStream/State System.Net.ChunkStream::ReadTrailer(System.Byte[],System.Int32&,System.Int32)' use some literal values for new lines (e.g. \r\n) which aren't portable across operating systems.
Solution:Replace literals with Environment.NewLine.
The method 'System.Void System.Net.Configuration.ConnectionManagementData::Add(System.String,System.String)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Void System.Net.CookieContainer::Add(System.Net.Cookie)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Void System.Net.CookieContainer::Cook(System.Uri,System.Net.Cookie)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Void System.Net.CookieContainer::Cook(System.Uri,System.Net.Cookie)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Void System.Net.CookieContainer::Cook(System.Uri,System.Net.Cookie)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Void System.Net.CookieContainer::Cook(System.Uri,System.Net.Cookie)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.String System.Net.CookieContainer::GetCookieHeader(System.Uri)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Boolean System.Net.CookieContainer::CheckDomain(System.String,System.String)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Net.CookieCollection System.Net.CookieContainer::GetCookies(System.Uri)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Net.CookieCollection System.Net.CookieContainer::GetCookies(System.Uri)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.String System.Net.CookieContainer::GetDir(System.String)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Void System.Net.CookieContainer::ParseAndAddCookies(System.Uri,System.String)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.String System.Net.Cookie::get_Path()' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
Method 'System.Net.Authorization System.Net.DigestSession::Authenticate(System.Net.WebRequest,System.Net.ICredentials)' uses the unreliable double-check locking technique.
Solution:Remove the lock check that occurs outside of the protected region. Or see: http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html
The method 'System.Net.Authorization System.Net.DigestSession::Authenticate(System.Net.WebRequest,System.Net.ICredentials)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Void System.Net.HttpWebRequest::set_Method(System.String)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Void System.Net.HttpWebRequest::CommonChecks(System.Boolean)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.String System.Net.HttpWebRequest::GetHeaders()' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Void System.Net.HttpWebRequest::SendRequestHeaders()' use some literal values for new lines (e.g. \r\n) which aren't portable across operating systems.
Solution:Replace literals with Environment.NewLine.
The method 'System.String System.Net.HttpWebResponse::get_ContentEncoding()' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.String System.Net.HttpWebResponse::GetResponseHeader(System.String)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Void System.Net.HttpWebResponse::SetCookie(System.String)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Void System.Net.HttpWebResponse::SetCookie(System.String)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Void System.Net.HttpWebResponse::SetCookie(System.String)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Net.WebConnectionGroup System.Net.ServicePoint::GetConnectionGroup(System.String)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
A catch block in method or property 'System.Void System.Net.Sockets.TcpClient::Connect(System.String,System.Int32)' throws the caught exception.
Solution:If you need to throw the exception caught by the catch block, use 'throw;' instead of 'throw ex;'
A catch block in method or property 'System.Void System.Net.Sockets.UdpClient::Connect(System.String,System.Int32)' throws the caught exception.
Solution:If you need to throw the exception caught by the catch block, use 'throw;' instead of 'throw ex;'
The method 'System.String System.Net.WebClient::get_BaseAddress()' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Void System.Net.WebClient::set_BaseAddress(System.String)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Byte[] System.Net.WebClient::UploadFileCore(System.Uri,System.String,System.String)' use some literal values for new lines (e.g. \r\n) which aren't portable across operating systems.
Solution:Replace literals with Environment.NewLine.
The method 'System.Byte[] System.Net.WebClient::UploadFileCore(System.Uri,System.String,System.String)' use some literal values for new lines (e.g. \r\n) which aren't portable across operating systems.
Solution:Replace literals with Environment.NewLine.
The method 'System.Net.WebRequest System.Net.WebClient::SetupRequest(System.Uri)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Net.WebRequest System.Net.WebClient::SetupRequest(System.Uri)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Net.WebRequest System.Net.WebClient::SetupRequest(System.Uri)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Net.WebRequest System.Net.WebClient::SetupRequest(System.Uri)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Net.WebRequest System.Net.WebClient::SetupRequest(System.Uri)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Net.WebRequest System.Net.WebClient::SetupRequest(System.Uri)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Boolean System.Net.WebConnection::CreateTunnel(System.Net.HttpWebRequest,System.IO.Stream,System.Byte[]&)' use some literal values for new lines (e.g. \r\n) which aren't portable across operating systems.
Solution:Replace literals with Environment.NewLine.
The method 'System.Boolean System.Net.WebConnection::CreateTunnel(System.Net.HttpWebRequest,System.IO.Stream,System.Byte[]&)' use some literal values for new lines (e.g. \r\n) which aren't portable across operating systems.
Solution:Replace literals with Environment.NewLine.
The method 'System.Boolean System.Net.WebConnection::CreateTunnel(System.Net.HttpWebRequest,System.IO.Stream,System.Byte[]&)' use some literal values for new lines (e.g. \r\n) which aren't portable across operating systems.
Solution:Replace literals with Environment.NewLine.
The method 'System.Boolean System.Net.WebConnection::CreateTunnel(System.Net.HttpWebRequest,System.IO.Stream,System.Byte[]&)' use some literal values for new lines (e.g. \r\n) which aren't portable across operating systems.
Solution:Replace literals with Environment.NewLine.
The method 'System.Int32 System.Net.WebConnection::GetResponse(System.Byte[],System.Int32)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
A catch block in method or property 'System.Int32 System.Net.WebConnection::EndRead(System.IAsyncResult)' throws the caught exception.
Solution:If you need to throw the exception caught by the catch block, use 'throw;' instead of 'throw ex;'
Method 'System.Int32 System.Net.WebConnectionStream::EndRead(System.IAsyncResult)' uses the unreliable double-check locking technique.
Solution:Remove the lock check that occurs outside of the protected region. Or see: http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html
The method 'System.IAsyncResult System.Net.WebConnectionStream::BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)' use some literal values for new lines (e.g. \r\n) which aren't portable across operating systems.
Solution:Replace literals with Environment.NewLine.
The method 'System.Void System.Net.WebConnectionStream::Close()' use some literal values for new lines (e.g. \r\n) which aren't portable across operating systems.
Solution:Replace literals with Environment.NewLine.
The method 'System.Boolean System.Net.WebHeaderCollection::IsRestricted(System.String)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.String System.Net.WebHeaderCollection::ToString()' use some literal values for new lines (e.g. \r\n) which aren't portable across operating systems.
Solution:Replace literals with Environment.NewLine.
The method 'System.String System.Net.WebHeaderCollection::ToString()' use some literal values for new lines (e.g. \r\n) which aren't portable across operating systems.
Solution:Replace literals with Environment.NewLine.
The method 'System.Boolean System.Net.WebHeaderCollection::IsMultiValue(System.String)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.String System.Text.RegularExpressions.Syntax.Parser::Escape(System.String)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Void System.Text.RegularExpressions.Syntax.Parser::ParseGroup(System.Text.RegularExpressions.Syntax.Group,System.Text.RegularExpressions.RegexOptions,System.Text.RegularExpressions.Syntax.Assertion)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.String System.Text.RegularExpressions.Regex::GroupNameFromNumber(System.Int32)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.String System.Text.RegularExpressions.Regex::GroupNameFromNumber(System.Int32)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Int32 System.Text.RegularExpressions.ReplacementEvaluator::CompileTerm(System.Int32&)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Int32 System.Text.RegularExpressions.ReplacementEvaluator::CompileTerm(System.Int32&)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.Void System.UriBuilder::set_Query(System.String)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.String[] System.Uri::get_Segments()' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.
The method 'System.String System.Uri::Reduce(System.String)' use literal "" instead of String.Empty.
Solution:Change the empty string for String.Empty.