Skip to content

Commit

Permalink
Enable SA1625 and SA1649
Browse files Browse the repository at this point in the history
References #23
  • Loading branch information
andreashuber-lawo committed May 3, 2016
1 parent af53c82 commit 8d22e4d
Show file tree
Hide file tree
Showing 63 changed files with 67 additions and 65 deletions.
6 changes: 2 additions & 4 deletions CodeAnalysis.ruleset
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,10 @@
<Rule Id="CA5122" Action="Error" />
</Rules>
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
<Rule Id="SA1625" Action="None" />
<Rule Id="SA1611" Action="None" />
<Rule Id="SA1615" Action="None" />
<Rule Id="SA1637" Action="None" />
<Rule Id="SA1649" Action="None" />
<Rule Id="SA1611" Action="None" />
<Rule Id="SA1648" Action="None" />
<Rule Id="SA1640" Action="None" />
<Rule Id="SA1648" Action="None" />
</Rules>
</RuleSet>
File renamed without changes.
File renamed without changes.
88 changes: 44 additions & 44 deletions Lawo.EmberPlusSharp/Lawo.EmberPlusSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@
<Compile Include="Ember\EmberWriter.cs" />
<Compile Include="Ember\Class.cs" />
<Compile Include="Ember\Constants.cs" />
<Compile Include="Ember\Field.cs" />
<Compile Include="Ember\FieldPath.cs" />
<Compile Include="Ember\Field`2.cs" />
<Compile Include="Ember\FieldPath`2.cs" />
<Compile Include="Ember\IEmberConverter.cs" />
<Compile Include="Ember\InnerNumber.cs" />
<Compile Include="Ember\EmberId.cs" />
Expand Down Expand Up @@ -98,23 +98,23 @@
<Compile Include="Glow\GlowTypes.cs" />
<Compile Include="GlobalSuppressions.cs" />
<Compile Include="Model\ChildrenRetrievalPolicy.cs" />
<Compile Include="Model\ElementWithSchemas.cs" />
<Compile Include="Model\Function.cs" />
<Compile Include="Model\Function1.cs" />
<Compile Include="Model\Function3.cs" />
<Compile Include="Model\Function5.cs" />
<Compile Include="Model\Function6.cs" />
<Compile Include="Model\Function4.cs" />
<Compile Include="Model\Function2.cs" />
<Compile Include="Model\ElementWithSchemas`1.cs" />
<Compile Include="Model\Function`1.cs" />
<Compile Include="Model\Function`2.cs" />
<Compile Include="Model\Function`4.cs" />
<Compile Include="Model\Function`6.cs" />
<Compile Include="Model\Function`7.cs" />
<Compile Include="Model\Function`5.cs" />
<Compile Include="Model\Function`3.cs" />
<Compile Include="Model\InvocationCollection.cs" />
<Compile Include="Model\IStreamedParameter.cs" />
<Compile Include="Model\IStreamedParameterCollection.cs" />
<Compile Include="Model\RetrievalState.cs" />
<Compile Include="Model\DynamicRoot.cs" />
<Compile Include="Model\DynamicRoot`1.cs" />
<Compile Include="Model\DynamicNodeHelper.cs" />
<Compile Include="Model\DynamicNode.cs" />
<Compile Include="Model\DynamicFieldNode.cs" />
<Compile Include="Model\DynamicNodeBase.cs" />
<Compile Include="Model\DynamicFieldNode`1.cs" />
<Compile Include="Model\DynamicNodeBase`1.cs" />
<Compile Include="Model\DynamicParameter.cs" />
<Compile Include="Model\IElementWithSchemas.cs" />
<Compile Include="Model\IFunction.cs" />
Expand All @@ -126,38 +126,38 @@
<Compile Include="Model\RetrieveDetailsChangeStatus.cs" />
<Compile Include="Model\IValueReader.cs" />
<Compile Include="Model\MatrixAddressingMode.cs" />
<Compile Include="Model\MatrixParameters.cs" />
<Compile Include="Model\MatrixParameters`3.cs" />
<Compile Include="Model\MatrixLabels.cs" />
<Compile Include="Model\NodeBase.cs" />
<Compile Include="Model\NullableEnumParameter.cs" />
<Compile Include="Model\EnumParameterImpl.cs" />
<Compile Include="Model\EnumParameter.cs" />
<Compile Include="Model\NodeBase`1.cs" />
<Compile Include="Model\NullableEnumParameter`1.cs" />
<Compile Include="Model\EnumParameterImpl`1.cs" />
<Compile Include="Model\EnumParameter`1.cs" />
<Compile Include="Model\NullableStringParameter.cs" />
<Compile Include="Model\NullableOctetstringParameter.cs" />
<Compile Include="Model\NullableRealParameter.cs" />
<Compile Include="Model\NullableIntegerParameter.cs" />
<Compile Include="Model\NullableBooleanParameter.cs" />
<Compile Include="Model\NullableNumericParameter.cs" />
<Compile Include="Model\FunctionBase.cs" />
<Compile Include="Model\NullableNumericParameter`2.cs" />
<Compile Include="Model\FunctionBase`1.cs" />
<Compile Include="Model\DynamicFunction.cs" />
<Compile Include="Model\DynamicResult.cs" />
<Compile Include="Model\Matrix.cs" />
<Compile Include="Model\Matrix`3.cs" />
<Compile Include="Model\MatrixType.cs" />
<Compile Include="Model\Result5.cs" />
<Compile Include="Model\Result6.cs" />
<Compile Include="Model\Result`5.cs" />
<Compile Include="Model\Result`6.cs" />
<Compile Include="Model\ShadowNode.cs" />
<Compile Include="Model\StaticFunction.cs" />
<Compile Include="Model\Result2.cs" />
<Compile Include="Model\Result3.cs" />
<Compile Include="Model\Result4.cs" />
<Compile Include="Model\Result1.cs" />
<Compile Include="Model\StaticFunction`1.cs" />
<Compile Include="Model\Result`2.cs" />
<Compile Include="Model\Result`3.cs" />
<Compile Include="Model\Result`4.cs" />
<Compile Include="Model\Result`1.cs" />
<Compile Include="Model\Result.cs" />
<Compile Include="Model\ResultBase.cs" />
<Compile Include="Model\ResultBase`1.cs" />
<Compile Include="Model\StreamedParameterCollection.cs" />
<Compile Include="Model\ValueParameter.cs" />
<Compile Include="Model\ReferenceParameter.cs" />
<Compile Include="Model\NullableParameter.cs" />
<Compile Include="Model\ParameterBase.cs" />
<Compile Include="Model\ValueParameter`2.cs" />
<Compile Include="Model\ReferenceParameter`2.cs" />
<Compile Include="Model\NullableParameter`2.cs" />
<Compile Include="Model\ParameterBase`2.cs" />
<Compile Include="Model\ElementType.cs" />
<Compile Include="Model\EmberReaderExtensions.cs" />
<Compile Include="Model\BooleanParameter.cs" />
Expand All @@ -177,39 +177,39 @@
<Compile Include="Glow\GlowElementCollection.cs" />
<Compile Include="Glow\GlowNode.cs" />
<Compile Include="Glow\GlowParameter.cs" />
<Compile Include="Model\CollectionNode.cs" />
<Compile Include="Model\CollectionNode`1.cs" />
<Compile Include="Model\IParent.cs" />
<Compile Include="Model\ValueWriter.cs" />
<Compile Include="Model\ValueReader.cs" />
<Compile Include="Model\ValueWriter`1.cs" />
<Compile Include="Model\ValueReader`1.cs" />
<Compile Include="S101\EventInfo.cs" />
<Compile Include="S101\LogNames.cs" />
<Compile Include="Glow\GlowLogConverter.cs" />
<Compile Include="S101\OutOfFrameByteReceivedEventArgs.cs" />
<Compile Include="S101\S101Logger.cs" />
<Compile Include="Model\Node.cs" />
<Compile Include="Model\Node`1.cs" />
<Compile Include="Model\OctetstringParameter.cs" />
<Compile Include="Model\Root.cs" />
<Compile Include="Model\Root`1.cs" />
<Compile Include="Model\StringParameter.cs" />
<Compile Include="Model\IntegerParameter.cs" />
<Compile Include="Model\IParameter.cs" />
<Compile Include="Model\ModelException.cs" />
<Compile Include="Model\Element.cs" />
<Compile Include="Model\Element1.cs" />
<Compile Include="Model\Element`1.cs" />
<Compile Include="Model\ElementAttribute.cs" />
<Compile Include="Model\IElement.cs" />
<Compile Include="Model\INode.cs" />
<Compile Include="Model\Context.cs" />
<Compile Include="Model\MetaElement.cs" />
<Compile Include="Model\MetaElement1.cs" />
<Compile Include="Model\NumericParameter.cs" />
<Compile Include="Model\Parameter.cs" />
<Compile Include="Model\NumericParameter`2.cs" />
<Compile Include="Model\Parameter`2.cs" />
<Compile Include="Model\ParameterAccess.cs" />
<Compile Include="Model\ParameterType.cs" />
<Compile Include="Model\RealParameter.cs" />
<Compile Include="Model\Consumer.cs" />
<Compile Include="Model\Consumer`1.cs" />
<Compile Include="Model\StreamDescription.cs" />
<Compile Include="Model\StreamFormat.cs" />
<Compile Include="Model\FieldNode.cs" />
<Compile Include="Model\FieldNode`1.cs" />
<Compile Include="S101\S101Command.cs" />
<Compile Include="S101\CommandType.cs" />
<Compile Include="S101\Constants.cs" />
Expand Down Expand Up @@ -250,7 +250,7 @@
<None Include="packages.config">
<SubType>Designer</SubType>
</None>
<AdditionalFiles Include="$(MSBuildThisFileDirectory)\..\stylecop.json" >
<AdditionalFiles Include="$(MSBuildThisFileDirectory)\..\stylecop.json">
<Link>stylecop.json</Link>
</AdditionalFiles>
</ItemGroup>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ public static Task<Consumer<TRoot>> CreateAsync(S101Client client, int timeout,
/// <para>All changes to the object tree are reported by raising the
/// <see cref="INotifyPropertyChanged.PropertyChanged"/> event of the affected objects.</para>
/// </remarks>
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1625:Element documentation must not be copied and pasted", Justification = "Intended, both exceptions can be thrown under the same circumstances.")]
[SuppressMessage("Microsoft.Design", "CA1000:DoNotDeclareStaticMembersOnGenericTypes", Justification = "There's no other way.")]
public static async Task<Consumer<TRoot>> CreateAsync(
S101Client client, int timeout, ChildrenRetrievalPolicy childrenRetrievalPolicy, byte slot)
Expand Down Expand Up @@ -190,6 +191,7 @@ public Task SendChangesAsync()
/// <remarks>Also retrieves the children of any objects implementing <see cref="INode"/> that have had their
/// <see cref="INode.ChildrenRetrievalPolicy"/> property set to a value other than
/// <see cref="ChildrenRetrievalPolicy.None">ChildrenRetrievalPolicy.None</see>.</remarks>
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1625:Element documentation must not be copied and pasted", Justification = "Intended, both exceptions can be thrown under the same circumstances.")]
public async Task SendAsync()
{
if (await this.SendCoreAsync())
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions Lawo.EmberPlusSharp/S101/S101Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ public Task SendMessageAsync(S101Message message)
/// <see cref="ConnectionLost"/> event has been raised.</exception>
/// <exception cref="OperationCanceledException"><see cref="Dispose"/> has been called or the
/// <see cref="ConnectionLost"/> event has been raised.</exception>
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1625:Element documentation must not be copied and pasted", Justification = "Intended, both exceptions can be thrown under the same circumstances.")]
public Task SendMessageAsync(S101Message message, byte[] payload)
{
this.AssertPreconditions();
Expand Down
6 changes: 3 additions & 3 deletions Lawo.EmberPlusSharpTest/Lawo.EmberPlusSharpTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@
<Compile Include="Model\Test\FunctionNode.cs" />
<Compile Include="Model\Test\EmptyZoneNode.cs" />
<Compile Include="Model\Test\EmptyZoneNodeRoot.cs" />
<Compile Include="Model\Test\InterfaceElementRoot.cs" />
<Compile Include="Model\Test\InterfaceElementRoot`1.cs" />
<Compile Include="Model\Test\StreamRoot.cs" />
<Compile Include="Model\Test\ZoneNodeRoot.cs" />
<Compile Include="Model\Test\TwoParameterRoot.cs" />
<Compile Include="Model\Test\FunctionRoot.cs" />
<Compile Include="Model\Test\EmptyNode.cs" />
<Compile Include="Model\Test\EmptyNodeRoot.cs" />
<Compile Include="Model\Test\ChangeNotificationRoot.cs" />
<Compile Include="Model\Test\BooleanRoot.cs" />
<Compile Include="Model\Test\FunctionSignatureMismatchRoot4.cs" />
<Compile Include="Model\Test\FunctionSignatureMismatchRoot5.cs" />
<Compile Include="Model\Test\FunctionResultMismatchRoot.cs" />
Expand All @@ -114,7 +114,7 @@
<Compile Include="Model\Test\MediaSessionReceiver.cs" />
<Compile Include="Model\Test\ZoneNode.cs" />
<Compile Include="Model\TutorialTest.cs" />
<Compile Include="Model\DynamicNodeHelper.cs" />
<Compile Include="Model\DynamicHelper.cs" />
<Compile Include="Model\Test\EmptyDynamicRoot.cs" />
<Compile Include="Model\Test\BigTreeStaticRoot.cs" />
<Compile Include="Model\Test\BigTreeNode.cs" />
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions Lawo.UnitTesting/Lawo.UnitTesting.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<Compile Include="..\SharedAssemblyInfo.cs">
<Link>Properties\SharedAssemblyInfo.cs</Link>
</Compile>
<Compile Include="Activator.cs" />
<Compile Include="Activator`1.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="TestBase.cs" />
</ItemGroup>
Expand All @@ -67,7 +67,7 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<AdditionalFiles Include="$(MSBuildThisFileDirectory)\..\stylecop.json" >
<AdditionalFiles Include="$(MSBuildThisFileDirectory)\..\stylecop.json">
<Link>stylecop.json</Link>
</AdditionalFiles>
<None Include="packages.config" />
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
20 changes: 10 additions & 10 deletions Lawo/Lawo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,20 @@
<Link>Properties\SharedAssemblyInfo.cs</Link>
</Compile>
<Compile Include="BufferHelper.cs" />
<Compile Include="ComponentModel\SubscribedObservableCollection.cs" />
<Compile Include="ComponentModel\DisposableReadOnlyObservableCollection.cs" />
<Compile Include="ComponentModel\SubscribedObservableCollection`1.cs" />
<Compile Include="ComponentModel\DisposableReadOnlyObservableCollection`1.cs" />
<Compile Include="ComponentModel\FilterHelper.cs" />
<Compile Include="ComponentModel\Trigger.cs" />
<Compile Include="ComponentModel\MultiBinding.cs" />
<Compile Include="ComponentModel\CalculatedProperty.cs" />
<Compile Include="ComponentModel\MultiBinding1.cs" />
<Compile Include="ComponentModel\CalculatedProperty1.cs" />
<Compile Include="ComponentModel\ChangeOriginatedAtEventArgs.cs" />
<Compile Include="ComponentModel\MultiBinding`1.cs" />
<Compile Include="ComponentModel\CalculatedProperty`1.cs" />
<Compile Include="ComponentModel\ChangeOriginatedAtEventArgs`2.cs" />
<Compile Include="ComponentModel\FlattenHelper.cs" />
<Compile Include="ComponentModel\ProjectionHelper.cs" />
<Compile Include="ComponentModel\OneWayBinding.cs" />
<Compile Include="ComponentModel\TwoWayBinding.cs" />
<Compile Include="ComponentModel\Binding.cs" />
<Compile Include="ComponentModel\Binding`4.cs" />
<Compile Include="ComponentModel\ObservableCollectionHelper.cs" />
<Compile Include="ComponentModel\PropertyChangedRegistration.cs" />
<Compile Include="ComponentModel\NotifyPropertyChanged.cs" />
Expand All @@ -93,11 +93,11 @@
<Compile Include="IO\WriteBuffer.cs" />
<Compile Include="IO\JsonSerializer.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Reflection\IProperty2.cs" />
<Compile Include="Reflection\IProperty.cs" />
<Compile Include="Reflection\IProperty`2.cs" />
<Compile Include="Reflection\IProperty`1.cs" />
<Compile Include="Reflection\ReflectionHelper.cs" />
<Compile Include="ScopeGuard.cs" />
<Compile Include="ScopeGuard1.cs" />
<Compile Include="ScopeGuard`1.cs" />
<Compile Include="Threading\NativeMethods.cs" />
<Compile Include="Threading\Tasks\AsyncPump.cs" />
<Compile Include="Threading\Tasks\TaskSingleton.cs" />
Expand All @@ -110,7 +110,7 @@
</CodeAnalysisDictionary>
</ItemGroup>
<ItemGroup>
<AdditionalFiles Include="$(MSBuildThisFileDirectory)\..\stylecop.json" >
<AdditionalFiles Include="$(MSBuildThisFileDirectory)\..\stylecop.json">
<Link>stylecop.json</Link>
</AdditionalFiles>
<None Include="packages.config" />
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 3 additions & 2 deletions stylecop.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
]
},
"documentationRules": {
"fileNamingConvention": "metadata",
"copyrightText": "Copyright 2012-2016 Lawo AG (http://www.lawo.com).",
"documentInterfaces": false,
"documentInternalElements": false,
"copyrightText": "Copyright 2012-2016 Lawo AG (http://www.lawo.com)."
"documentInternalElements": false
}
}
}

0 comments on commit 8d22e4d

Please sign in to comment.