Skip to content

Conversation

madelinespark
Copy link
Contributor

No description provided.

@madelinespark
Copy link
Contributor Author

squashed all commits

@tynanford
Copy link
Contributor

@madelinespark and I looked through and cleaned up things a bit in addReccasterExcludePattern

  • removed a few nested if/else blocks in favor of continue
  • removed the ret variable and extra logging message that just said there was an error in addReccasterExcludePattern
  • changed strcmp to argv[i][0] == '\0'

we were wondering if ellFree is cleaning all the memory or not. Madeline will check on that

Copy link
Contributor

@tynanford tynanford left a comment

Choose a reason for hiding this comment

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

Looks good to me and tested with base R3.15.8 and R7.0.9. ELLLIST is very handy!

@tynanford tynanford requested a review from simon-ess September 11, 2025 20:00
@tynanford
Copy link
Contributor

Hi @simon-ess , sorry for another ping but there have been enough changes since your last approval that we would appreciate one final look through

Copy link
Contributor

@simon-ess simon-ess left a comment

Choose a reason for hiding this comment

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

LGTM!

@simon-ess
Copy link
Contributor

Note that you're failing a sonarqube check for duplicated code on the test function. It might be good to refactor that code, but you also could consider disabling the check on test code?

@tynanford
Copy link
Contributor

tynanford commented Sep 15, 2025

I'd be in favor of removing that check on the test file.

@mdavidsaver comments on #117 (comment) would apply to this PR as well. The PRs go in tandem and I had Madeline create the addReccasterEnvVars refactor PR on Friday since that was the last day of her internship. It branches off this PR since there is shared code like nodeFree and string_list_t

My proposal would be to merge this PR as is if it is acceptable and then refactor the loop iteration code and memory allocations for both addReccasterEnvVars and addReccasterExcludePattern in PR #117 . That way the git merging is less troublesome. But let us know if this PR should be cleaned up first.

edit - actually maybe it makes more sense to get this PR fully completed and then worry about pr #117

@simon-ess
Copy link
Contributor

Yeah, I saw that that other PR was based off of this one and sort of assumed that it would be rebased after this one is merge.

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot
24.6% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@tynanford tynanford requested a review from simon-ess September 26, 2025 20:43
@tynanford
Copy link
Contributor

The changes Michael mentioned about array allocation and looping through the linked lists are implemented. Also updated the variable naming as suggested. This is ready to merge from our end, can you take one last look @simon-ess ?

@tynanford tynanford merged commit 10cbe2f into ChannelFinder:master Sep 30, 2025
50 of 51 checks passed
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