Skip to content

Commit cb1e6f0

Browse files
committed
Markdown linter and link checker jobs
1 parent 65ec747 commit cb1e6f0

File tree

12 files changed

+366
-162
lines changed

12 files changed

+366
-162
lines changed

.github/markdown-link-check.jsonc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"httpHeaders": [
3+
{
4+
"urls": ["https://github.com/", "https://guides.github.com/", "https://help.github.com/", "https://docs.github.com/"],
5+
"headers": {
6+
"Accept-Encoding": "zstd, br, gzip, deflate"
7+
}
8+
}
9+
],
10+
}

.github/markdownlint.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"owner": "markdownlint",
5+
"severity": "warning",
6+
"pattern": [
7+
{
8+
"regexp": "^(.*):(\\d+)(:(\\d+))? (MD\\d+\\/[^ ]+) (.*)$",
9+
"file": 1,
10+
"line": 2,
11+
"column": 4,
12+
"code": 5,
13+
"message": 6
14+
}
15+
]
16+
}
17+
]
18+
}

.github/markdownlint.jsonc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"default": true,
3+
"MD013": {
4+
"line_length": 120
5+
},
6+
"MD034": false,
7+
"MD041": false
8+
}

.github/workflows/markdown.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Markdown
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/markdown.yml'
7+
- '.github/markdownlint.json'
8+
- '.github/markdownlint.jsonc'
9+
- '**/*.md'
10+
workflow_dispatch:
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
linter:
18+
name: Lint Markdown Files
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Harden Runner
22+
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
23+
with:
24+
egress-policy: audit
25+
26+
- name: Checkout vscode-cmsis-debugger
27+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28+
29+
- name: Register Markdownlint Warning Matcher
30+
run: echo "::add-matcher::.github/markdownlint.json"
31+
32+
- name: Lint Markdown Files
33+
uses: avto-dev/markdown-lint@04d43ee9191307b50935a753da3b775ab695eceb # v1.5.0
34+
with:
35+
args: '**/*.md'
36+
config: '.github/markdownlint.jsonc'
37+
38+
- name: Remove Markdownlint Warning Matcher
39+
if: always()
40+
run: echo "::remove-matcher owner=markdownlint::"
41+
42+
check-links:
43+
name: Check Markdown Links
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
47+
48+
- name: Check Links
49+
uses: gaurav-nelson/github-action-markdown-link-check@3c3b66f1f7d0900e37b71eca45b63ea9eedfce31 # master
50+
with:
51+
use-quiet-mode: 'yes'
52+
use-verbose-mode: 'yes'
53+
base-branch: ${{ github.base_ref }}
54+
config-file: '.github/markdown-link-check.jsonc'

CHANGELOG.md

Lines changed: 51 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,78 @@
11
# Change Log
22

