Skip to content

Commit

Permalink
Code style change: require newline at end of files.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeago committed Sep 13, 2021
1 parent 35855d9 commit 0442ef2
Show file tree
Hide file tree
Showing 19 changed files with 21 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ root = true
indent_style = space
indent_size = 4
end_of_line = crlf
insert_final_newline = false
insert_final_newline = true
trim_trailing_whitespace = true

# Code files
[*.{cs,csx,vb,vbx}]
insert_final_newline = false
insert_final_newline = true
charset = utf-8-bom

# Xml project files
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

Initial release, deprecated because of ownership change.

If you were using this release, you can safely update to v1.1.0.
If you were using this release, you can safely update to v1.1.0.
1 change: 1 addition & 0 deletions Cecil.XmlDocNames.sln.DotSettings
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
<s:Boolean x:Key="/Default/CodeInspection/Highlighting/ShowVsBulbItemsInSubmenu/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CommonFormatter/ENFORCE_LINE_ENDING_STYLE/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpCodeStyle/TRAILING_COMMA_IN_MULTILINE_LISTS/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/LINE_FEED_AT_FILE_END/@EntryValue">True</s:Boolean>
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/MAX_ENUM_MEMBERS_ON_LINE/@EntryValue">1</s:Int64>
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/MAX_INITIALIZER_ELEMENTS_ON_LINE/@EntryValue">16</s:Int64>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/PLACE_ACCESSOR_ATTRIBUTE_ON_SAME_LINE_EX/@EntryValue">NEVER</s:String>
Expand Down
2 changes: 1 addition & 1 deletion Common.props
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>

</Project>
</Project>
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

<Import Project="Sdk.props" Sdk="Buildvana.Sdk" Version="1.0.0-alpha.14" />

</Project>
</Project>
2 changes: 1 addition & 1 deletion Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

<Import Project="Sdk.targets" Sdk="Buildvana.Sdk" Version="1.0.0-alpha.14" />

</Project>
</Project>
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="16.11.0" />
</ItemGroup>

</Project>
</Project>
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ The font used in the logo is [BloggerSans.otf](https://fontlibrary.org/en/font/b

---

*Disclaimer:* The author of this library is in no way affiliated to [JetBrains s.r.o.](https://www.jetbrains.com/) (the makers of ReSharper) other than being a satisfied cutomer.
*Disclaimer:* The author of this library is in no way affiliated to [JetBrains s.r.o.](https://www.jetbrains.com/) (the makers of ReSharper) other than being a satisfied cutomer.
2 changes: 1 addition & 1 deletion THIRD-PARTY-NOTICES
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.1
1.2.1
2 changes: 1 addition & 1 deletion src/Cecil.XmlDocNames/MemberReferenceExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ public static string GetXmlDocName(this MemberReference @this)
return new StringBuilder().AppendXmlDocName(@this).ToString();
}
}
}
}
2 changes: 1 addition & 1 deletion src/Cecil.XmlDocNames/StringBuilderExtensions-Cecil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,4 +206,4 @@ private static StringBuilder AppendDocNameCore(this StringBuilder sb, PropertyRe
private static StringBuilder AppendDocNameCore(this StringBuilder sb, MemberReference field)
=> sb.AppendDocNameCore(field.DeclaringType).Append('.').AppendMemberName(field);
}
}
}
2 changes: 1 addition & 1 deletion src/Cecil.XmlDocNames/StringBuilderExtensions-common.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ private static StringBuilder InvokeForEach<T>(this StringBuilder sb, IEnumerable
return sb;
}
}
}
}
2 changes: 1 addition & 1 deletion src/Cecil.XmlDocNames/StringBuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ namespace Cecil.XmlDocNames
public static partial class StringBuilderExtensions
{
}
}
}
4 changes: 2 additions & 2 deletions stylecop.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},

"layoutRules": {
"newlineAtEndOfFile": "omit",
"newlineAtEndOfFile": "require",
"allowConsecutiveUsings": true
},

Expand All @@ -63,4 +63,4 @@
"excludeFromPunctuationCheck": [ "exception", "seealso" ]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ public static TypeDefinition GetTypeThatStartsWith(this AssemblyDefinition @this
=> @this.Modules.SelectMany(m => m.GetTypes())
.First(t => t.Name.StartsWith(prefix, StringComparison.Ordinal));
}
}
}
2 changes: 1 addition & 1 deletion tests/Cecil.XmlDocNames.Tests/Internal/TestUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ public static AssemblyDefinition ReadExampleAssembly()
return AssemblyDefinition.ReadAssembly(assemblyPath, readerParameters);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ public static EventDefinition GetEventThatStartsWith(this TypeDefinition @this,
public static PropertyDefinition GetPropertyThatStartsWith(this TypeDefinition @this, string prefix)
=> @this.Properties.First(t => t.Name.StartsWith(prefix, StringComparison.Ordinal));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,4 @@ public void AppendXmlDocName_WithGenericMethodOfGenericType_ReturnsCorrectValue(
Assert.AreEqual("M:ExampleAssembly.GenericClass`1.GenericMethod``1(`0,`0@,``0[],System.Collections.Generic.IEnumerable{``0}@)", result);
}
}
}
}

0 comments on commit 0442ef2

Please sign in to comment.