Skip to content
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

enhancement: CSharpier config filename and path override ability #3664

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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