-
Notifications
You must be signed in to change notification settings - Fork 4
Increase map access security #246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| } 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
| 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
| 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
| 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
| } 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
| } 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
| 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
No description provided.