-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sonarcloud fixes #70
Sonarcloud fixes #70
Conversation
b182916
to
db0049c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Core Changes:
- Improved code quality by adding missing ARG_UNUSED() macros for unused parameters
- Renamed state object structs to be more descriptive (e.g.
s_object
->battery_state
) - Made state object parameters const where appropriate
- Fixed comment style consistency (// -> /**/)
- Removed redundant parentheses
None
Verdict: Approve - These are safe code quality improvements that make the code more maintainable without changing functionality.
Code review performed by ANTHROPIC - claude-3-5-sonnet-20241022
.
Note: Some line comments were omitted due to technical limitations.
This issues was reported by Sonarcloud. Also, change the state variable name to a more descriptive. Signed-off-by: Jan Tore Guggedal <jantore.guggedal@nordicsemi.no>
Make the battery state struct name more descriptive. Signed-off-by: Jan Tore Guggedal <jantore.guggedal@nordicsemi.no>
This issues was reported by Sonarcloud. Change the state variable name to a more descriptive name. Void an unused argument in work handler. Signed-off-by: Jan Tore Guggedal <jantore.guggedal@nordicsemi.no>
* Constify pointers to read-only state variable * Make state object name more descriptive Signed-off-by: Jan Tore Guggedal <jantore.guggedal@nordicsemi.no>
* Constify pointers to read-only state variable * Make state object name more descriptive Signed-off-by: Jan Tore Guggedal <jantore.guggedal@nordicsemi.no>
Reported by Sonarcloud. Signed-off-by: Jan Tore Guggedal <jantore.guggedal@nordicsemi.no>
Reported by Sonarcloud. Signed-off-by: Jan Tore Guggedal <jantore.guggedal@nordicsemi.no>
Reported by Sonarcloud. Signed-off-by: Jan Tore Guggedal <jantore.guggedal@nordicsemi.no>
Reported by Sonarcloud. Signed-off-by: Jan Tore Guggedal <jantore.guggedal@nordicsemi.no>
db0049c
to
e2c7b67
Compare
|
No description provided.