mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-18 21:52:02 +00:00
Ensure keyboard aliases do not point to themselves
This commit is contained in:
parent
f0b04b2a3a
commit
3a025f41e0
@ -32,6 +32,10 @@ def ci_validate_aliases(cli):
|
|||||||
success = True
|
success = True
|
||||||
for alias in aliases.keys():
|
for alias in aliases.keys():
|
||||||
target = aliases[alias].get('target', None)
|
target = aliases[alias].get('target', None)
|
||||||
|
if alias == target:
|
||||||
|
cli.log.error(f'Keyboard alias {alias} should not point to itself')
|
||||||
|
success = False
|
||||||
|
|
||||||
if not _target_keyboard_exists(target):
|
if not _target_keyboard_exists(target):
|
||||||
cli.log.error(f'Keyboard alias {alias} has a target that doesn\'t exist: {target}')
|
cli.log.error(f'Keyboard alias {alias} has a target that doesn\'t exist: {target}')
|
||||||
success = False
|
success = False
|
||||||
|
Loading…
Reference in New Issue
Block a user