Skip to content

Commit

Permalink
Apply all code fixes; no functional changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeago committed Apr 1, 2022
1 parent c4fcd44 commit 70f2771
Show file tree
Hide file tree
Showing 10 changed files with 79 additions and 65 deletions.
8 changes: 4 additions & 4 deletions src/Cecil.XmlDocNames/MemberReferenceExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// -----------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------------
// Copyright (C) Riccardo De Agostini and Tenacom. All rights reserved.
// Licensed under the MIT license.
// See LICENSE file in the project root for full license information.
// See the LICENSE file in the project root for full license information.
//
// Part of this file may be third-party code, distributed under a compatible license.
// See THIRD-PARTY-NOTICES file in the project root for third-party copyright notices.
// -----------------------------------------------------------------------------------
// See the THIRD-PARTY-NOTICES file in the project root for third-party copyright notices.
// ---------------------------------------------------------------------------------------

using System;
using System.Text;
Expand Down
8 changes: 4 additions & 4 deletions src/Cecil.XmlDocNames/StringBuilderExtensions-Cecil.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// -----------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------------
// Copyright (C) Riccardo De Agostini and Tenacom. All rights reserved.
// Licensed under the MIT license.
// See LICENSE file in the project root for full license information.
// See the LICENSE file in the project root for full license information.
//
// Part of this file may be third-party code, distributed under a compatible license.
// See THIRD-PARTY-NOTICES file in the project root for third-party copyright notices.
// -----------------------------------------------------------------------------------
// See the THIRD-PARTY-NOTICES file in the project root for third-party copyright notices.
// ---------------------------------------------------------------------------------------

using System;
using System.Linq;
Expand Down
8 changes: 4 additions & 4 deletions src/Cecil.XmlDocNames/StringBuilderExtensions-common.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// -----------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------------
// Copyright (C) Riccardo De Agostini and Tenacom. All rights reserved.
// Licensed under the MIT license.
// See LICENSE file in the project root for full license information.
// See the LICENSE file in the project root for full license information.
//
// Part of this file may be third-party code, distributed under a compatible license.
// See THIRD-PARTY-NOTICES file in the project root for third-party copyright notices.
// -----------------------------------------------------------------------------------
// See the THIRD-PARTY-NOTICES file in the project root for third-party copyright notices.
// ---------------------------------------------------------------------------------------

using System;
using System.Collections.Generic;
Expand Down
8 changes: 4 additions & 4 deletions src/Cecil.XmlDocNames/StringBuilderExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// -----------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------------
// Copyright (C) Riccardo De Agostini and Tenacom. All rights reserved.
// Licensed under the MIT license.
// See LICENSE file in the project root for full license information.
// See the LICENSE file in the project root for full license information.
//
// Part of this file may be third-party code, distributed under a compatible license.
// See THIRD-PARTY-NOTICES file in the project root for third-party copyright notices.
// -----------------------------------------------------------------------------------
// See the THIRD-PARTY-NOTICES file in the project root for third-party copyright notices.
// ---------------------------------------------------------------------------------------

using System.Text;
using JetBrains.Annotations;
Expand Down
46 changes: 26 additions & 20 deletions testFixtures/ExampleAssembly/ExampleClass.cs
Original file line number Diff line number Diff line change
@@ -1,29 +1,35 @@
using System;
// ---------------------------------------------------------------------------------------
// Copyright (C) Riccardo De Agostini and Tenacom. All rights reserved.
// Licensed under the MIT license.
// See the LICENSE file in the project root for full license information.
//
// Part of this file may be third-party code, distributed under a compatible license.
// See the THIRD-PARTY-NOTICES file in the project root for third-party copyright notices.
// ---------------------------------------------------------------------------------------

using System;
using System.Collections.Generic;

namespace ExampleAssembly
namespace ExampleAssembly;

