Skip to content

Commit

Permalink
CSharpier config filename and path override ability (#3664)
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyE123 authored Jun 16, 2024
1 parent ebffab4 commit 24227ec
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l

- Linters
- Add python package Pygments to rst-lint venv
- [CSharpier](https://csharpier.com) added ability to override config filename and path

- Reporters

Expand Down
2 changes: 2 additions & 0 deletions megalinter/descriptors/csharp.megalinter-descriptor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ linters:
linter_rules_configuration_url: https://csharpier.com/docs/Configuration
linter_rules_ignore_config_url: https://csharpier.com/docs/Ignore
ignore_file_name: .csharpierignore
config_file_name: .csharpierrc
cli_config_arg_name: "--config-path"
cli_executable: dotnet-csharpier
cli_lint_mode: list_of_files
cli_lint_extra_args:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3297,6 +3297,13 @@
"title": "CSHARP_CSHARPIER: Override default cli lint mode",
"type": "string"
},
"CSHARP_CSHARPIER_CONFIG_FILE": {
"$id": "#/properties/CSHARP_CSHARPIER_CONFIG_FILE",
"default": ".csharpierrc",
"description": "CSHARP_CSHARPIER: User custom config file name if different from default",
"title": "CSHARP_CSHARPIER: Custom config file name",
"type": "string"
},
"CSHARP_CSHARPIER_COMMAND_REMOVE_ARGUMENTS": {
"$id": "#/properties/CSHARP_CSHARPIER_COMMAND_REMOVE_ARGUMENTS",
"description": "CSHARP_CSHARPIER: User custom arguments to remove before calling linter",
Expand Down Expand Up @@ -3393,6 +3400,12 @@
"title": "CSHARP_CSHARPIER: Define or override a list of bash commands to run before the linter",
"type": "array"
},
"CSHARP_CSHARPIER_RULES_PATH": {
"$id": "#/properties/CSHARP_CSHARPIER_RULES_PATH",
"description": "CSHARP_CSHARPIER: Path where to find linter configuration file",
"title": "CSHARP_CSHARPIER: Custom config file path",
"type": "string"
},
"CSHARP_CSHARPIER_UNSECURED_ENV_VARIABLES": {
"$id": "#/properties/CSHARP_CSHARPIER_UNSECURED_ENV_VARIABLES",
"default": [],
Expand Down

0 comments on commit 24227ec

Please sign in to comment.