diff options
| author | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-14 00:42:34 +0300 |
|---|---|---|
| committer | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-14 00:42:34 +0300 |
| commit | ac9f61e5ae366774e51975b0faddd7ba07996762 (patch) | |
| tree | ec6c262182e6c82ce5557c37b166fa76f5b4e895 /docs/_include | |
| parent | 80f5a07903fe421415bf714fa9b51ba0d115e6d9 (diff) | |
| download | vyos-documentation-ac9f61e5ae366774e51975b0faddd7ba07996762.tar.gz vyos-documentation-ac9f61e5ae366774e51975b0faddd7ba07996762.zip | |
ci(doc-linter): delete lint_mac dead code
`lint_mac()` was called and its return value immediately overwritten
with `None`:
err_mac = lint_mac(cnt, line.strip())
# disable mac detection for the moment, too many false positives
err_mac = None
The comment is correct — MAC linting produced too many false
positives — but the cleanup never landed. The dead call ran on every
line for every linted file, and the function/MAC-regex/MAC-error-text
all sat in the source as a misleading hint that MAC linting was a
live feature.
Delete:
- the `MAC` regex constant
- the `lint_mac()` function
- the `err_mac = lint_mac(...)`, `err_mac = None`, and the `err_mac`
entry in the tuple iterated by the error-collection loop in
`handle_file_action()`
Tracked as item 9 of the rolling-side cleanup backlog flagged across
the PR #2014 / #2019 / #2020 reviews. When MAC linting is genuinely
wanted again, recover the regex/function from git history and wire it
in cleanly.
🤖 Generated by [robots](https://vyos.io)
Diffstat (limited to 'docs/_include')
0 files changed, 0 insertions, 0 deletions
