Skip to content

Commit 61fd1c0

Browse files
authored
Fix header blank line elision
PR #294 resolved header forms to a consistent style. However, the "fixer" to apply the header elided blank lines that help explain things. Additionally, the missing blank line re-introduces SA1636 (Circular fix). So, this adds the blank lines back again. * Set general support for C# projects to treat warnings as errors to force explicit silencing of warnings AND catch things like this before they go into the repo.
1 parent 78e25d4 commit 61fd1c0

32 files changed

+34
-0
lines changed

Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
<Nullable Condition="$(Nullable)=='' AND '$(UsingMicrosoftNETSdk)'=='true'">enable</Nullable>
6464
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
6565
<EnableNETAnalyzers>true</EnableNETAnalyzers>
66+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
6667
<!--
6768
DO NOT ALLOW Implicit using msbuild feature - EVIL; causes mass issues and frustration moving code between projects when one doesn't
6869
support it or uses a different version. Not to mention hiding the actual namespaces involved, making resolving conflicts HARDER.

src/Interop/Ubiquity.NET.Llvm.Interop/ABI/libllvm-c/AttributeBindings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright (c) Ubiquity.NET Contributors. All rights reserved.
22
// Licensed under the Apache-2.0 WITH LLVM-exception license. See the LICENSE.md file in the project root for full license information.
3+
34
// Usually ordering applies, however in this case the ordering is by method name
45
// and sometimes contains a wrapper method on the low level to make use easier.
56
#pragma warning disable SA1202 // Elements should be ordered by access

src/Interop/Ubiquity.NET.Llvm.Interop/ABI/libllvm-c/DataLayoutBindings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright (c) Ubiquity.NET Contributors. All rights reserved.
22
// Licensed under the Apache-2.0 WITH LLVM-exception license. See the LICENSE.md file in the project root for full license information.
3+
34
// Usually ordering applies, however in this case the ordering is by method name
45
// and sometimes contains a wrapper method on the low level to make use easier.
56
#pragma warning disable SA1202 // Elements should be ordered by access

src/Interop/Ubiquity.NET.Llvm.Interop/ABI/libllvm-c/MetadataBindings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright (c) Ubiquity.NET Contributors. All rights reserved.
22
// Licensed under the Apache-2.0 WITH LLVM-exception license. See the LICENSE.md file in the project root for full license information.
3+
34
// Usually ordering applies, however in this case the ordering is by method name
45
// and sometimes contains a wrapper method on the low level to make use easier.
56
#pragma warning disable SA1202 // Elements should be ordered by access

src/Interop/Ubiquity.NET.Llvm.Interop/ABI/libllvm-c/ModuleBindings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright (c) Ubiquity.NET Contributors. All rights reserved.
22
// Licensed under the Apache-2.0 WITH LLVM-exception license. See the LICENSE.md file in the project root for full license information.
3+
34
// Usually ordering applies, however in this case the ordering is by method name
45
// and sometimes contains a wrapper method on the low level to make use easier.
56
#pragma warning disable SA1202 // Elements should be ordered by access

src/Interop/Ubiquity.NET.Llvm.Interop/ABI/libllvm-c/TargetMachineBindings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright (c) Ubiquity.NET Contributors. All rights reserved.
22
// Licensed under the Apache-2.0 WITH LLVM-exception license. See the LICENSE.md file in the project root for full license information.
3+
34
// Usually ordering applies, however in this case the ordering is by method name
45
// and sometimes contains a wrapper method on the low level to make use easier.
56
#pragma warning disable SA1202 // Elements should be ordered by access

src/Interop/Ubiquity.NET.Llvm.Interop/ABI/libllvm-c/TargetRegistrationBindings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright (c) Ubiquity.NET Contributors. All rights reserved.
22
// Licensed under the Apache-2.0 WITH LLVM-exception license. See the LICENSE.md file in the project root for full license information.
3+
34
// Usually ordering applies, however in this case the ordering is by method name
45
// and sometimes contains a wrapper method on the low level to make use easier.
56
#pragma warning disable SA1202 // Elements should be ordered by access

src/Interop/Ubiquity.NET.Llvm.Interop/ABI/libllvm-c/ValueBindings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright (c) Ubiquity.NET Contributors. All rights reserved.
22
// Licensed under the Apache-2.0 WITH LLVM-exception license. See the LICENSE.md file in the project root for full license information.
3+
34
// Usually ordering applies, however in this case the ordering is by method name
45
// and sometimes contains a wrapper method on the low level to make use easier.
56
#pragma warning disable SA1202 // Elements should be ordered by access

src/Interop/Ubiquity.NET.Llvm.Interop/ABI/llvm-c/Core.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright (c) Ubiquity.NET Contributors. All rights reserved.
22
// Licensed under the Apache-2.0 WITH LLVM-exception license. See the LICENSE.md file in the project root for full license information.
3+
34
// Usually ordering applies, however in this case the ordering is by method name
45
// and sometimes contains a wrapper method on the low level to make use easier.
56
#pragma warning disable SA1202 // Elements should be ordered by access

src/Interop/Ubiquity.NET.Llvm.Interop/ABI/llvm-c/DebugInfo.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright (c) Ubiquity.NET Contributors. All rights reserved.
22
// Licensed under the Apache-2.0 WITH LLVM-exception license. See the LICENSE.md file in the project root for full license information.
3+
34
// Usually ordering applies, however in this case the ordering is by method name
45
// and sometimes contains a wrapper method on the low level to make use easier.
56
#pragma warning disable SA1202 // Elements should be ordered by access

0 commit comments

Comments
 (0)