Conversation
| } | ||
| DataBuffer::DataBuffer(const DataBuffer& other) : Fw::SerializeBufferBase() { | ||
| Fw::SerializeStatus stat = Fw::SerializeBufferBase::setBuff(other.m_data, other.getBuffLength()); | ||
| FW_ASSERT(Fw::FW_SERIALIZE_OK == stat, static_cast<FwAssertArgType>(stat)); |
Check warning
Code scanning / CppCheck
Member variable 'DataBuffer::m_data' is not assigned in the copy constructor. Should it be copied? Warning
| } | ||
|
|
||
| SocketIpStatus IpSocket::configure(const char* const hostname, const U16 port, const U32 timeout_seconds, const U32 timeout_microseconds) { | ||
| SocketIpStatus IpSocket::configure(const char* const hostname, |
Check notice
Code scanning / CodeQL
Long function without assertion Note
| public: | ||
| IpSocket(); | ||
| virtual ~IpSocket(){}; | ||
| virtual ~IpSocket() {}; |
Check notice
Code scanning / CodeQL
More than one statement per line Note
| SocketComponentHelper::~SocketComponentHelper() {} | ||
|
|
||
| void SocketComponentHelper::start(const Fw::StringBase &name, | ||
| void SocketComponentHelper::start(const Fw::StringBase& name, |
Check notice
Code scanning / CodeQL
Long function without assertion Note
| // Construction, initialization, and destruction | ||
| // ---------------------------------------------------------------------- | ||
|
|
||
| LinuxI2cDriver ::LinuxI2cDriver(const char* const compName) : LinuxI2cDriverComponentBase(compName), m_fd(-1) {} |
Check notice
Code scanning / CodeQL
More than one statement per line Note
|
|
||
| // Note this port handler is guarded, so we can make the ioctl call | ||
|
|
||
| Drv::I2cStatus LinuxI2cDriver ::write_handler(const FwIndexType portNum, U32 addr, Fw::Buffer& serBuffer) { |
Check notice
Code scanning / CodeQL
Long function without assertion Note
|
|
||
| DataBuffer::DataBuffer() { | ||
| } | ||
| DataBuffer::DataBuffer() {} |
Check notice
Code scanning / CodeQL
More than one statement per line Note
|
|
||
| DataBuffer::~DataBuffer() { | ||
| } | ||
| DataBuffer::~DataBuffer() {} |
Check notice
Code scanning / CodeQL
More than one statement per line Note
|
|
||
| TcpClientComponentImpl::TcpClientComponentImpl(const char* const compName) | ||
| : TcpClientComponentBase(compName) {} | ||
| TcpClientComponentImpl::TcpClientComponentImpl(const char* const compName) : TcpClientComponentBase(compName) {} |
Check notice
Code scanning / CodeQL
More than one statement per line Note
|
|
||
| TcpServerComponentImpl::TcpServerComponentImpl(const char* const compName) | ||
| : TcpServerComponentBase(compName) {} | ||
| TcpServerComponentImpl::TcpServerComponentImpl(const char* const compName) : TcpServerComponentBase(compName) {} |
Check notice
Code scanning / CodeQL
More than one statement per line Note
|
|
||
| UdpComponentImpl::UdpComponentImpl(const char* const compName) | ||
| : UdpComponentBase(compName) {} | ||
| UdpComponentImpl::UdpComponentImpl(const char* const compName) : UdpComponentBase(compName) {} |
Check notice
Code scanning / CodeQL
More than one statement per line Note
There was a problem hiding this comment.
CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
Change Description
Format
Drv/module and add to CIIn progress of #1984
Review Recommendations
Use this link to not show whitespace diffs https://github.com/nasa/fprime/pull/3960/files?w=1