Skip to content

Commit

Permalink
Merge branch 'main' into bug/3026/checkov-CKV2_GHA_1
Browse files Browse the repository at this point in the history
  • Loading branch information
nvuillam authored Dec 6, 2023
2 parents 7343ffe + 99b5bea commit a0040e5
Show file tree
Hide file tree
Showing 222 changed files with 2,210 additions and 1,288 deletions.
388 changes: 208 additions & 180 deletions .automation/generated/linter-helps.json

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions .automation/generated/linter-links-previews.json
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,11 @@
"image": null,
"title": "revive - fast & configurable linter for Go"
},
"roslynator": {
"description": "Roslynator is a set of code analysis tools for C#, powered by Roslyn. - GitHub - dotnet/roslynator: Roslynator is a set of code analysis tools for C#, powered by Roslyn.",
"image": "https://repository-images.githubusercontent.com/57153744/57b7135a-1505-4930-98d1-acfd619f1457",
"title": "GitHub - dotnet/roslynator: Roslynator is a set of code analysis tools for C#, powered by Roslyn."
},
"rst-lint": {
"description": "reStructuredText linter. Contribute to twolfson/restructuredtext-lint development by creating an account on GitHub.",
"image": "https://avatars2.githubusercontent.com/u/902488?s=400&v=4",
Expand Down
61 changes: 31 additions & 30 deletions .automation/generated/linter-versions.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"actionlint": "1.6.26",
"ansible-lint": "6.22.0",
"ansible-lint": "6.22.1",
"arm-ttk": "0.0.0",
"bandit": "1.7.5",
"bash-exec": "5.2.15",
"bicep_linter": "0.23.1",
"black": "23.11.0",
"cfn-lint": "0.83.3",
"cfn-lint": "0.83.4",
"checkmake": "0.2.0",
"checkov": "3.1.4",
"checkov": "3.1.25",
"checkstyle": "10.12.5",
"chktex": "1.7.8",
"clang-format": "16.0.6",
Expand All @@ -17,17 +17,17 @@
"cljstyle": "0.15.0",
"coffeelint": "5.2.11",
"cpplint": "1.6.1",
"csharpier": "0.26.2",
"cspell": "8.0.0",
"csharpier": "0.26.4",
"cspell": "8.1.2",
"dartanalyzer": "0.0.0",
"devskim": "1.0.23",
"djlint": "1.34.0",
"dockerfilelint": "1.8.0",
"dotenv-linter": "3.3.0",
"dotnet-format": "6.0.417",
"dotnet-format": "7.0.114",
"dustilock": "1.2.0",
"editorconfig-checker": "2.7.2",
"eslint": "8.54.0",
"eslint": "8.55.0",
"eslint-plugin-jsonc": "2.10.0",
"flake8": "6.1.0",
"gherkin-lint": "0.0.0",
Expand All @@ -48,48 +48,49 @@
"kubeconform": "0.6.4",
"kubescape": "2.9.0",
"kubeval": "0.16.1",
"lightning-flow-scanner": "2.15.0",
"lightning-flow-scanner": "2.16.0",
"lintr": "0.0.0",
"luacheck": "1.1.1",
"lychee": "0.13.0",
"markdown-link-check": "3.11.2",
"markdown-table-formatter": "1.4.0",
"markdown-table-formatter": "1.5.0",
"markdownlint": "0.37.0",
"misspell": "0.3.4",
"mypy": "1.7.0",
"npm-groovy-lint": "12.1.1",
"mypy": "1.7.1",
"npm-groovy-lint": "13.0.1",
"npm-package-json-lint": "7.1.0",
"perlcritic": "1.152",
"php": "7.4.26",
"phpcs": "3.7.2",
"phplint": "9.0.4",
"phpstan": "1.10.43",
"phplint": "9.0.6",
"phpstan": "1.10.47",
"pmd": "6.55.0",
"powershell": "7.4.0",
"powershell_formatter": "7.4.0",
"prettier": "3.1.0",
"proselint": "0.13.0",
"protolint": "0.46.3",
"psalm": "Psalm.5.15.0@",
"puppet-lint": "4.2.1",
"psalm": "Psalm.5.17.0@",
"puppet-lint": "4.2.3",
"pylint": "3.0.2",
"pyright": "1.1.336",
"pyright": "1.1.339",
"raku": "2020.10",
"remark-lint": "14.0.2",
"revive": "1.3.4",
"roslynator": "0.8.1.0",
"rst-lint": "1.4.0",
"rstcheck": "6.2.0",
"rstfmt": "0.0.14",
"rubocop": "1.57.2",
"ruff": "0.1.6",
"rubocop": "1.58.0",
"ruff": "0.1.7",
"scalafix": "0.11.1",
"scss-lint": "0.60.0",
"secretlint": "7.1.0",
"semgrep": "1.50.0",
"secretlint": "8.0.0",
"semgrep": "1.52.0",
"sfdx-scanner": "2.8.0",
"sfdx-scanner-apex": "3.18.0",
"sfdx-scanner-aura": "3.18.0",
"sfdx-scanner-lwc": "3.18.0",
"sfdx-scanner-apex": "3.19.0",
"sfdx-scanner-aura": "3.19.0",
"sfdx-scanner-lwc": "3.19.0",
"shellcheck": "0.9.0",
"shfmt": "3.7.0",
"snakefmt": "0.8.5",
Expand All @@ -100,19 +101,19 @@
"standard": "17.1.0",
"stylelint": "15.11.0",
"swiftlint": "0.54.0",
"syft": "0.97.1",
"syft": "0.98.0",
"tekton-lint": "0.6.0",
"terraform-fmt": "1.6.4",
"terragrunt": "0.53.5",
"terraform-fmt": "1.6.5",
"terragrunt": "0.53.8",
"terrascan": "1.18.3",
"tflint": "0.49.0",
"trivy": "0.47.0",
"trivy-sbom": "0.47.0",
"trufflehog": "3.63.1",
"trivy": "0.48.0",
"trivy-sbom": "0.48.0",
"trufflehog": "3.63.2",
"ts-standard": "12.0.2",
"tsqllint": "1.15.3.0",
"v8r": "2.1.0",
"vale": "2.29.7",
"vale": "2.30.0",
"xmllint": "21106",
"yamllint": "1.33.0"
}
8 changes: 8 additions & 0 deletions .automation/test/csharp_roslynator/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[*.cs]
dotnet_analyzer_diagnostic.category-roslynator.severity = error