public sealed class ExampleClass
{
public sealed class ExampleClass
{
public int Field;
public int Field;

public ExampleClass()
{
Field = default;
}
public ExampleClass()
{
Field = default;
}

public int Property { get; set; }
public int Property { get; set; }

#pragma warning disable CS0067 // Event is never used - accessed only via reflection
public event EventHandler? Event;
#pragma warning restore CS0067
public event EventHandler? Event;

public void Method(int a, ref string b, byte[] c) => b = a + c.ToString();
public void Method(int a, ref string b, byte[] c) => b = a + c.ToString();

public void GenericMethod<T>(T a, ref T b, T[] c, out IEnumerable<T> d)
{
b = a;
d = c;
}
public void GenericMethod<T>(T a, ref T b, T[] c, out IEnumerable<T> d)
{
b = a;
d = c;
}
}
}
34 changes: 21 additions & 13 deletions testFixtures/ExampleAssembly/GenericClass`1.cs
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
using System.Collections.Generic;
// ---------------------------------------------------------------------------------------
// Copyright (C) Riccardo De Agostini and Tenacom. All rights reserved.
// Licensed under the MIT license.
// See the LICENSE file in the project root for full license information.
//
// Part of this file may be third-party code, distributed under a compatible license.
// See the THIRD-PARTY-NOTICES file in the project root for third-party copyright notices.
// ---------------------------------------------------------------------------------------

namespace ExampleAssembly
using System.Collections.Generic;

namespace ExampleAssembly;

public sealed class GenericClass<T>
{
public sealed class GenericClass<T>
public GenericClass()
{
public GenericClass()
{
}
}

public void Method(int a, ref string b, byte[] c) => b = a + c.ToString();
public void Method(int a, ref string b, byte[] c) => b = a + c.ToString();

public void GenericMethod<TT>(T a, ref T b, TT[] c, out IEnumerable<TT> d)
{
b = a;
d = c;
}
public void GenericMethod<TT>(T a, ref T b, TT[] c, out IEnumerable<TT> d)
{
b = a;
d = c;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// -----------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------------
// Copyright (C) Riccardo De Agostini and Tenacom. All rights reserved.
// Licensed under the MIT license.
// See LICENSE file in the project root for full license information.
// See the LICENSE file in the project root for full license information.
//
// Part of this file may be third-party code, distributed under a compatible license.
// See THIRD-PARTY-NOTICES file in the project root for third-party copyright notices.
// -----------------------------------------------------------------------------------
// See the THIRD-PARTY-NOTICES file in the project root for third-party copyright notices.
// ---------------------------------------------------------------------------------------

using System;
using System.Linq;
Expand Down
8 changes: 4 additions & 4 deletions tests/Cecil.XmlDocNames.Tests/Internal/TestUtility.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// -----------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------------
// Copyright (C) Riccardo De Agostini and Tenacom. All rights reserved.
// Licensed under the MIT license.
// See LICENSE file in the project root for full license information.
// See the LICENSE file in the project root for full license information.
//
// Part of this file may be third-party code, distributed under a compatible license.
// See THIRD-PARTY-NOTICES file in the project root for third-party copyright notices.
// -----------------------------------------------------------------------------------
// See the THIRD-PARTY-NOTICES file in the project root for third-party copyright notices.
// ---------------------------------------------------------------------------------------

using System.IO;
using System.Reflection;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// -----------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------------
// Copyright (C) Riccardo De Agostini and Tenacom. All rights reserved.
// Licensed under the MIT license.
// See LICENSE file in the project root for full license information.
// See the LICENSE file in the project root for full license information.
//
// Part of this file may be third-party code, distributed under a compatible license.
// See THIRD-PARTY-NOTICES file in the project root for third-party copyright notices.
// -----------------------------------------------------------------------------------
// See the THIRD-PARTY-NOTICES file in the project root for third-party copyright notices.
// ---------------------------------------------------------------------------------------

using System;
using System.Linq;
Expand Down
8 changes: 4 additions & 4 deletions tests/Cecil.XmlDocNames.Tests/StringBuilderExtensionsTest.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// -----------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------------
// Copyright (C) Riccardo De Agostini and Tenacom. All rights reserved.
// Licensed under the MIT license.
// See LICENSE file in the project root for full license information.
// See the LICENSE file in the project root for full license information.
//
// Part of this file may be third-party code, distributed under a compatible license.
// See THIRD-PARTY-NOTICES file in the project root for third-party copyright notices.
// -----------------------------------------------------------------------------------
// See the THIRD-PARTY-NOTICES file in the project root for third-party copyright notices.
// ---------------------------------------------------------------------------------------

using System;
using System.Text;
Expand Down

0 comments on commit 70f2771

Please sign in to comment.