File tree Expand file tree Collapse file tree 5 files changed +12
-12
lines changed Expand file tree Collapse file tree 5 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 1
- $Functions = @ ( Get-ChildItem - Path $PSScriptRoot \ * .ps1 - ErrorAction SilentlyContinue )
1
+ $Functions = @ ( Get-ChildItem - Path $PSScriptRoot / * .ps1 - ErrorAction SilentlyContinue )
2
2
3
3
foreach ($i in $Functions ){
4
4
. $i.FullName
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ function Get-Packages {
4
4
[string ]
5
5
$Language )
6
6
7
- return Get-ChildItem (Join-Path (Get-RepositoryRoot ) " \ rule_packages\ $Language \ *.json" )
7
+ return Get-ChildItem (Join-Path (Get-RepositoryRoot ) " / rule_packages/ $Language / *.json" )
8
8
}
Original file line number Diff line number Diff line change 3
3
To use this on the command line, do:
4
4
5
5
```
6
- Import-Module -Name .\ scripts\ PSCodingStandards\ CodingStandards
6
+ Import-Module -Name ./ scripts/ PSCodingStandards/ CodingStandards
7
7
```
8
8
9
9
To use this in your scripts you can do:
10
10
11
11
```
12
- Import-Module -Name "$PSScriptRoot\..\ PSCodingStandards\ CodingStandards"
12
+ Import-Module -Name "$PSScriptRoot/../ PSCodingStandards/ CodingStandards"
13
13
```
14
14
15
15
# Summary of Available Commands
Original file line number Diff line number Diff line change @@ -21,11 +21,11 @@ param(
21
21
$Configuration
22
22
)
23
23
24
- Import-Module - Name " $PSScriptRoot \..\ PSCodingStandards\ CodingStandards"
24
+ Import-Module - Name " $PSScriptRoot /../ PSCodingStandards/ CodingStandards"
25
25
26
- . " $PSScriptRoot \ NewDatabaseForRule.ps1"
27
- . " $PSScriptRoot \ Config.ps1"
28
- . " $PSScriptRoot \ Get-CompilerExecutable.ps1"
26
+ . " $PSScriptRoot / NewDatabaseForRule.ps1"
27
+ . " $PSScriptRoot / Config.ps1"
28
+ . " $PSScriptRoot / Get-CompilerExecutable.ps1"
29
29
30
30
#
31
31
# Verify All the Required CLI Tools are Installed
Original file line number Diff line number Diff line change @@ -278,11 +278,11 @@ Write-Host -ForegroundColor ([ConsoleColor]2) "OK"
278
278
#
279
279
$jobRows = $queriesToCheck | ForEach-Object - ThrottleLimit $NumThreads - Parallel {
280
280
281
- Import-Module - Name " $using :PSScriptRoot \..\ PSCodingStandards\ CodingStandards"
281
+ Import-Module - Name " $using :PSScriptRoot /../ PSCodingStandards/ CodingStandards"
282
282
283
- # . "$using:PSScriptRoot\ GetTestDirectory.ps1"
284
- . " $using :PSScriptRoot \ NewDatabaseForRule.ps1"
285
- . " $using :PSScriptRoot \ ExecuteQueryAndDecodeAsJson.ps1"
283
+ # . "$using:PSScriptRoot/ GetTestDirectory.ps1"
284
+ . " $using :PSScriptRoot / NewDatabaseForRule.ps1"
285
+ . " $using :PSScriptRoot / ExecuteQueryAndDecodeAsJson.ps1"
286
286
287
287
$q = $_
288
288
You can’t perform that action at this time.
0 commit comments