-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add-super-linter
- Loading branch information
Showing
45 changed files
with
6,949 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Dependabot Pull Request Approve and Merge | ||
on: pull_request_target | ||
permissions: | ||
pull-requests: write | ||
contents: write | ||
jobs: | ||
dependabot: | ||
runs-on: ubuntu-latest | ||
# Checking the actor will prevent your Action run failing on non-Dependabot | ||
# PRs but also ensures that it only does work for Dependabot PRs. | ||
if: ${{ github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' }} | ||
steps: | ||
# This first step will fail if there's no metadata and so the approval | ||
# will not occur. | ||
- name: Dependabot metadata | ||
id: dependabot-metadata | ||
uses: dependabot/fetch-metadata@v2.2.0 | ||
with: | ||
github-token: "${{ secrets.GH_ACTIONS_PR_WRITE }}" | ||
# Here the PR gets approved. | ||
- name: Approve a PR | ||
run: gh pr review --approve "$PR_URL" | ||
env: | ||
PR_URL: ${{ github.event.pull_request.html_url }} | ||
GITHUB_TOKEN: ${{ secrets.GH_ACTIONS_PR_WRITE }} | ||
# Finally, this sets the PR to allow auto-merging for patch and minor | ||
# updates if all checks pass | ||
- name: Enable auto-merge for Dependabot PRs | ||
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }} | ||
run: gh pr merge --auto --squash "$PR_URL" | ||
env: | ||
PR_URL: ${{ github.event.pull_request.html_url }} | ||
GITHUB_TOKEN: ${{ secrets.GH_ACTIONS_PR_WRITE }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# This workflow will approve pull requests from dependabot | ||
|
||
name: Auto approve PRs by dependabot | ||
on: [pull_request_target] | ||
|
||
jobs: | ||
autoapprove: | ||
name: Auto-Approve a PR by dependabot | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Auto approve | ||
uses: cognitedata/auto-approve-dependabot-action@v3.0.1 | ||
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' | ||
with: | ||
github-token: ${{ secrets.GH_ACTIONS_PR_WRITE }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Get-ChildItem *.csproj -recurse -File | ForEach-Object{ | ||
dotnet clean $_.FullName && dotnet build $_.FullName /p:PedanticMode=true /p:SquiggleCop_AutoBaseline=true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
<Project> | ||
<PropertyGroup Label="Computed properties"> | ||
<PedanticMode Condition=" '$(PedanticMode)' == '' ">$([MSBuild]::ValueOrDefault('$(ContinuousIntegrationBuild)', 'false'))</PedanticMode> | ||
<TreatWarningsAsErrors>$(PedanticMode)</TreatWarningsAsErrors> | ||
<MSBuildTreatWarningsAsErrors>$(PedanticMode)</MSBuildTreatWarningsAsErrors> | ||
<SquiggleCop_Enabled>$(PedanticMode)</SquiggleCop_Enabled> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
<Project> | ||
<ItemGroup> | ||
<PackageVersion Include="Meziantou.Analyzer" Version="2.0.160" /> | ||
<PackageVersion Include="Meziantou.Analyzer" Version="2.0.163" /> | ||
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4" /> | ||
<PackageVersion Include="Roslynator.Analyzers" Version="4.12.4" /> | ||
<PackageVersion Include="StyleCop.Analyzers" Version="1.2.0-beta.556" /> | ||
<PackageVersion Include="SonarAnalyzer.CSharp" Version="9.28.0.94264" /> | ||
<PackageVersion Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.10.48" /> | ||
<PackageVersion Include="SonarAnalyzer.CSharp" Version="9.32.0.97167" /> | ||
<PackageVersion Include="SquiggleCop.Tasks" Version="1.0.26" /> | ||
<PackageVersion Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.11.20" /> | ||
<PackageVersion Include="ExhaustiveMatching.Analyzer" Version="0.5.0" /> | ||
<PackageVersion Include="EffectiveCSharp.Analyzers" Version="0.1.0" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<Project> | ||
<ItemGroup> | ||
<PackageVersion Include="ReportGenerator" Version="5.3.7" /> | ||
<PackageVersion Include="ReportGenerator" Version="5.3.8" /> | ||
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.CodeFix.Testing" Version="1.1.2-beta1.24314.1" /> | ||
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.10.0" /> | ||
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.0" /> | ||
<PackageVersion Include="Verify.Nupkg" Version="1.1.6" /> | ||
<PackageVersion Include="Verify.Xunit" Version="25.0.4" /> | ||
<PackageVersion Include="Verify.Xunit" Version="26.2.0" /> | ||
<PackageVersion Include="xunit" Version="2.9.0" /> | ||
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2" /> | ||
<PackageVersion Include="Meziantou.Xunit.ParallelTestFramework" Version="2.2.0" /> | ||
<PackageVersion Include="Meziantou.Xunit.ParallelTestFramework" Version="2.3.0" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.