Skip to content

Improved Settings#302

Merged
greenbonebot merged 11 commits intomainfrom
improved-settings
Feb 9, 2026
Merged

Improved Settings#302
greenbonebot merged 11 commits intomainfrom
improved-settings

Conversation

@bjoernricks
Copy link
Copy Markdown
Contributor

What

Improve the settings module with namespaced function names and store all settings in a struct.

Why

Better encapsulation of gsad's settings.

Checklist

  • Tests

@bjoernricks bjoernricks requested review from a team as code owners February 6, 2026 13:36
@greenbonebot greenbonebot enabled auto-merge (rebase) February 6, 2026 13:36
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 6, 2026

Codecov Report

❌ Patch coverage is 98.16850% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.83%. Comparing base (991d543) to head (1e77a93).
⚠️ Report is 11 commits behind head on main.

Files with missing lines Patch % Lines
src/gsad_settings.c 95.37% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #302      +/-   ##
==========================================
+ Coverage   96.60%   96.83%   +0.22%     
==========================================
  Files           7        9       +2     
  Lines        1619     1893     +274     
  Branches       47       52       +5     
==========================================
+ Hits         1564     1833     +269     
- Misses         43       47       +4     
- Partials       12       13       +1     
Flag Coverage Δ
unittests 96.83% <98.16%> (+0.22%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Create a struct that stores all settings.
All functions belonging to the settings should be easily identifiable.
Both guest username and password are not used anymore.
The function is not used and even not implemented.
Make the gsad_settings function more flexible by allowing to work on
arbitrary gsad_settings_t pointers.
With this change the global settings are created when calling
gsad_settings_get_global_settings() for the first time and afterwards
the same pointer is returned always.
ozgen
ozgen previously approved these changes Feb 6, 2026
Comment thread src/gsad_settings.c Outdated
Comment thread src/gsad_settings.c Outdated
Comment thread src/gsad.c Outdated
If the global setting is used name the variable after it.
ozgen
ozgen previously approved these changes Feb 9, 2026
@greenbonebot greenbonebot merged commit 2e1ae47 into main Feb 9, 2026
19 checks passed
@greenbonebot greenbonebot deleted the improved-settings branch February 9, 2026 08:46
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.

3 participants