Skip to content

Commit

Permalink
fixed file encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
LIO2MU committed Jun 13, 2024
1 parent faba42c commit 1c524e8
Show file tree
Hide file tree
Showing 17 changed files with 25 additions and 24 deletions.
2 changes: 1 addition & 1 deletion JiraPS/JiraPS.psm1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#region Dependencies
#region Dependencies
# Load the ConfluencePS namespace from C#
# if (!("" -as [Type])) {
# Add-Type -Path (Join-Path $PSScriptRoot JiraPS.Types.cs) -ReferencedAssemblies Microsoft.CSharp, Microsoft.PowerShell.Commands.Utility, System.Management.Automation
Expand Down
4 changes: 2 additions & 2 deletions JiraPS/Private/Resolve-JiraError.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Resolve-JiraError {
function Resolve-JiraError {
[CmdletBinding()]
param(
[Parameter( ValueFromPipeline )]
Expand Down Expand Up @@ -44,7 +44,7 @@
}
}
elseif ($i.errors) {
$keys = (Get-Member -InputObject $i.errors | Where-Object -FilterScript {$_.MemberType -eq 'NoteProperty'}).Name
$keys = (Get-Member -InputObject $i.errors | Where-Object -FilterScript { $_.MemberType -eq 'NoteProperty' }).Name
foreach ($k in $keys) {
if ($WriteError) {
$exception = ([System.ArgumentException]"Server responded with Error")
Expand Down
2 changes: 1 addition & 1 deletion JiraPS/Public/Add-JiraFilterPermission.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Add-JiraFilterPermission {
function Add-JiraFilterPermission {
# .ExternalHelp ..\JiraPS-help.xml
[CmdletBinding( SupportsShouldProcess, DefaultParameterSetName = 'ByInputObject' )]
# [OutputType( [JiraPS.FilterPermission] )]
Expand Down
2 changes: 1 addition & 1 deletion JiraPS/Public/Add-JiraIssueWatcher.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Add-JiraIssueWatcher {
function Add-JiraIssueWatcher {
# .ExternalHelp ..\JiraPS-help.xml
[CmdletBinding( SupportsShouldProcess )]
param(
Expand Down
4 changes: 2 additions & 2 deletions JiraPS/Public/Get-JiraField.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Get-JiraField {
function Get-JiraField {
# .ExternalHelp ..\JiraPS-help.xml
[CmdletBinding( DefaultParameterSetName = '_All' )]
param(
Expand Down Expand Up @@ -43,7 +43,7 @@

$allFields = Get-JiraField -Credential $Credential

Write-Output ($allFields | Where-Object -FilterScript {($_.Id -eq $_field) -or ($_.Name -like $_field)})
Write-Output ($allFields | Where-Object -FilterScript { ($_.Id -eq $_field) -or ($_.Name -like $_field) })
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion JiraPS/Public/Get-JiraFilter.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Get-JiraFilter {
function Get-JiraFilter {
# .ExternalHelp ..\JiraPS-help.xml
[CmdletBinding(DefaultParameterSetName = 'ByFilterID')]
param(
Expand Down
6 changes: 3 additions & 3 deletions JiraPS/Public/Get-JiraIssueType.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Get-JiraIssueType {
function Get-JiraIssueType {
# .ExternalHelp ..\JiraPS-help.xml
[CmdletBinding( DefaultParameterSetName = '_All' )]
param(
Expand Down Expand Up @@ -43,8 +43,8 @@

$allIssueTypes = Get-JiraIssueType -Credential $Credential

Write-Output ($allIssueTypes | Where-Object -FilterScript {$_.Id -eq $_issueType})
Write-Output ($allIssueTypes | Where-Object -FilterScript {$_.Name -like $_issueType})
Write-Output ($allIssueTypes | Where-Object -FilterScript { $_.Id -eq $_issueType })
Write-Output ($allIssueTypes | Where-Object -FilterScript { $_.Name -like $_issueType })
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion JiraPS/Public/Get-JiraIssueWatcher.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Get-JiraIssueWatcher {
function Get-JiraIssueWatcher {
# .ExternalHelp ..\JiraPS-help.xml
[CmdletBinding()]
param(
Expand Down
4 changes: 2 additions & 2 deletions JiraPS/Public/Get-JiraVersion.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Get-JiraVersion {
function Get-JiraVersion {
# .ExternalHelp ..\JiraPS-help.xml
[CmdletBinding( SupportsPaging, DefaultParameterSetName = 'byId' )]
param(
Expand Down Expand Up @@ -109,7 +109,7 @@
$result | Where-Object {
$__ = $_.Name
Write-DebugMessage ($__ | Out-String)
$Name | Foreach-Object {
$Name | ForEach-Object {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Matching $_ against $($__)"
$__ -like $_
}
Expand Down
5 changes: 3 additions & 2 deletions JiraPS/Public/Move-JiraVersion.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Move-JiraVersion {
function Move-JiraVersion {
# .ExternalHelp ..\JiraPS-help.xml
[CmdletBinding( DefaultParameterSetName = 'ByAfter' )]
param(
Expand Down Expand Up @@ -95,7 +95,8 @@

if ($Version.Id) {
$versionId = $Version.Id
} else {
}
else {
$versionId = $Version
}

Expand Down
2 changes: 1 addition & 1 deletion JiraPS/Public/New-JiraGroup.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function New-JiraGroup {
function New-JiraGroup {
# .ExternalHelp ..\JiraPS-help.xml
[CmdletBinding( SupportsShouldProcess )]
param(
Expand Down
2 changes: 1 addition & 1 deletion JiraPS/Public/Remove-JiraFilterPermission.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Remove-JiraFilterPermission {
function Remove-JiraFilterPermission {
# .ExternalHelp ..\JiraPS-help.xml
[CmdletBinding( SupportsShouldProcess, DefaultParameterSetName = 'ByFilterId' )]
param(
Expand Down
2 changes: 1 addition & 1 deletion JiraPS/Public/Remove-JiraGroup.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Remove-JiraGroup {
function Remove-JiraGroup {
# .ExternalHelp ..\JiraPS-help.xml
[CmdletBinding( SupportsShouldProcess, ConfirmImpact = 'High' )]
param(
Expand Down
2 changes: 1 addition & 1 deletion JiraPS/Public/Remove-JiraIssueWatcher.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Remove-JiraIssueWatcher {
function Remove-JiraIssueWatcher {
# .ExternalHelp ..\JiraPS-help.xml
[CmdletBinding( SupportsShouldProcess )]
param(
Expand Down
2 changes: 1 addition & 1 deletion JiraPS/Public/Remove-JiraVersion.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Remove-JiraVersion {
function Remove-JiraVersion {
# .ExternalHelp ..\JiraPS-help.xml
[CmdletBinding( ConfirmImpact = 'High', SupportsShouldProcess )]
param(
Expand Down
4 changes: 2 additions & 2 deletions JiraPS/Public/Set-JiraIssueLabel.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Set-JiraIssueLabel {
function Set-JiraIssueLabel {
# .ExternalHelp ..\JiraPS-help.xml
[CmdletBinding( SupportsShouldProcess, DefaultParameterSetName = 'ReplaceLabels' )]
param(
Expand Down Expand Up @@ -69,7 +69,7 @@
# Find the proper object for the Issue
$issueObj = Resolve-JiraIssueObject -InputObject $_issue -Credential $Credential

$labels = [System.Collections.ArrayList]@($issueObj.labels | Where-Object {$_})
$labels = [System.Collections.ArrayList]@($issueObj.labels | Where-Object { $_ })

# As of JIRA 6.4, the Add and Remove verbs in the REST API for
# updating issues do not support arrays of parameters - you
Expand Down
2 changes: 1 addition & 1 deletion JiraPS/Public/Set-JiraVersion.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Set-JiraVersion {
function Set-JiraVersion {
# .ExternalHelp ..\JiraPS-help.xml
[CmdletBinding( SupportsShouldProcess )]
param(
Expand Down

0 comments on commit 1c524e8

Please sign in to comment.