Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lint All Files #115

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/Bug_Report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ body:
Any other software?
render: shell
validations:
required: true
required: true
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/Documentation_Issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ body:
label: Brief description of your issue
placeholder: Briefly describe which document needs to be corrected and why
validations:
required: true
required: true
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/Feature_Request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ body:
label: Proposed technical implementation details
placeholder: A clear and concise description of what you want to happen
validations:
required: false
required: false
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ contact_links:
about: Have a question on something? Start a new discussion thread.
- name: Review open issues
url: https://github.com/microsoft/winget-dsc/issues
about: Please check if your issue or a similar issue has already been submitted
about: Please check if your issue or a similar issue has already been submitted
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
- [ ] I have signed the [Contributor License Agreement](https://cla.opensource.microsoft.com/microsoft/winget-dsc).
- [ ] This pull request is related to an issue.

-----
-----
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,4 @@ Once your code has been reviewed and approved by the requisite number of team me

## Thank you

Thank you in advance for your contribution! Now, [what's next on the list](https://github.com/microsoft/winget-cli/labels/Help%20Wanted)? 😜
Thank you in advance for your contribution! Now, [what's next on the list](https://github.com/microsoft/winget-cli/labels/Help%20Wanted)? 😜
2 changes: 1 addition & 1 deletion PRIVACY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Data Collection

The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the repository. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft's privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.
The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the repository. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft's privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ We prefer all communications to be in English.

Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/security.md/cvd).

<!-- END MICROSOFT SECURITY.MD BLOCK -->
<!-- END MICROSOFT SECURITY.MD BLOCK -->
34 changes: 17 additions & 17 deletions SUPPORT.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Support
## How to file issues and get help
This project uses [GitHub issues][gh-issue] to [track bugs][gh-bug] and [feature requests][gh-feature]. Please search the existing issues before filing new issues to avoid duplicates. For new topics, file your bug or feature request as a new issue.
For help and questions about using this project, please look at the [docs site for Windows Package Manager][docs] and our [Contributor's Guide][contributor] if you want to work on WinGet.
## Microsoft Support Policy
Support for Windows Package Manager is limited to the resources listed above.
[gh-issue]: https://github.com/microsoft/winget-dsc/issues/new/choose
[gh-bug]: https://github.com/microsoft/winget-dsc/issues/new?assignees=&labels=Issue-Bug&projects=&template=Bug_Report.yml
[gh-feature]: https://github.com/microsoft/winget-dsc/issues/new?assignees=&labels=Issue-Feature&projects=&template=Feature_Request.yml
[docs]: https://docs.microsoft.com/windows/package-manager
[contributor]: https://github.com/microsoft/winget-dsc/blob/master/CONTRIBUTING.md
# Support

## How to file issues and get help

This project uses [GitHub issues][gh-issue] to [track bugs][gh-bug] and [feature requests][gh-feature]. Please search the existing issues before filing new issues to avoid duplicates. For new topics, file your bug or feature request as a new issue.

For help and questions about using this project, please look at the [docs site for Windows Package Manager][docs] and our [Contributor's Guide][contributor] if you want to work on WinGet.

## Microsoft Support Policy

Support for Windows Package Manager is limited to the resources listed above.

[gh-issue]: https://github.com/microsoft/winget-dsc/issues/new/choose
[gh-bug]: https://github.com/microsoft/winget-dsc/issues/new?assignees=&labels=Issue-Bug&projects=&template=Bug_Report.yml
[gh-feature]: https://github.com/microsoft/winget-dsc/issues/new?assignees=&labels=Issue-Feature&projects=&template=Feature_Request.yml
[docs]: https://docs.microsoft.com/windows/package-manager
[contributor]: https://github.com/microsoft/winget-dsc/blob/master/CONTRIBUTING.md
2 changes: 1 addition & 1 deletion doc/specs/spec-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ issue id: <github issue id>

## Resources

[comment]: # Be sure to add links to references, resources, footnotes, etc.
[comment]: # Be sure to add links to references, resources, footnotes, etc.
30 changes: 15 additions & 15 deletions pipelines/azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# winget-dsc pipeline to publish artifacts
name: "$(Build.DefinitionName)-$(Build.DefinitionVersion)-$(Date:yyyyMMdd)-$(Rev:r)"
name: '$(Build.DefinitionName)-$(Build.DefinitionVersion)-$(Date:yyyyMMdd)-$(Rev:r)'

# Commit triggers
trigger:
Expand Down Expand Up @@ -41,43 +41,43 @@ extends:
- stage: WinGet_DSC_Artifacts_Publish
jobs:
- job: Publish_WinGet_DSC_Resources
displayName: "Publish WinGet DSC Resources"
displayName: 'Publish WinGet DSC Resources'
templateContext:
outputs:
- output: pipelineArtifact
displayName: "Publish Pipeline Microsoft.Windows.Developer"
displayName: 'Publish Pipeline Microsoft.Windows.Developer'
targetPath: $(Build.SourcesDirectory)\resources\Microsoft.Windows.Developer\
artifactName: Microsoft.Windows.Developer
- output: pipelineArtifact
displayName: "Publish Pipeline Microsoft.Windows.Setting.Accessibility"
displayName: 'Publish Pipeline Microsoft.Windows.Setting.Accessibility'
targetPath: $(Build.SourcesDirectory)\resources\Microsoft.Windows.Setting.Accessibility\
artifactName: Microsoft.Windows.Setting.Accessibility
- output: pipelineArtifact
displayName: "Publish Pipeline PythonPip3Dsc"
displayName: 'Publish Pipeline PythonPip3Dsc'
targetPath: $(Build.SourcesDirectory)\resources\PythonPip3Dsc\
artifactName: PythonPip3Dsc
- output: pipelineArtifact
displayName: "Publish Pipeline YarnDsc"
displayName: 'Publish Pipeline YarnDsc'
targetPath: $(Build.SourcesDirectory)\resources\YarnDsc\
artifactName: YarnDsc
- output: pipelineArtifact
displayName: "Publish Pipeline NpmDsc"
displayName: 'Publish Pipeline NpmDsc'
targetPath: $(Build.SourcesDirectory)\resources\NpmDsc\
artifactName: NpmDsc
- output: pipelineArtifact
displayName: "Publish Pipeline Microsoft.WindowsSandbox.DSC"
displayName: 'Publish Pipeline Microsoft.WindowsSandbox.DSC'
targetPath: $(Build.SourcesDirectory)\resources\Microsoft.WindowsSandbox.DSC\
artifactName: Microsoft.WindowsSandbox.DSC
- output: pipelineArtifact
displayName: "Publish Pipeline GitDsc"
displayName: 'Publish Pipeline GitDsc'
targetPath: $(Build.SourcesDirectory)\resources\GitDsc\
artifactName: GitDsc
- output: pipelineArtifact
displayName: "Publish Pipeline Microsoft.VSCode.Dsc"
displayName: 'Publish Pipeline Microsoft.VSCode.Dsc'
targetPath: $(Build.SourcesDirectory)\resources\Microsoft.VSCode.Dsc\
artifactName: Microsoft.VSCode.Dsc
- output: pipelineArtifact
displayName: "Publish Pipeline Microsoft.DotNet.Dsc"
displayName: 'Publish Pipeline Microsoft.DotNet.Dsc'
targetPath: $(Build.SourcesDirectory)\resources\Microsoft.DotNet.Dsc\
artifactName: Microsoft.DotNet.Dsc

Expand All @@ -87,10 +87,10 @@ extends:
fetchTags: false

- task: PowerShell@2
displayName: "Run Pester tests for DSC modules"
displayName: 'Run Pester tests for DSC modules'
inputs:
pwsh: true
targetType: "inline"
targetType: 'inline'
script: |
$env:PSModulePath += ";$(Build.SourcesDirectory)\resources"
Invoke-Pester -CI
Expand All @@ -99,6 +99,6 @@ extends:

- task: PublishTestResults@2
inputs:
testResultsFormat: "NUnit"
testResultsFiles: "**/Test*.xml"
testResultsFormat: 'NUnit'
testResultsFiles: '**/Test*.xml'
failTaskOnFailedTests: true
170 changes: 85 additions & 85 deletions resources/GitDsc/GitDsc.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -8,130 +8,130 @@

@{

# Script module or binary module file associated with this manifest.
RootModule = 'GitDsc.psm1'
# Script module or binary module file associated with this manifest.
RootModule = 'GitDsc.psm1'

# Version number of this module.
ModuleVersion = '0.1.0'
# Version number of this module.
ModuleVersion = '0.1.0'

# Supported PSEditions
# CompatiblePSEditions = @()
# Supported PSEditions
# CompatiblePSEditions = @()

# ID used to uniquely identify this module
GUID = 'd5c78779-2fa7-4356-87cb-13bb41102e7e'
# ID used to uniquely identify this module
GUID = 'd5c78779-2fa7-4356-87cb-13bb41102e7e'

# Author of this module
Author = 'DscSamples'
# Author of this module
Author = 'DscSamples'

# Company or vendor of this module
# CompanyName = ''
# Company or vendor of this module
# CompanyName = ''

# Copyright statement for this module
# Copyright = ''
# Copyright statement for this module
# Copyright = ''

# Description of the functionality provided by this module
Description = 'DSC Resource for Git'
# Description of the functionality provided by this module
Description = 'DSC Resource for Git'

# Minimum version of the PowerShell engine required by this module
# PowerShellVersion = ''
# Minimum version of the PowerShell engine required by this module
# PowerShellVersion = ''

# Name of the PowerShell host required by this module
# PowerShellHostName = ''
# Name of the PowerShell host required by this module
# PowerShellHostName = ''

# Minimum version of the PowerShell host required by this module
# PowerShellHostVersion = ''
# Minimum version of the PowerShell host required by this module
# PowerShellHostVersion = ''

# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
# DotNetFrameworkVersion = ''
# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
# DotNetFrameworkVersion = ''

# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
# ClrVersion = ''
# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
# ClrVersion = ''

# Processor architecture (None, X86, Amd64) required by this module
# ProcessorArchitecture = ''
# Processor architecture (None, X86, Amd64) required by this module
# ProcessorArchitecture = ''

# Modules that must be imported into the global environment prior to importing this module
# RequiredModules = @()
# Modules that must be imported into the global environment prior to importing this module
# RequiredModules = @()

# Assemblies that must be loaded prior to importing this module
# RequiredAssemblies = @()
# Assemblies that must be loaded prior to importing this module
# RequiredAssemblies = @()

# Script files (.ps1) that are run in the caller's environment prior to importing this module.
# ScriptsToProcess = @()
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
# ScriptsToProcess = @()

# Type files (.ps1xml) to be loaded when importing this module
# TypesToProcess = @()
# Type files (.ps1xml) to be loaded when importing this module
# TypesToProcess = @()

# Format files (.ps1xml) to be loaded when importing this module
# FormatsToProcess = @()
# Format files (.ps1xml) to be loaded when importing this module
# FormatsToProcess = @()

# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
# NestedModules = @()
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
# NestedModules = @()

# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
# FunctionsToExport = @()
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
# FunctionsToExport = @()

# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
# CmdletsToExport = @()
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
# CmdletsToExport = @()

# Variables to export from this module
# VariablesToExport = '*'
# Variables to export from this module
# VariablesToExport = '*'

# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
# AliasesToExport = @()
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
# AliasesToExport = @()

# DSC resources to export from this module
DscResourcesToExport = @(
'GitClone',
'GitRemote',
'GitConfigUserName',
'GitConfigUserEmail',
'GitConfigFile'
)
# DSC resources to export from this module
DscResourcesToExport = @(
'GitClone',
'GitRemote',
'GitConfigUserName',
'GitConfigUserEmail',
'GitConfigFile'
)

# List of all modules packaged with this module
# ModuleList = @()
# List of all modules packaged with this module
# ModuleList = @()

# List of all files packaged with this module
# FileList = @()
# List of all files packaged with this module
# FileList = @()

# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
PrivateData = @{
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
PrivateData = @{

PSData = @{
PSData = @{

# Tags applied to this module. These help with module discovery in online galleries.
Tags = @('PSDscResource_GitClone', 'PSDscResource_GitRemote', 'PSDscResource_GitConfigUserName', 'PSDscResource_GitConfigUserEmail', 'PSDscResource_GitConfigFile')
# Tags applied to this module. These help with module discovery in online galleries.
Tags = @('PSDscResource_GitClone', 'PSDscResource_GitRemote', 'PSDscResource_GitConfigUserName', 'PSDscResource_GitConfigUserEmail', 'PSDscResource_GitConfigFile')

# A URL to the license for this module.
# LicenseUri = ''
# A URL to the license for this module.
# LicenseUri = ''

# A URL to the main website for this project.
# ProjectUri = ''
# A URL to the main website for this project.
# ProjectUri = ''

# A URL to an icon representing this module.
# IconUri = ''
# A URL to an icon representing this module.
# IconUri = ''

# ReleaseNotes of this module
# ReleaseNotes = ''
# ReleaseNotes of this module
# ReleaseNotes = ''

# Prerelease string of this module
Prerelease = 'alpha'
# Prerelease string of this module
Prerelease = 'alpha'

# Flag to indicate whether the module requires explicit user acceptance for install/update/save
# RequireLicenseAcceptance = $false
# Flag to indicate whether the module requires explicit user acceptance for install/update/save
# RequireLicenseAcceptance = $false

# External dependent modules of this module
# ExternalModuleDependencies = @()
# External dependent modules of this module
# ExternalModuleDependencies = @()

} # End of PSData hashtable
} # End of PSData hashtable

} # End of PrivateData hashtable
} # End of PrivateData hashtable

# HelpInfo URI of this module
# HelpInfoURI = ''
# HelpInfo URI of this module
# HelpInfoURI = ''

# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
# DefaultCommandPrefix = ''
# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
# DefaultCommandPrefix = ''

}
Loading
Loading