Files
2025-04-03 16:52:02 +00:00

16 lines
493 B
PowerShell

# 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