Skip to content

Format Svc and add to CI#3978

Merged
LeStarch merged 5 commits intonasa:develfrom
thomas-bc:format-svc-1
Aug 4, 2025
Merged

Format Svc and add to CI#3978
LeStarch merged 5 commits intonasa:develfrom
thomas-bc:format-svc-1

Conversation

@thomas-bc
Copy link
Collaborator

Related Issue(s)
Has Unit Tests (y/n)
Documentation Included (y/n)

Change Description

Towards #1984

Format Svc/ module (except FpySequencer which is WIP) and add to CI

virtual ~ActiveRateGroupTester();
class ActiveRateGroupTester : public ActiveRateGroupGTestBase {
public:
ActiveRateGroupTester(Svc::ActiveRateGroup& inst);

Check warning

Code scanning / CppCheck

Single-parameter constructors should be marked explicit. Warning test

Single-parameter constructors should be marked explicit.
public:
//! Construct object BufferLoggerTester
//!
BufferLoggerTester(bool doInitLog = true);

Check warning

Code scanning / CppCheck

Constructors callable with one argument should be marked explicit. Warning test

Constructors callable with one argument should be marked explicit.
// first buffer should point at location just past buffer structs
U8* mem = reinterpret_cast<U8*>(alloc.getMem()) +
this->component.m_numStructs * sizeof(Svc::BufferManagerComponentImpl::AllocatedBuffer);
;

Check warning

Code scanning / CppCheck

Line contains only semicolon. If this should be an empty statement, use {} instead. Warning test

Line contains only semicolon. If this should be an empty statement, use {} instead.
};
class CommandDispatcherTester : public CommandDispatcherGTestBase {
public:
CommandDispatcherTester(Svc::CommandDispatcherImpl& inst);

Check warning

Code scanning / CppCheck

Single-parameter constructors should be marked explicit. Warning test

Single-parameter constructors should be marked explicit.
ComLoggerTester(const char* const compName);

// This constructor will construct comLogger with its
// standard constructor

Check warning

Code scanning / CppCheck

Single-parameter constructors should be marked explicit. Warning test

Single-parameter constructors should be marked explicit.
{ }
public:
//! Construct a PacketsReceived object
PacketsReceived(FileUplink* const fileUplink) : m_received_packet_count(0), m_fileUplink(fileUplink) {}

Check warning

Code scanning / CppCheck

Single-parameter constructors should be marked explicit. Warning

Single-parameter constructors should be marked explicit.
public:
public:
//! Construct a Warnings object
Warnings(FileUplink* const fileUplink) : m_warning_count(0), m_fileUplink(fileUplink) {}

Check warning

Code scanning / CppCheck

Single-parameter constructors should be marked explicit. Warning

Single-parameter constructors should be marked explicit.
virtual ~PassiveRateGroupTester();
class PassiveRateGroupTester : public PassiveRateGroupGTestBase {
public:
PassiveRateGroupTester(Svc::PassiveRateGroup& inst);

Check warning

Code scanning / CppCheck

Single-parameter constructors should be marked explicit. Warning test

Single-parameter constructors should be marked explicit.
Os::File::Status m_testWriteStatus;
class PrmDbTester : public PrmDbGTestBase {
public:
PrmDbTester(Svc::PrmDbImpl& inst);

Check warning

Code scanning / CppCheck

Single-parameter constructors should be marked explicit. Warning test

Single-parameter constructors should be marked explicit.
virtual ~RateGroupDriverImplTester();
class RateGroupDriverImplTester : public RateGroupDriverGTestBase {
public:
RateGroupDriverImplTester(Svc::RateGroupDriver& inst);

Check warning

Code scanning / CppCheck

Single-parameter constructors should be marked explicit. Warning test

Single-parameter constructors should be marked explicit.
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

m_overrunThrottle(0),
m_cycleSlips(0) {}

void ActiveRateGroup::configure(U32 contexts[], FwIndexType numContexts) {

Check notice

Code scanning / CodeQL

No raw arrays in interfaces Note

Raw arrays should not be used in interfaces. A container class should be used instead.

DpCatalog ::~DpCatalog() {}

void DpCatalog::configure(Fw::FileNameString directories[DP_MAX_DIRECTORIES],

Check notice

Code scanning / CodeQL

No raw arrays in interfaces Note

Raw arrays should not be used in interfaces. A container class should be used instead.
@thomas-bc thomas-bc marked this pull request as ready for review August 4, 2025 22:56
@LeStarch LeStarch merged commit c69ff72 into nasa:devel Aug 4, 2025
49 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.

2 participants