-
Notifications
You must be signed in to change notification settings - Fork 0
chore(deps): minor update oxsecurity/megalinter action to v9.1.0 #160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or 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
✅
|
Descriptor | Linter | Files | Fixed | Errors | Warnings | Elapsed time |
---|---|---|---|---|---|---|
✅ API | spectral | 1 | 0 | 0 | 1.57s | |
csharpier | 20 | 1 | 0 | 3.47s | ||
dotnet-format | yes | 1 | no | 0.81s | ||
roslynator | 2 | 1 | 0 | 25.31s | ||
✅ DOCKERFILE | hadolint | 1 | 0 | 0 | 0.12s | |
✅ JSON | jsonlint | 4 | 0 | 0 | 0.17s | |
prettier | 4 | 1 | 0 | 0.55s | ||
markdownlint | 1 | 2 | 0 | 0.66s | ||
✅ MARKDOWN | markdown-table-formatter | 1 | 0 | 0 | 0.36s | |
✅ REPOSITORY | gitleaks | yes | no | no | 0.13s | |
✅ REPOSITORY | grype | yes | no | no | 30.85s | |
✅ REPOSITORY | secretlint | yes | no | no | 1.25s | |
✅ REPOSITORY | syft | yes | no | no | 2.55s | |
✅ REPOSITORY | trivy-sbom | yes | no | no | 0.44s | |
✅ REPOSITORY | trufflehog | yes | no | no | 4.28s | |
✅ XML | xmllint | 1 | 0 | 0 | 0.18s | |
✅ YAML | prettier | 1 | 0 | 0 | 0.48s | |
✅ YAML | v8r | 1 | 0 | 0 | 3.0s | |
✅ YAML | yamllint | 1 | 0 | 0 | 0.69s |
Detailed Issues
⚠️ CSHARP / csharpier - 1 error
Error ./src/Cheetah.WebApi.Test/Cheetah.WebApi.Test.csproj - Was not formatted.
----------------------------- Expected: Around Line 2 -----------------------------
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
----------------------------- Actual: Around Line 2 -----------------------------
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
Error ./src/Cheetah.WebApi/Cheetah.WebApi.csproj - Was not formatted.
The file did not end with a single newline.
Error ./src/Cheetah.WebApi/Infrastructure/Installers/KafkaInstaller.cs - Was not formatted.
----------------------------- Expected: Around Line 47 -----------------------------
x.SetValueDeserializer(_ => Deserializers.Utf8);
x.ConfigureClient(cfg =>
{
----------------------------- Actual: Around Line 47 -----------------------------
x.SetValueDeserializer(_ => Deserializers.Utf8);
x.ConfigureClient(cfg =>·
{
Error ./src/Cheetah.WebApi/Infrastructure/Installers/ServiceInstaller.cs - Was not formatted.
----------------------------- Expected: Around Line 38 -----------------------------
{
if (hostEnvironment.IsDevelopment())
{
----------------------------- Actual: Around Line 38 -----------------------------
{
if (hostEnvironment.IsDevelopment()) {
cfg.WithConnectionSettings(settings => {
Error ./src/Cheetah.WebApi/Presentation/Controllers/KafkaControllerV2.cs - Was not formatted.
----------------------------- Expected: Around Line 52 -----------------------------
var consumerOptions = new ConsumerOptions<Ignore, string>();
consumerOptions.ConfigureClient(cfg =>
{
----------------------------- Actual: Around Line 52 -----------------------------
var consumerOptions = new ConsumerOptions<Ignore, string>();
consumerOptions.ConfigureClient(cfg =>·
{
Error ./src/Cheetah.WebApi/Program.cs - Was not formatted.
----------------------------- Expected: Around Line 116 -----------------------------
Predicate = _ => true,
ResponseWriter = UIResponseWriter.WriteHealthCheckUIResponse,
}
----------------------------- Actual: Around Line 116 -----------------------------
Predicate = _ => true,
ResponseWriter = UIResponseWriter.WriteHealthCheckUIResponse
}
Checked 20 files in 3231ms.
⚠️ CSHARP / dotnet-format - 1 error
Welcome to .NET 9.0!
---------------------
SDK Version: 9.0.110
----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate, run 'dotnet dev-certs https --trust'
Learn about HTTPS: https://aka.ms/dotnet-https
----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
Unhandled exception: System.IO.FileNotFoundException: Could not find a MSBuild project file or solution file in ''. Specify which to use with the <workspace> argument.
at Microsoft.CodeAnalysis.Tools.Workspaces.MSBuildWorkspaceFinder.FindWorkspace(String searchDirectory, String workspacePath)
at Microsoft.CodeAnalysis.Tools.Workspaces.MSBuildWorkspaceFinder.FindWorkspace(String searchDirectory, String workspacePath)
at Microsoft.CodeAnalysis.Tools.FormatCommandCommon.ParseWorkspaceOptions(ParseResult parseResult, FormatOptions formatOptions)
at Microsoft.CodeAnalysis.Tools.Commands.RootFormatCommand.FormatCommandDefaultHandler.InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken)
at System.CommandLine.Invocation.InvocationPipeline.InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken)
⚠️ MARKDOWN / markdownlint - 2 errors
README.md:24:23 MD034/no-bare-urls Bare URL used [Context: "https://localhost:1852/swagger..."]
README.md:45:27 MD034/no-bare-urls Bare URL used [Context: "https://nuget.pkg.github.com/t..."]
⚠️ JSON / prettier - 1 error
Checking formatting...
[warn] src/.config/dotnet-tools.json
[warn] src/Cheetah.WebApi/Properties/launchSettings.json
[warn] src/Cheetah.WebApi/appsettings.json
[warn] src/Cheetah.WebApi/swagger.json
[warn] Code style issues found in 4 files. Run Prettier with --write to fix.
⚠️ CSHARP / roslynator - 1 error
Results of roslynator linter (version 0.10.2.0)
See documentation on https://megalinter.io/9.1.0/descriptors/csharp_roslynator/
-----------------------------------------------
✅ [SUCCESS] src/Cheetah.WebApi.Test/Cheetah.WebApi.Test.csproj
❌ [ERROR] src/Cheetah.WebApi/Cheetah.WebApi.csproj
Loading project 'src/Cheetah.WebApi/Cheetah.WebApi.csproj'...
Analyze 'Cheetah.WebApi'
Presentation/Controllers/KafkaControllerV2.cs(57,48): error CS0103: The name 'Deserializers' does not exist in the current context
Presentation/Controllers/KafkaControllerV2.cs(58,50): error CS0103: The name 'Deserializers' does not exist in the current context
Infrastructure/Installers/KafkaInstaller.cs(1,15): error CS0234: The type or namespace name 'Kafka' does not exist in the namespace 'Cheetah' (are you missing an assembly reference?)
Infrastructure/Installers/KafkaInstaller.cs(2,15): error CS0234: The type or namespace name 'Kafka' does not exist in the namespace 'Cheetah' (are you missing an assembly reference?)
Infrastructure/Installers/KafkaInstaller.cs(3,15): error CS0234: The type or namespace name 'Kafka' does not exist in the namespace 'Cheetah' (are you missing an assembly reference?)
Infrastructure/Installers/ServiceInstaller.cs(2,15): error CS0234: The type or namespace name 'OpenSearch' does not exist in the namespace 'Cheetah' (are you missing an assembly reference?)
Infrastructure/Installers/ServiceInstaller.cs(3,15): error CS0234: The type or namespace name 'OpenSearch' does not exist in the namespace 'Cheetah' (are you missing an assembly reference?)
Presentation/Controllers/KafkaControllerV2.cs(5,15): error CS0234: The type or namespace name 'Kafka' does not exist in the namespace 'Cheetah' (are you missing an assembly reference?)
HostedServices/TopicSubscriberService.cs(5,7): error CS0246: The type or namespace name 'Confluent' could not be found (are you missing a using directive or an assembly reference?)
HostedServices/TopicSubscriberService.cs(17,17): error CS0246: The type or namespace name 'IConsumer<,>' could not be found (are you missing a using directive or an assembly reference?)
HostedServices/TopicSubscriberService.cs(17,27): error CS0246: The type or namespace name 'Ignore' could not be found (are you missing a using directive or an assembly reference?)
HostedServices/TopicSubscriberService.cs(22,13): error CS0246: The type or namespace name 'IConsumer<,>' could not be found (are you missing a using directive or an assembly reference?)
HostedServices/TopicSubscriberService.cs(22,23): error CS0246: The type or namespace name 'Ignore' could not be found (are you missing a using directive or an assembly reference?)
Infrastructure/Installers/KafkaInstaller.cs(5,7): error CS0246: The type or namespace name 'Confluent' could not be found (are you missing a using directive or an assembly reference?)
Infrastructure/Installers/KafkaInstaller.cs(43,31): error CS0246: The type or namespace name 'Ignore' could not be found (are you missing a using directive or an assembly reference?)
Infrastructure/Installers/KafkaInstaller.cs(52,31): error CS0246: The type or namespace name 'Null' could not be found (are you missing a using directive or an assembly reference?)
Presentation/Controllers/KafkaController.cs(5,7): error CS0246: The type or namespace name 'Confluent' could not be found (are you missing a using directive or an assembly reference?)
Presentation/Controllers/KafkaController.cs(22,26): error CS0246: The type or namespace name 'IConsumer<,>' could not be found (are you missing a using directive or an assembly reference?)
Presentation/Controllers/KafkaController.cs(22,36): error CS0246: The type or namespace name 'Ignore' could not be found (are you missing a using directive or an assembly reference?)
Presentation/Controllers/KafkaController.cs(23,26): error CS0246: The type or namespace name 'IProducer<,>' could not be found (are you missing a using directive or an assembly reference?)
Presentation/Controllers/KafkaController.cs(23,36): error CS0246: The type or namespace name 'Null' could not be found (are you missing a using directive or an assembly reference?)
Presentation/Controllers/KafkaController.cs(28,13): error CS0246: The type or namespace name 'IConsumer<,>' could not be found (are you missing a using directive or an assembly reference?)
Presentation/Controllers/KafkaController.cs(28,23): error CS0246: The type or namespace name 'Ignore' could not be found (are you missing a using directive or an assembly reference?)
Presentation/Controllers/KafkaController.cs(29,13): error CS0246: The type or namespace name 'IProducer<,>' could not be found (are you missing a using directive or an assembly reference?)
Presentation/Controllers/KafkaController.cs(29,23): error CS0246: The type or namespace name 'Null' could not be found (are you missing a using directive or an assembly reference?)
Presentation/Controllers/KafkaController.cs(69,21): error CS0246: The type or namespace name 'Message<,>' could not be found (are you missing a using directive or an assembly reference?)
Presentation/Controllers/KafkaController.cs(69,29): error CS0246: The type or namespace name 'Null' could not be found (are you missing a using directive or an assembly reference?)
Presentation/Controllers/KafkaControllerV2.cs(7,7): error CS0246: The type or namespace name 'Confluent' could not be found (are you missing a using directive or an assembly reference?)
Presentation/Controllers/KafkaControllerV2.cs(27,26): error CS0246: The type or namespace name 'KafkaClientFactory' could not be found (are you missing a using directive or an assembly reference?)
Presentation/Controllers/KafkaControllerV2.cs(33,13): error CS0246: The type or namespace name 'KafkaClientFactory' could not be found (are you missing a using directive or an assembly reference?)
Presentation/Controllers/KafkaControllerV2.cs(51,39): error CS0246: The type or namespace name 'ConsumerOptions<,>' could not be found (are you missing a using directive or an assembly reference?)
Presentation/Controllers/KafkaControllerV2.cs(51,55): error CS0246: The type or namespace name 'Ignore' could not be found (are you missing a using directive or an assembly reference?)
Presentation/Controllers/KafkaControllerV2.cs(108,40): error CS0246: The type or namespace name 'Null' could not be found (are you missing a using directive or an assembly reference?)
Presentation/Controllers/KafkaControllerV2.cs(112,21): error CS0246: The type or namespace name 'Message<,>' could not be found (are you missing a using directive or an assembly reference?)
Presentation/Controllers/KafkaControllerV2.cs(112,29): error CS0246: The type or namespace name 'Null' could not be found (are you missing a using directive or an assembly reference?)
Infrastructure/Installers/FluentValidationInstaller.cs(12,13): warning CS0618: 'FluentValidationMvcExtensions.AddFluentValidation(IServiceCollection, Action<FluentValidationMvcConfiguration>)' is obsolete: 'Calling AddFluentValidation() is deprecated. Call services.AddFluentValidationAutoValidation().AddFluentValidationClientsideAdapters() instead, which has the same effect. For details see https://github.com/FluentValidation/FluentValidation/issues/1965'
Infrastructure/Installers/FluentValidationInstaller.cs(15,17): warning CS0618: 'FluentValidationMvcConfiguration.RegisterValidatorsFromAssemblyContaining<T>(Func<AssemblyScanner.AssemblyScanResult, bool>, ServiceLifetime, bool)' is obsolete: 'RegisterValidatorsFromAssemblyContaining is deprecated. Call services.AddValidatorsFromAssemblyContaining<T> instead, which has the same effect. See https://github.com/FluentValidation/FluentValidation/issues/1963'
Infrastructure/Installers/KafkaInstaller.cs(23,18): error CS1061: 'IService
(Truncated to 8000 characters out of 15362)
See detailed reports in MegaLinter artifacts
Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining FLAVOR_SUGGESTIONS: false
)
- Documentation: Custom Flavors
- Command:
npx [email protected] --custom-flavor-setup --custom-flavor-linters API_SPECTRAL,CSHARP_DOTNET_FORMAT,CSHARP_CSHARPIER,CSHARP_ROSLYNATOR,DOCKERFILE_HADOLINT,JSON_JSONLINT,JSON_PRETTIER,MARKDOWN_MARKDOWNLINT,MARKDOWN_MARKDOWN_TABLE_FORMATTER,REPOSITORY_GITLEAKS,REPOSITORY_GRYPE,REPOSITORY_SECRETLINT,REPOSITORY_SYFT,REPOSITORY_TRIVY_SBOM,REPOSITORY_TRUFFLEHOG,XML_XMLLINT,YAML_PRETTIER,YAML_YAMLLINT,YAML_V8R
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v9.0.1
->v9.1.0
Release Notes
oxsecurity/megalinter (oxsecurity/megalinter)
v9.1.0
Compare Source
New linters
Linters enhancements
Doc
Flavors
CI
Linter versions upgrades (22)
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - "after 12pm and before 4pm every weekday" in timezone Europe/Copenhagen.
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Renovate Bot.