Skip to content

Bugfix/codechecker analysis fixes - #80

Merged
skarg merged 6 commits into
defaultfrom
bugfix/codechecker-analysis-fixes
Aug 7, 2026
Merged

Bugfix/codechecker analysis fixes#80
skarg merged 6 commits into
defaultfrom
bugfix/codechecker-analysis-fixes

Conversation

@skarg

@skarg skarg commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request focuses on addressing static-analysis/code-checker findings across the Zephyr BACnet integration by tightening error handling, fixing type/format mismatches, and adjusting CodeChecker configuration and test build inputs.

Changes:

  • Update BACnet shell and settings/storage code to reduce warnings (unused args, return-value handling, signed/unsigned conversions).
  • Fix and clarify BACnet settings/storage key handling and shell utilities (decode/encode error paths, JSON/hex helpers, argument parsing).
  • Adjust CodeChecker configuration (skip rules and disabled diagnostics) and include an additional BACnet source file in the unit test build.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
zephyr/tests/bacnet/basic/object/acc/CMakeLists.txt Adds cov.c to unit test sources to satisfy link/analysis dependencies.
zephyr/subsys/bacnet_shell/bacnet_shell_property.c Adds early error returns and various type/return-value adjustments to satisfy analyzers.
zephyr/subsys/bacnet_shell/bacnet_shell_objects.c Aligns count type/printf formatting.
zephyr/subsys/bacnet_shell/bacnet_shell_lighting_output.c Fixes formatting/typing and makes status strings explicit.
zephyr/subsys/bacnet_settings/bacnet_storage.c Improves error handling and types around settings load/store operations.
zephyr/subsys/bacnet_settings/bacnet_storage_shell.c Improves encode error handling and string formatting checks; marks unused args.
zephyr/subsys/bacnet_settings/bacnet_settings.c Adds object-parse API and tightens parsing/size casts.
zephyr/subsys/bacnet_settings/bacnet_settings_shell.c Improves encode/decode error handling and string formatting checks; marks unused args.
zephyr/subsys/bacnet_datalink/bip-init.c Adds unused-arg markers and small type/logic tweaks in timeout/interface handling.
zephyr/include/bacnet_settings/bacnet_settings.h Exposes bacnet_settings_object_parse() in the public header.
codechecker/skip.txt Updates CodeChecker skip/include patterns.
codechecker/.codechecker.yml Disables select diagnostics that conflict with common Zephyr patterns.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread zephyr/subsys/bacnet_settings/bacnet_storage.c Outdated
Comment thread zephyr/subsys/bacnet_settings/bacnet_settings.c Outdated
Comment thread zephyr/subsys/bacnet_settings/bacnet_settings.c Outdated
@skarg
skarg merged commit dcf7b87 into default Aug 7, 2026
3 checks passed
@skarg
skarg deleted the bugfix/codechecker-analysis-fixes branch August 7, 2026 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants