zephyr/scripts/ci
Carles Cufi ff2d9cfcb6 scripts: compliance: Fix handling of integer node items
Some node items in Kconfig can be kconfiglib.MENU or kconfiglib.COMMENT.
Those are integers and thus do not contain a node.item.name field.
Handle those separately to avoid hitting the followig exception:

Traceback (most recent call last):
  File "/home/runner/work/zephyr/zephyr/./scripts/ci/check_compliance.py",\
  line 1307, in main
    n_fails = _main(args)
  File "/home/runner/work/zephyr/zephyr/./scripts/ci/check_compliance.py",\
  line 1242, in _main
    test.run()
  File "/home/runner/work/zephyr/zephyr/./scripts/ci/check_compliance.py",\
  line 277, in run
    self.check_no_redefined_in_defconfig(kconf)
  File "/home/runner/work/zephyr/zephyr/./scripts/ci/check_compliance.py",\
  line 445, in check_no_redefined_in_defconfig
    Kconfig node '{node.item.name}' found with prompt or help in\
    {node.filename}.
AttributeError: 'int' object has no attribute 'name'

Seen in #58454.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2023-07-04 08:23:02 +02:00
..
check_compliance.py scripts: compliance: Fix handling of integer node items 2023-07-04 08:23:02 +02:00
errno.py
guideline_check.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
pylintrc scripts: ci: Enable pylint check for argument parser abbreviations 2023-01-26 20:12:36 +09:00
tags.yaml ci: tags: add mcumgr to tags file 2023-06-02 04:47:06 -04:00
test_plan.py ci: testplan: do not start more runners than needed 2023-06-08 07:33:56 -04:00
twister_ignore.txt uncrustify: remove configuration file 2022-06-15 09:37:30 -04:00
upload_test_results_es.py ci: elasticsearch: do not set id for documentats. 2023-02-21 13:06:29 -05:00
upload_test_results.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
version_mgr.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00