Moved some code analysis suppression attributes to global suppressions file.

Versioned 4.2.29.
This commit is contained in:
Laurent Bugnion 2013-09-28 17:18:04 +02:00
Родитель b1caf94d9a
Коммит ac9ea28828
15 изменённых файлов: 35 добавлений и 93 удалений

Просмотреть файл

@ -47,7 +47,7 @@
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>TRACE;DEBUG;CODE_ANALYSIS</DefineConstants>
<DefineConstants>TRACE;DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<RunCodeAnalysis>true</RunCodeAnalysis>

Двоичный файл не отображается.

Просмотреть файл

@ -24,8 +24,8 @@ namespace GalaSoft.MvvmLight.Helpers
/// to be created to the Action's owner. The owner can be garbage collected at any time.
/// </summary>
////[ClassInfo(typeof(WeakAction),
//// VersionString = "4.0.15",
//// DateString = "201206191330",
//// VersionString = "4.2.16",
//// DateString = "201309262235",
//// Description = "A class allowing to store and invoke actions without keeping a hard reference to the action's target.",
//// UrlContacts = "http://www.galasoft.ch/contact_en.html",
//// Email = "laurent@galasoft.ch")]
@ -141,6 +141,10 @@ namespace GalaSoft.MvvmLight.Helpers
/// </summary>
/// <param name="target">The action's owner.</param>
/// <param name="action">The action that will be associated to this instance.</param>
[System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Design",
"CA1062:Validate arguments of public methods",
MessageId = "1")]
public WeakAction(object target, Action action)
{
#if NETFX_CORE

Просмотреть файл

@ -107,6 +107,7 @@ namespace GalaSoft.MvvmLight.Helpers
/// </summary>
/// <param name="target">The action's owner.</param>
/// <param name="action">The action that will be associated to this instance.</param>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1062:Validate arguments of public methods", MessageId = "1")]
public WeakAction(object target, Action<T> action)
{
#if NETFX_CORE

Просмотреть файл

@ -137,6 +137,7 @@ namespace GalaSoft.MvvmLight.Helpers
/// </summary>
/// <param name="target">The Func's owner.</param>
/// <param name="func">The Func that will be associated to this instance.</param>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1062:Validate arguments of public methods", MessageId = "1")]
public WeakFunc(object target, Func<TResult> func)
{
#if NETFX_CORE

Просмотреть файл

@ -108,6 +108,7 @@ namespace GalaSoft.MvvmLight.Helpers
/// </summary>
/// <param name="target">The Func's owner.</param>
/// <param name="func">The Func that will be associated to this instance.</param>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1062:Validate arguments of public methods", MessageId = "1")]
public WeakFunc(object target, Func<T, TResult> func)
{
#if NETFX_CORE

Просмотреть файл

@ -43,8 +43,8 @@ namespace GalaSoft.MvvmLight.Messaging
/// The Messenger is a class allowing objects to exchange messages.
/// </summary>
////[ClassInfo(typeof(Messenger),
//// VersionString = "4.0.16",
//// DateString = "201206191330",
//// VersionString = "4.2.17",
//// DateString = "201309262235",
//// Description = "A messenger class allowing a class to send a message to multiple recipients",
//// UrlContacts = "http://www.galasoft.ch/contact_en.html",
//// Email = "laurent@galasoft.ch")]

Просмотреть файл

@ -15,7 +15,6 @@
// ****************************************************************************
using System;
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
using System.Runtime.InteropServices;
@ -31,60 +30,5 @@ using System.Runtime.InteropServices;
[assembly: ComVisible(false)]
[assembly: CLSCompliant(true)]
[assembly: AssemblyVersion("4.1.27.*")]
////[assembly: AssemblyFileVersion("4.1.27.0/BL0027")]
// FxCop
[module: SuppressMessage("Microsoft.Naming",
"CA1704:IdentifiersShouldBeSpelledCorrectly",
MessageId = "Mvvm")]
[module: SuppressMessage("Microsoft.Naming",
"CA1704:IdentifiersShouldBeSpelledCorrectly",
Scope = "namespace",
Target = "GalaSoft.MvvmLight",
MessageId = "Mvvm")]
[module: SuppressMessage("Microsoft.Naming",
"CA1704:IdentifiersShouldBeSpelledCorrectly",
Scope = "namespace",
Target = "GalaSoft.MvvmLight.Messaging",
MessageId = "Mvvm")]
[module: SuppressMessage("Microsoft.Naming",
"CA1704:IdentifiersShouldBeSpelledCorrectly",
Scope = "namespace",
Target = "GalaSoft.MvvmLight.Command",
MessageId = "Mvvm")]
[module: SuppressMessage("Microsoft.Naming",
"CA1704:IdentifiersShouldBeSpelledCorrectly",
Scope = "namespace",
Target = "GalaSoft.MvvmLight.Helpers",
MessageId = "Mvvm")]
[module: SuppressMessage("Microsoft.Naming",
"CA1704:IdentifiersShouldBeSpelledCorrectly",
Scope = "namespace",
Target = "GalaSoft.MvvmLight.Ioc",
MessageId = "Mvvm")]
[module: SuppressMessage("Microsoft.Design",
"CA1020:AvoidNamespacesWithFewTypes",
Scope = "namespace",
Target = "GalaSoft.MvvmLight")]
[module: SuppressMessage("Microsoft.Design",
"CA1020:AvoidNamespacesWithFewTypes",
Scope = "namespace",
Target = "GalaSoft.MvvmLight.Command")]
[module: SuppressMessage("Microsoft.Design",
"CA1020:AvoidNamespacesWithFewTypes",
Scope = "namespace",
Target = "GalaSoft.MvvmLight.Helpers")]
[module: SuppressMessage("Microsoft.Design",
"CA1020:AvoidNamespacesWithFewTypes",
Scope = "namespace",
Target = "GalaSoft.MvvmLight.Ioc")]
[assembly: AssemblyVersion("4.2.29.*")]
////[assembly: AssemblyFileVersion("4.1.29.0/BL0029")]

Просмотреть файл

@ -37,8 +37,8 @@ namespace GalaSoft.MvvmLight.Threading
/// Helper class for dispatcher operations on the UI thread.
/// </summary>
//// [ClassInfo(typeof(DispatcherHelper),
//// VersionString = "4.1.6",
//// DateString = "201305190047",
//// VersionString = "4.2.7",
//// DateString = "201309262235",
//// Description = "Helper class for dispatcher operations on the UI thread.",
//// UrlContacts = "http://www.galasoft.ch/contact_en.html",
//// Email = "laurent@galasoft.ch")]

Просмотреть файл

@ -41,8 +41,8 @@ namespace GalaSoft.MvvmLight
/// A base class for the ViewModel classes in the MVVM pattern.
/// </summary>
//// [ClassInfo(typeof(ViewModelBase),
//// VersionString = "4.0.14",
//// DateString = "201206191330",
//// VersionString = "4.2.15",
//// DateString = "201309262235",
//// Description = "A base class for the ViewModel classes in the MVVM pattern.",
//// UrlContacts = "http://www.galasoft.ch/contact_en.html",
//// Email = "laurent@galasoft.ch")]
@ -193,7 +193,11 @@ namespace GalaSoft.MvvmLight
/// <remarks>If the propertyName parameter
/// does not correspond to an existing property on the current class, an
/// exception is thrown in DEBUG configuration only.</remarks>
[SuppressMessage("Microsoft.Design", "CA1030:UseEventsWhereAppropriate",
[System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Design",
"CA1026:DefaultParametersShouldNotBeUsed"),
SuppressMessage(
"Microsoft.Design", "CA1030:UseEventsWhereAppropriate",
Justification = "This cannot be an event")]
protected virtual void RaisePropertyChanged<T>(
#if CMNATTR
@ -319,6 +323,9 @@ namespace GalaSoft.MvvmLight
/// be broadcasted. If false, only the event will be raised.</param>
/// <returns>True if the PropertyChanged event was raised, false otherwise.</returns>
[System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Design",
"CA1026:DefaultParametersShouldNotBeUsed"),
System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Design",
"CA1045:DoNotPassTypesByReference",
MessageId = "1#")]

Просмотреть файл

@ -33,8 +33,8 @@ namespace GalaSoft.MvvmLight.Command
/// and leave the CommandParameter and CommandParameterValue empty!</para>
/// </summary>
////[ClassInfo(typeof(EventToCommand),
//// VersionString = "4.1.6",
//// DateString = "201305182300",
//// VersionString = "4.2.7",
//// DateString = "201309262235",
//// Description = "A Trigger used to bind any event to an ICommand.",
//// UrlContacts = "http://www.galasoft.ch/contact_en.html",
//// Email = "laurent@galasoft.ch")]

Просмотреть файл

@ -52,6 +52,7 @@
<WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
<DocumentationFile>bin\Debug\GalaSoft.MvvmLight.Extras.XML</DocumentationFile>
<RunCodeAnalysis>true</RunCodeAnalysis>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>

Просмотреть файл

@ -31,8 +31,8 @@ namespace GalaSoft.MvvmLight.Ioc
/// been extended with additional features.
/// </summary>
//// [ClassInfo(typeof(SimpleIoc),
//// VersionString = "4.1.6",
//// DateString = "201212161200",
//// VersionString = "4.2.7",
//// DateString = "201309262235",
//// Description = "A very simple IOC container.",
//// UrlContacts = "http://www.galasoft.ch/contact_en.html",
//// Email = "laurent@galasoft.ch")]

Просмотреть файл

@ -43,22 +43,5 @@ using System.Windows.Markup;
[assembly: ComVisible(false)]
[assembly: CLSCompliant(true)]
[assembly: AssemblyVersion("4.1.27.*")]
////[assembly: AssemblyFileVersion("4.1.27.0/BL0027")]
// FxCop
[module: SuppressMessage("Microsoft.Naming",
"CA1704:IdentifiersShouldBeSpelledCorrectly",
MessageId = "Mvvm")]
[module: SuppressMessage("Microsoft.Naming",
"CA1704:IdentifiersShouldBeSpelledCorrectly",
Scope = "namespace",
Target = "GalaSoft.MvvmLight.Command",
MessageId = "Mvvm")]
[module: SuppressMessage("Microsoft.Naming",
"CA1704:IdentifiersShouldBeSpelledCorrectly",
Scope = "namespace",
Target = "GalaSoft.MvvmLight.Threading",
MessageId = "Mvvm")]
[assembly: AssemblyVersion("4.2.29.*")]
////[assembly: AssemblyFileVersion("4.2.29.0/BL0029")]

Просмотреть файл

@ -36,8 +36,8 @@ namespace GalaSoft.MvvmLight.Command
/// and leave the CommandParameter and CommandParameterValue empty!</para>
/// </summary>
////[ClassInfo(typeof(EventToCommand),
//// VersionString = "4.1.6",
//// DateString = "201305182300",
//// VersionString = "4.2.7",
//// DateString = "201309262235",
//// Description = "A Trigger used to bind any event to an ICommand.",
//// UrlContacts = "http://www.galasoft.ch/contact_en.html",
//// Email = "laurent@galasoft.ch")]