Skip to content

Resolve Sonar issues - #20

Merged
anderslindho merged 10 commits into
masterfrom
chore/resolve-sonar-findings
Aug 7, 2026
Merged

Resolve Sonar issues#20
anderslindho merged 10 commits into
masterfrom
chore/resolve-sonar-findings

Conversation

@anderslindho

Copy link
Copy Markdown
Contributor

See individual commits and sonar report for main/master vs this branch. Note that not all open issues have been addressed, as some are more complex or complicated, and some would go against EPICS conventions and/or needs.

`s->sd` and `s->wakeup` are different sockets with different lifetimes,
and the two `sd[]` entries are opposite ends of a pair. Chaining the
assignments made those look like one initialisation.

Refs: c:S1121
An unquoted expansion is word-split by the shell. The `ARG` is
overridable at build time.

Refs: docker:S6570
The download stage installed `wget` and `git` with recommends on; the
build stage already turns them off. `ca-certificates` has to be named
explicitly afterwards: it only arrived as a `wget` recommendation, and
the `https` fetch of Base fails certificate verification without it.

Refs: docker:S6500
A moving tag such as `docker/build-push-action@v6` resolves to whatever
the owner last pushed. This workflow holds `packages: write` and
publishes the image that recceiver's integration tests pull, so pin the
SHA and keep the version in a trailing comment.

Actions under `actions/` stay on tags.

Refs: githubactions:S7637
The rename and the build were separate `RUN` instructions, so one layer
held nothing but a renamed directory, and the build entered the tree
with `cd`.

Refs: docker:S7031, docker:S6597
Keeping a separate `RUN` for the build creates a docker layer that only
holds the one-line `configure/RELEASE.local` written on the previous
row. Join the two so that file never becomes its own layer.

Refs: docker:S7031
@sonarqubecloud

sonarqubecloud Bot commented Aug 6, 2026

Copy link
Copy Markdown

@tynanford
tynanford requested a review from mdavidsaver August 6, 2026 16:01

@tynanford tynanford left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The changes look fine to me. Only question is if the argument to casterThread being called junk was meaningful vs just calling it arg

static void casterThread(void* junk)

@mdavidsaver

Copy link
Copy Markdown
Contributor

... if the argument to casterThread being called junk was meaningful vs just calling it arg

Nope. Just an odd habit of mine.

@anderslindho
anderslindho merged commit d8268f6 into master Aug 7, 2026
92 checks passed
@anderslindho
anderslindho deleted the chore/resolve-sonar-findings branch August 7, 2026 11:40
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