mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-05-12 12:28:57 -05:00
45 lines
1.5 KiB
PowerShell
45 lines
1.5 KiB
PowerShell
#!/usr/bin/env pwsh
|
|
|
|
Param(
|
|
[Parameter(Position = 0,
|
|
HelpMessage = 'Specifies the files to be processed, is joined with by the | character ' +
|
|
'and used in the parenthesized regex eg. (file1|file2).')]
|
|
[ValidateNotNullOrEmpty()]
|
|
[string[]] $Files,
|
|
|
|
[Parameter(
|
|
HelpMessage = 'Specifies the files paths to be processed, is joined with by the | ' +
|
|
'character and used in the parenthesized regex eg. (folder1|folder2).')]
|
|
[ValidateNotNullOrEmpty()]
|
|
[string[]] $FilesPaths,
|
|
|
|
[Parameter(HelpMessage = 'Skip Clang Tidy analyzes.')]
|
|
[switch] $SkipClangTidy,
|
|
|
|
[Parameter(HelpMessage = 'Skip Clazy standalone analyzes.')]
|
|
[switch] $SkipClazy,
|
|
|
|
[Parameter(HelpMessage = 'Clean CMake build (remove everything inside the -BuildPath).')]
|
|
[switch] $CleanBuild,
|
|
|
|
[Parameter(HelpMessage = 'Specifies the CMake build type.')]
|
|
[ValidateSet('Debug', 'Release', 'RelWithDebInfo', 'MinSizeRel')]
|
|
[ValidateNotNullOrEmpty()]
|
|
[string] $BuildType = 'Debug',
|
|
|
|
[Parameter(
|
|
HelpMessage = 'Specifies the checks filter, when not specified, use clang-tidy default ' +
|
|
'(eg. -*,readability-magic-numbers to run only a specific check).')]
|
|
[ValidateNotNullOrEmpty()]
|
|
[string[]] $ClangTidyChecks
|
|
)
|
|
|
|
Set-StrictMode -Version 3.0
|
|
|
|
Clear-Host
|
|
|
|
E:\dotfiles\bin\Lint-TinyORM.ps1 `
|
|
-BuildPath '<your_path_here>\TinyORM\TinyORM-builds-cmake\build-lint-qt6' `
|
|
-QtVersion 6 @PSBoundParameters `
|
|
-Verbose:$VerbosePreference
|