roslynator_analyzers.enabled_by_default = true

roslynator_refactorings.enabled = true

roslynator_empty_string_style = field
11 changes: 11 additions & 0 deletions .automation/test/csharp_roslynator/bad/csharp_bad_01.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System;

namespace HelloWorld
{
class Program {
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
13 changes: 13 additions & 0 deletions .automation/test/csharp_roslynator/bad/csharp_bad_02.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System;

namespace HelloWorld
{
class Program2
{
static void Main2 (string[] args)
{
Console.WriteLine ("Hello World!");
var value = 3 * 4 + 5;
}
}
}
10 changes: 10 additions & 0 deletions .automation/test/csharp_roslynator/bad/csharp_bad_project.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
10 changes: 10 additions & 0 deletions .automation/test/csharp_roslynator/fix/csharp_fix_01.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace HelloWorld
{
class Program
{
static void Main(string[] _)
{
Console.WriteLine("Hello World!");
}
}
}
10 changes: 10 additions & 0 deletions .automation/test/csharp_roslynator/fix/csharp_fix_02.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace HelloWorld
{
class Program2
{
public static void Test()
{
Console.WriteLine("Hello World!");
}
}
}
21 changes: 21 additions & 0 deletions .automation/test/csharp_roslynator/fix/csharp_fix_project.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Roslynator.Analyzers" Version="4.6.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Roslynator.Formatting.Analyzers" Version="4.6.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

</Project>
10 changes: 10 additions & 0 deletions .automation/test/csharp_roslynator/good/csharp_good_01.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
10 changes: 10 additions & 0 deletions .automation/test/csharp_roslynator/good/csharp_good_02.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace HelloWorld
{
class Program2
{
static void Main2(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
10 changes: 10 additions & 0 deletions .automation/test/csharp_roslynator/good/csharp_good_project.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
3 changes: 3 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
"iisisrael",
"lKXXXX0",
"leavevmode",
"loadscope",
"lodddddddxk0XXXX0c",
"looool",
"lycheecache",
Expand All @@ -99,6 +100,7 @@
"mkdirp",
"msgon",
"nextick",
"numprocesses",
"noni",
"noout",
"nopt",
Expand Down Expand Up @@ -1223,6 +1225,7 @@
"rodjek",
"rogalmic",
"rogress",
"roslynator",
"rspec",
"rsplit",
"rstcheck",
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy-BETA-linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ jobs:
"cpp_clang_format",
"csharp_dotnet_format",
"csharp_csharpier",
"csharp_roslynator",
"css_stylelint",
"css_scss_lint",
"dart_dartanalyzer",
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/deploy-DEV-linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
"cpp_clang_format",
"csharp_dotnet_format",
"csharp_csharpier",
"csharp_roslynator",
"css_stylelint",
"css_scss_lint",
"dart_dartanalyzer",
Expand Down Expand Up @@ -189,7 +190,7 @@ jobs:
uses: actions/checkout@v4

- name: Docker Metadata action
uses: docker/metadata-action@v5.0.0
uses: docker/metadata-action@v5.3.0
id: meta
with:
images: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy-RELEASE-linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ jobs:
"cpp_clang_format",
"csharp_dotnet_format",
"csharp_csharpier",
"csharp_roslynator",
"css_stylelint",
"css_scss_lint",
"dart_dartanalyzer",
Expand Down
1 change: 1 addition & 0 deletions .trivyignore
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ CVE-2023-0286
CVE-2023-0842
CVE-2023-2253
CVE-2023-2650
CVE-2023-6378
CVE-2023-26115
CVE-2023-28840
CVE-2023-2976
Expand Down
Loading

0 comments on commit a0040e5

Please sign in to comment.