🩹 [Patch]: Add linter configurations and update .gitignore for VS Code #15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request focuses on adding and configuring various linters for the project, as well as making some minor adjustments to PowerShell scripts. The most important changes include adding configuration files for JavaScript Copy/Paste Detector (jscpd), Markdown linter, and PowerShell Script Analyzer, updating the GitHub Actions workflow for the linter, and modifying PowerShell scripts to include necessary module requirements and suppress specific warnings.
Linter Configuration:
.jscpd.json
configuration file to set up JavaScript Copy/Paste Detector with a threshold of 0 and specific reporters and ignore patterns..markdown-lint.yml
configuration file to define rules for the Markdown linter, including settings for unordered list style, line length, and other formatting rules..powershell-psscriptanalyzer.psd1
configuration file to enable and configure various rules for PowerShell Script Analyzer, such as consistent indentation and whitespace usage.GitHub Actions Workflow:
.github/workflows/Linter.yml
to use the latest version ofsuper-linter/super-linter
and adjusted environment variables for validating JSON and Markdown files.PowerShell Scripts:
Build-PSModuleDocumentation.ps1
,Import-PSModule.ps1
, andResolve-PSModuleDependency.ps1
to include#Requires
statements for necessary modules and added suppression forPSAvoidUsingWriteHost
warnings to ensure proper script execution. [1] [2] [3]scripts/main.ps1
to suppressPSAvoidUsingWriteHost
warnings and added#Requires -Modules Utilities
to ensure all required modules are loaded.Type of change
Checklist