17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 02:49:19 +02:00

Add nosonar tags

This commit is contained in:
2026-10-09 18:40:31 +02:00
parent 1c28809dd7
commit 9935257783
12 changed files with 19 additions and 19 deletions

View File

@@ -569,7 +569,7 @@ int eu07_application::run()
if (m_network && m_network->client)
{
// verify sync
if (sync != slave_sync)
if (sync != slave_sync) // NOSONAR
{
WriteLog("net: desync! calculated: " + std::to_string(sync) + ", received: " + std::to_string(slave_sync), logtype::net);

View File

@@ -704,7 +704,7 @@ void driver_mode::update_camera(double const Deltatime)
auto const lr{m_input.keyboard.key(GLFW_KEY_LEFT) != GLFW_RELEASE};
// Camera.Yaw powinno być wyzerowane, aby po powrocie patrzeć do przodu
Camera.Pos = controlled->GetPosition() + simulation::Train->MirrorPosition(lr); // pozycja lusterka
Camera.Pos = controlled->GetPosition() + simulation::Train->MirrorPosition(lr); // pozycja lusterka // NOSONAR
Camera.Angle.y = 0; // odchylenie na bok od Camera.LookAt
if (simulation::Train->Occupied()->CabOccupied == 0)
{

View File

@@ -344,7 +344,7 @@ void scan_triangle(corridor const &Space, glm::dvec3 const &A, glm::dvec3 const
{
Hit.depth = found.depth;
Hit.point = point;
Hit.track = found.span->track;
Hit.track = found.span->track; // NOSONAR
Hit.path = found.span->path;
Hit.direction = found.direction;
}

View File

@@ -468,7 +468,7 @@ class event_links
for (auto *child : multi->children())
{
auto const setter{dynamic_cast<updatevalues_event const *>(child) != nullptr || dynamic_cast<copyvalues_event const *>(child) != nullptr};
for (auto *target : child->target_nodes())
for (auto *target : child->target_nodes()) // NOSONAR
{
if (models.count(target) > 0 && false == contains(shown, static_cast<scene::basic_node const *>(target)))
shown.push_back(target);