Skip to content

Commit

Permalink
Auto-update for packages related to 'Microsoft.CodeAnalysis' (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
MicrosoftHealthService authored and johnstairs committed Mar 15, 2019
1 parent 469c27f commit 2b009ac
Show file tree
Hide file tree
Showing 20 changed files with 41 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-18618-05" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.1-beta.61" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ internal Role(string name, IList<ResourcePermission> resourcePermissions, string
[JsonProperty("etag")]
public virtual string VersionTag { get; set; }

[System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "CA2227:Collection properties should be read only", Justification = "This is a DTO class")]
[JsonProperty("resourcePermissions")]
public virtual IList<ResourcePermission> ResourcePermissions { get; set; } = new List<ResourcePermission>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackageReference Include="Ensure.That" Version="8.1.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-18618-05" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.1-beta.61" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<PackageReference Include="Microsoft.Azure.DocumentDB.Core" Version="2.2.3" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Options" Version="2.2.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-18618-05" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.1-beta.61" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public class CosmosDataStoreConfiguration

public Uri RelativeDatabaseUri => string.IsNullOrEmpty(DatabaseId) ? null : UriFactory.CreateDatabaseUri(DatabaseId);

[System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "CA2227:Collection properties should be read only", Justification = "This is a configuration class")]
public IList<string> PreferredLocations { get; set; }

public int DataMigrationBatchSize { get; set; } = 100;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Options" Version="2.2.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-18618-05" />
<PackageReference Include="Polly" Version="7.0.3" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.1-beta.61" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

<ItemGroup>
<PackageReference Include="Ensure.That" Version="8.1.1" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.2" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.3" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.2.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-18618-05" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.1-beta.61" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
<PackageReference Include="Microsoft.AspNetCore.Diagnostics" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.HealthChecks" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.2.0" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.2" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.3" />
<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="2.2.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-18618-05" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.1-beta.61" />
<PackageReference Include="Microsoft.AspNetCore.Hosting" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.2.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,14 @@ private static AuthorizationConfiguration GetAuthorizationConfigurationForRoles(
new ResourcePermission(resourceActions),
};

var roles = roleNames.Select(ra => GetRole(ra, permissions)).ToList();
var authConfiguration = new AuthorizationConfiguration();

return new AuthorizationConfiguration
foreach (var name in roleNames)
{
Roles = roles,
};
authConfiguration.Roles.Add(GetRole(name, permissions));
}

return authConfiguration;
}

private static Role GetRole(string name, IList<ResourcePermission> resourcePermissions)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class AuthorizationConfiguration

public bool Enabled { get; set; }

public IList<Role> Roles { get; set; } = new List<Role>();
public IList<Role> Roles { get; } = new List<Role>();

public void ValidateRoles()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class SecurityConfiguration

public AuthenticationConfiguration Authentication { get; set; } = new AuthenticationConfiguration();

public virtual HashSet<string> LastModifiedClaims { get; set; } = new HashSet<string>();
public virtual HashSet<string> LastModifiedClaims { get; } = new HashSet<string>();

public AuthorizationConfiguration Authorization { get; set; } = new AuthorizationConfiguration();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

namespace Microsoft.Health.Fhir.Core.Features.Conformance
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "CA2227:Collection properties should be read only", Justification = "This is a DTO-style class")]
public sealed class ListedCapabilityStatement
{
public Uri Url { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

namespace Microsoft.Health.Fhir.Core.Features.Conformance
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "CA2227:Collection properties should be read only", Justification = "This is a DTO-style class")]
public class ListedResourceComponent
{
public ListedResourceComponent()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@

namespace Microsoft.Health.Fhir.Core.Features.Conformance
{
public class ListedRestComponent
{
public string Documentation { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "CA2227:Collection properties should be read only", Justification = "This is a DTO-style class")]
public class ListedRestComponent
{
public string Documentation { get; set; }

public IList<RestfulCapabilityMode> Mode { get; set; }
public IList<RestfulCapabilityMode> Mode { get; set; }

public IList<ListedResourceComponent> Resource { get; set; }
public IList<ListedResourceComponent> Resource { get; set; }

public SecurityComponent Security { get; set; }
public SecurityComponent Security { get; set; }

[System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "CA2227:Collection properties should be read only", Justification = "This is currently set in code")]
public List<SystemInteractionComponent> Interaction { get; set; }
public List<SystemInteractionComponent> Interaction { get; set; }

public IList<SearchParamComponent> SearchParam { get; set; }
public IList<SearchParamComponent> SearchParam { get; set; }

public IList<OperationComponent> Operation { get; set; }
}
public IList<OperationComponent> Operation { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
<PackageReference Include="Ensure.That" Version="8.1.1" />
<PackageReference Include="FluentValidation" Version="8.1.3" />
<PackageReference Include="MediatR" Version="6.0.0" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.2" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.3" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.2.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-18618-05" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.1-beta.61" />
<PackageReference Include="Hl7.Fhir.STU3" Version="0.96.0" />
<PackageReference Include="System.Collections.Immutable" Version="1.5.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="6.0.1" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.2" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.3" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-18618-05" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.1-beta.61" />
<PackageReference Include="Hl7.Fhir.STU3" Version="0.96.0" />
<PackageReference Include="Microsoft.Azure.DocumentDB.Core" Version="2.2.3" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
<PackageReference Include="Hl7.Fhir.STU3" Version="0.96.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-18618-05" />
<PackageReference Include="NSubstitute" Version="4.0.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
<PackageReference Include="FluentValidation" Version="8.1.3" />
<PackageReference Include="Hl7.Fhir.STU3" Version="0.96.0" />
<PackageReference Include="MediatR" Version="6.0.0" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.2" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.3" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.2.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-18618-05" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.1-beta.61" />
<PackageReference Include="System.Net.Http" Version="4.3.4" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ public class DevelopmentIdentityProviderApplicationConfiguration
{
public string Id { get; set; }

public IList<string> Roles { get; set; } = new List<string>();
public IList<string> Roles { get; } = new List<string>();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.6.1" />
<PackageReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.Azure.Services.AppAuthentication" Version="1.2.0-preview2" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.2" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.3" />
<PackageReference Include="Microsoft.Extensions.Configuration.AzureKeyVault" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Logging.ApplicationInsights" Version="2.9.1" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-18618-05" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.1-beta.61" />
</ItemGroup>

Expand Down

0 comments on commit 2b009ac

Please sign in to comment.