Skip to content

Commit

Permalink
[IDP-2042] Use shared renovate.json (#81)
Browse files Browse the repository at this point in the history
* Update renovate.json to use shared config

---------

Co-authored-by: Mathieu Gamache <[email protected]>
  • Loading branch information
PrincessMadMath and Mathieu Gamache authored Aug 28, 2024
1 parent f3e8c05 commit c030b68
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 54 deletions.
54 changes: 6 additions & 48 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,64 +1,22 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"platform": "github",
"labels": ["renovate"],
"extends": [
"config:base",
":rebaseStalePrs"
"github>gsoft-inc/renovate-config"
],
"enabledManagers": [
"github-actions",
"nuget"
],
"stabilityDays": 3,
"prHourlyLimit": 0,
"prConcurrentLimit": 0,
"branchConcurrentLimit": 0,
"dependencyDashboard": false,
"gitAuthor": "Renovate Bot <[email protected]>",
"packageRules": [
{
"matchManagers": ["nuget"],
"groupName": "NuGet dependencies"
},
{
"matchManagers": ["nuget"],
"includePaths": [
"Workleap.Extensions.MediatR.Analyzers.Tests"
],
"matchPackagePatterns": [
"^xunit"
"matchManagers": [
"nuget"
],
"groupName": "XUnit (Roslyn Analyzer Tests)",
"description": "Newer XUnit versions have bugs that prevent the tests roslyn analyzer tests from running",
"enabled": false
},
{
"matchManagers": ["nuget"],
"matchPackagePatterns": [
"^Microsoft\\.Extensions\\.",
"^Microsoft\\.CodeAnalysis\\.",
"^Microsoft\\.Bcl\\.AsyncInterfaces$",
"^Microsoft\\.SourceLink\\.GitHub",
"^System\\."
],
"groupName": "Ignored NuGet dependencies",
"description": "These packages are usually set to a user-defined minimal supported version such as 6.0.0 for .NET 6, and they are overriden by consuming applications",
"enabled": false
},
{
"matchPackageNames": ["dotnet-sdk"],
"groupName": "Dotnet SDK",
"description": "Only update patch and minor for the dotnet SDK version within the global.json",
"extends": [":disableMajorUpdates"]
},
{
"matchManagers": ["github-actions"],
"groupName": "Pipeline dependencies"
"ignorePaths": ["src/**"]
}
],
"vulnerabilityAlerts": {
"enabled": true,
"labels": ["security"]
}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
using Microsoft.CodeAnalysis.CSharp.Testing;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Testing;
using Microsoft.CodeAnalysis.Testing.Verifiers;
using Microsoft.Extensions.DependencyInjection;

namespace Workleap.Extensions.MediatR.Analyzers.Tests;

public abstract class BaseAnalyzerTest<TAnalyzer> : CSharpAnalyzerTest<TAnalyzer, XUnitVerifier>
public abstract class BaseAnalyzerTest<TAnalyzer> : CSharpAnalyzerTest<TAnalyzer, DefaultVerifier>
where TAnalyzer : DiagnosticAnalyzer, new()
{
private const string CSharp10GlobalUsings = @"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Analyzer.Testing.XUnit" Version="1.1.1" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.4.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Analyzer.Testing" Version="1.1.2" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.11.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.0" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3">
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down

0 comments on commit c030b68

Please sign in to comment.