Commit a11a390
authored
🩹 [Patch]: Add Linter settings + fix documentation structure (#535)
## Description
This pull request primarily fixes the documentation of PowerShell
functions by adding PowerShell-formatted code blocks to the `.EXAMPLE`
sections, due to upgrading from `platyPS` to
`Microsoft.PowerShell.PlatyPS`. Additionally, it introduces
configuration changes for linters and minor formatting corrections.
Documentation improvements:
* Added PowerShell-formatted code blocks to the `.EXAMPLE` sections of
many function files in `src/functions/*`. This was needed to retain the
code blocks in the examples, as `Microsoft.PowerShell.PlatyPS` lets the
user configure this.
Linter and configuration updates:
* Added a `Linter` section to `.github/PSModule.yml` to explicitly
disable several validation checks, such as `VALIDATE_BIOME_FORMAT` and
`VALIDATE_POWERSHELL`.
* Fixed a minor formatting issue in `.github/linters/.markdown-lint.yml`
by changing double quotes to single quotes for the `MD026.punctuation`
setting. This was also due to `Microsoft.PowerShell.PlatyPS` adding H3
for types which can be same for `.INPUTS` and `.OUTPUTS`.
Encoding and formatting corrections:
* Added or corrected UTF-8 BOM in some PowerShell files to ensure proper
encoding.1 parent 34c013c commit a11a390
File tree
335 files changed
+1123
-56
lines changed- .github
- linters
- src
- classes/public
- functions
- private
- Actions
- Workflow Run
- Apps/GitHub Apps
- Artifacts
- Auth
- Cli
- Context
- DeviceFlow
- Branches
- Commands
- Config
- Core
- Enterprise
- Environments
- Gitignore
- License
- Organization
- Blocking
- Releases
- Assets
- Repositories
- Autolinks
- RuleSuite
- Secrets
- PublicKey
- Teams
- Users
- Blocking
- Emails
- Followers
- GPG-Keys
- Keys
- SSH-Signing-Keys
- Social-Accounts
- Utilities/PowerShell
- Variables
- Webhooks
- public
- API
- Actions/Data
- Apps
- GitHub App Installations
- GitHub App
- Artifacts
- Auth
- Context
- Commands
- Config
- Emojis
- Enterprise
- Environments
- Gitignore
- Git
- Issues
- License
- Markdown
- Meta
- Organization
- Members
- Rate-Limit
- Releases
- Assets
- Repositories
- Autolinks
- CustomProperties
- Permissions
- Repositories
- RuleSuite
- Secrets
- SelectedRepository
- Status
- Teams
- Users
- Blocking
- Emails
- Followers
- GPG-Keys
- Keys
- SSH-Signing-Keys
- Social-Accounts
- Variables
- SelectedRepository
- Webhooks
- Workflows
- Runs
- tools/utilities
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
335 files changed
+1123
-56
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| 22 | + | |
20 | 23 | | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| 23 | + | |
21 | 24 | | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
0 commit comments