Skip to content

Conversation

@Grufoony
Copy link
Collaborator

No description provided.

void RoadDynamics<delay_t>::addAgentsUniformly(Size nAgents,
std::optional<Id> optItineraryId) {
if (this->m_itineraries.empty()) {
if (this->itineraries().empty()) {

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 14.4 rule Note

MISRA 14.4 rule
} else if ((nextNodeId != destinationID)) {
std::cerr << std::format(
"\033[38;2;130;30;180mWARNING: No path found from node {} "
"\033[38;2;130;30;180mWARNING ({}:{}): No "

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 4.1 rule Note

MISRA 4.1 rule
for (const auto& street : m_streets) {
const auto& node1{m_nodes[street.second->nodePair().first]};
const auto& node2{m_nodes[street.second->nodePair().second]};
for (auto const& street : m_streets) {

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 10.4 rule Note

MISRA 10.4 rule
m_nodes[nodeId]->setTransportCapacity(value == 0 ? 1 : value);
if (m_nodes[nodeId]->capacity() == 0) {
m_nodes[nodeId]->setCapacity(value);
pNode->setTransportCapacity(value == 0 ? 1 : value);

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 12.1 rule Note

MISRA 12.1 rule
it->second->setCoords(std::make_pair(lat, lon));
} else {
std::cerr << std::format(
"\033[38;2;130;30;180mWARNING ({}:{}): Node with id {} not "

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 4.1 rule Note

MISRA 4.1 rule
} else {
std::cerr << std::format(
"\033[38;2;130;30;180mWARNING ({}:{}): Node with id {} not "
"found.\033[0m",

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 4.1 rule Note

MISRA 4.1 rule
} else {
std::cerr << std::format("WARNING: Node with id {} not found.", nodeId)
std::cerr << std::format(
"\033[38;2;130;30;180mWARNING ({}:{}): Node with id {} not "

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 4.1 rule Note

MISRA 4.1 rule
std::cerr << std::format("WARNING: Node with id {} not found.", nodeId)
std::cerr << std::format(
"\033[38;2;130;30;180mWARNING ({}:{}): Node with id {} not "
"found.\033[0m",

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 4.1 rule Note

MISRA 4.1 rule
@Grufoony Grufoony merged commit 0c9f992 into main Jan 23, 2025
25 checks passed
@Grufoony Grufoony deleted the security branch January 23, 2025 13:58
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