Commit a4813bf
authored
🩹 [Patch]: Add linter configurations and update .gitignore for VS Code (#15)
## 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:
* Added `.jscpd.json` configuration file to set up JavaScript Copy/Paste
Detector with a threshold of 0 and specific reporters and ignore
patterns.
* Added `.markdown-lint.yml` configuration file to define rules for the
Markdown linter, including settings for unordered list style, line
length, and other formatting rules.
* Added `.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:
* Updated `.github/workflows/Linter.yml` to use the latest version of
`super-linter/super-linter` and adjusted environment variables for
validating JSON and Markdown files.
### PowerShell Scripts:
* Modified `Build-PSModuleDocumentation.ps1`, `Import-PSModule.ps1`, and
`Resolve-PSModuleDependency.ps1` to include `#Requires` statements for
necessary modules and added suppression for `PSAvoidUsingWriteHost`
warnings to ensure proper script execution.
[[1]](diffhunk://#diff-95b236851bd9052577a2cdf569f08e195e7d6cc424f6cb6d074ccc10b2cb7241L1-R1)
[[2]](diffhunk://#diff-e4bfa9c4a169541b0894ed0c4f60df9fcde101f9bd11ea736e8c8173b15de476L1-R1)
[[3]](diffhunk://#diff-48557b471e7d62a89be3627235334ab8a39eb6119174abb61714b92d844508e2L1-R1)
* Adjusted `scripts/main.ps1` to suppress `PSAvoidUsingWriteHost`
warnings and added `#Requires -Modules Utilities` to ensure all required
modules are loaded.
## Type of change
<!-- Use the check-boxes [x] on the options that are relevant. -->
- [ ] 📖 [Docs]
- [ ] 🪲 [Fix]
- [x] 🩹 [Patch]
- [ ] 1 parent c1b2255 commit a4813bf
File tree
10 files changed
+659
-42
lines changed- .github
- linters
- workflows
- scripts
- helpers
10 files changed
+659
-42
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
0 commit comments