Add linting for copyright and unused usings (#1416)

* Add linting for copyright and unused usings

* Add one more + comment

* Enforce in build and fix errors

* Fix build
This commit is contained in:
Charles Gagnon
2022-03-04 15:17:29 -08:00
committed by GitHub
parent 025f9af4fd
commit c248400a6c
233 changed files with 1323 additions and 364 deletions

View File

@@ -1,6 +1,7 @@
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using System;
using Microsoft.Azure.Management.Sql.Models;
@@ -9,7 +10,7 @@ using Microsoft.SqlTools.ResourceProvider.Core;
namespace Microsoft.SqlTools.ResourceProvider.DefaultImpl
{
/// <summary>
/// Implementation for <see cref="IAzureResource" /> using VS services.
/// Implementation for <see cref="IAzureResource" /> using VS services.
/// Provides information about an Azure resource
/// </summary>
public class AzureResourceWrapper : IAzureResource
@@ -18,7 +19,7 @@ namespace Microsoft.SqlTools.ResourceProvider.DefaultImpl
private string resourceGroupName;
/// <summary>
/// Initializes the resource
/// Initializes the resource
/// </summary>
public AzureResourceWrapper(TrackedResource azureResource)
{
@@ -94,7 +95,7 @@ namespace Microsoft.SqlTools.ResourceProvider.DefaultImpl
if (!string.IsNullOrEmpty(Id))
{
string[] idParts = Id.Split('/');
// Look for the "resourceGroups" section and return the section after this, hence
// always stop before idParts.Length - 1
for (int i = 0; i < idParts.Length - 1; i++)
@@ -134,5 +135,5 @@ namespace Microsoft.SqlTools.ResourceProvider.DefaultImpl
get;
set;
}
}
}
}