Onyxl's picture
Upload 2661 files
8c763fb verified
Raw
History Blame Contribute Delete
493 Bytes
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
param(
[string]$RepoRoot = (Join-Path -Path $PSScriptRoot -ChildPath '../..'),
[string]$Platform
)
$resolvedPath = (Resolve-Path $RepoRoot).ProviderPath
$platformParam = @()
if ($Platform) {
$platformParam = @("--platform", $Platform)
}
docker run $platformParam -e RUN_LOCAL=true --env-file "$PSScriptRoot/config/super-linter.env" -v "${resolvedPath}:/tmp/lint" ghcr.io/super-linter/super-linter:latest