33
## 0.1.1
4-
- Fixes [#153](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/153): PATH variable in terminal sometimes loses modifications from other extensions.
5-
- Fixes [#155](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/155): Go-to-main in `initCommands` of the `launch.json` leaves behind the breakpoint.
6-
- Partially implements [#96](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/96): Enable Peripheral Inspector.
7-
- Extracts first SVD file path found in `*.cbuild-run.yml` debug configuration file to automatically set up Peripheral Inspector.
4+
5+
- Fixes [#153](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/153): PATH variable in terminal sometimes
6+
loses modifications from other extensions.
7+
- Fixes [#155](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/155): Go-to-main in `initCommands` of the
8+
`launch.json` leaves behind the breakpoint.
9+
- Partially implements [#96](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/96): Enable Peripheral
10+
Inspector.
11+
- Extracts first SVD file path found in `*.cbuild-run.yml` debug configuration file to automatically set up
12+
Peripheral Inspector.
813
- Adds initial version of extension [documentation](https://open-cmsis-pack.github.io/vscode-cmsis-debugger/).
914
- Updates included pyOCD distribution
10-
- Fixes [#133](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/133): Adds default memory map for Cortex-M devices.
15+
- Fixes [#133](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/133): Adds default memory map for
16+
Cortex-M devices.
1117
- Improves memory map creation and flash algorithms sorting.
1218
- Selects current processor core (for example used for flash programming) based on active gdb server connection.
1319

1420
## 0.1.0
21+
1522
- Updates included pyOCD distribution
16-
- Fixes [#92](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/92): `monitor reset halt` command fails for LPCXpresso55S69 if using CMSIS Pack support in pyOCD.
17-
- Fixes [#93](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/93): Download to LPC55S69 flash with GDB and pyOCD ends in errors.
18-
- Fixes [#94](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/94): Cannot connect to NXP FRDM-K32L3A6 with pyOCD.
23+
- Fixes [#92](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/92): `monitor reset halt` command fails
24+
for LPCXpresso55S69 if using CMSIS Pack support in pyOCD.
25+
- Fixes [#93](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/93): Download to LPC55S69 flash with
26+
GDB and pyOCD ends in errors.
27+
- Fixes [#94](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/94): Cannot connect to NXP FRDM-K32L3A6
28+
with pyOCD.
1929
- Fixes support for `<memory>` elements from CMSIS PDSC files.
2030
- Fixes progress bar output during program download.
2131
- Fixes handling of `__ap` variable in debug sequences.
22-
- Improves connection robustness and DP sticky error bits handling for temporary target communication losses and `__errorcontrol` usage (CMSIS debug descriptions). For example in reset scenarios.
32+
- Improves connection robustness and DP sticky error bits handling for temporary target communication losses and
33+
`__errorcontrol` usage (CMSIS debug descriptions). For example in reset scenarios.
2334
- Updates CMSIS-DAP probe detection (filters out Cypress KitProg3 bridge).
2435
- Extends and improves support for `*.cbuild-run.yml` debug configuration files.
2536

2637
## 0.0.3
27-
- Fixes [#84](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/84): Cannot use cbuild-run files with pyOCD without CMSIS_PACK_ROOT environment variable.
28-
- Implements [#83](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/83): Make built-in pyOCD available in VS Code terminals.
29-
- Note that there is a known issue with a pyOCD installation in Python virtual environments taking precedence over the built-in pyOCD variant.
38+
39+
- Fixes [#84](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/84): Cannot use cbuild-run files with
40+
pyOCD without CMSIS_PACK_ROOT environment variable.
41+
- Implements [#83](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/83): Make built-in pyOCD available
42+
in VS Code terminals.
43+
- Note that there is a known issue with a pyOCD installation in Python virtual environments taking precedence over
44+
the built-in pyOCD variant.
3045
- Updates included pyOCD distribution
31-
- Fixes [#91](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/91): "Zephyr kernel detected" warning in shipped pyOCD.
32-
- Fixes [#100](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/100): [macOS] - Cannot connect with pyOCD and ULINKplus. Fixes missing `libusb` for macOS.
33-
- Fixes [#126](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/126): Flash programming fails on devices where the flash memory's erased value is 0x00. Initializes XPSR register before executing flash algorithm function.
34-
- Fixes [#127](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/127): CoreSight root component discovery fails. Fixes how to address APv2.
35-
- Fixes [#128](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/128): Programming fails on LPC55S69 when device is erased. Debugger no longer reads back programmed flash memory if `Verify` function is provided by flash algorithm.
36-
- Fixes [#131](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/131): AP access failure due to invalid security flags (SPROT).
46+
- Fixes [#91](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/91): "Zephyr kernel detected" warning
47+
in shipped pyOCD.
48+
- Fixes [#100](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/100): [macOS] - Cannot connect with
49+
pyOCD and ULINKplus. Fixes missing `libusb` for macOS.
50+
- Fixes [#126](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/126): Flash programming fails on
51+
devices where the flash memory's erased value is 0x00. Initializes XPSR register before executing flash algorithm
52+
function.
53+
- Fixes [#127](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/127): CoreSight root component
54+
discovery fails. Fixes how to address APv2.
55+
- Fixes [#128](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/128): Programming fails on LPC55S69
56+
when device is erased. Debugger no longer reads back programmed flash memory if `Verify` function is
57+
provided by flash algorithm.
58+
- Fixes [#131](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/131):
59+
AP access failure due to invalid security flags (SPROT).
3760
- Extends support for `*.cbuild-run.yml` debug configuration files.
3861

3962
## 0.0.2
40-
- Removes [Arm Tools Environment Manager](https://marketplace.visualstudio.com/items?itemName=Arm.environment-manager) from extension pack. Instead, README lists it as one of the recommended extensions to use with the Arm CMSIS Debugger.
63+
64+
- Removes [Arm Tools Environment Manager](https://marketplace.visualstudio.com/items?itemName=Arm.environment-manager)
65+
from extension pack. Instead, README lists it as one of the recommended extensions to use with the Arm CMSIS Debugger.
4166
- Fixes use of `${workspace}` to `${workspaceFolder}` in default debug configurations.
42-
- Reduces and aligns default `initCommands` lists for pseudo debugger types `cmsis-debug-pyocd` and `cmsis-debug-jlink`.
43-
- Implements [#69](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/69): Bring Debug Console to front during connection.
67+
- Reduces and aligns default `initCommands` lists for pseudo debugger types `cmsis-debug-pyocd`
68+
and `cmsis-debug-jlink`.
69+
- Implements [#69](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/69): Bring Debug Console to
70+
front during connection.
4471

4572
## 0.0.1
73+
4674
- Initial release of extension pack on GitHub.
4775
- Adds pseudo debugger types `cmsis-debug-pyocd` and `cmsis-debug-jlink`.
48-
- Adds debug configuration providers for debugger type `gdbtarget` to resolve settings for pyOCD and Segger J-Link GDB server connections.
76+
- Adds debug configuration providers for debugger type `gdbtarget` to resolve settings for pyOCD and Segger J-Link
77+
GDB server connections.
4978
- Contributes setting `cmsis`.`cbuildRunFile` to all debugger types (`*` debugger type).

0 commit comments

Comments
 (0)