diff --git a/CHANGELOG.md b/CHANGELOG.md index 73e09b037bb..efa0a916e86 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -652,6 +652,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l - Salesforce linters: Switch sfdx-cli to @salesforce/cli - Fixed issue with `actionlint` throwing an error on `if` statements in the generated workflow file - Added default `.devskim.json` to mitigate errors introduced when no config exists + - Fix swiftlint --path argument by adding workspace - Doc - Display list of articles from newest to oldest diff --git a/megalinter/descriptors/swift.megalinter-descriptor.yml b/megalinter/descriptors/swift.megalinter-descriptor.yml index b8df6bc029d..21e84675010 100644 --- a/megalinter/descriptors/swift.megalinter-descriptor.yml +++ b/megalinter/descriptors/swift.megalinter-descriptor.yml @@ -19,8 +19,6 @@ linters: cli_lint_extra_args: - "lint" cli_lint_extra_args_after: - - "--path" - - "/tmp/lint" - "--strict" cli_lint_fix_arg_name: "--fix" cli_lint_fix_remove_args: @@ -28,7 +26,9 @@ linters: cli_docker_image: norionomura/swiftlint cli_docker_args: - "-v" - - "{{WORKSPACE}}:/tmp/lint:rw" + - "$(pwd):$(pwd)" + - "-w" + - "$(pwd)" config_file_name: ".swiftlint.yml" cli_config_arg_name: "" cli_help_arg_name: "help"