Skip to content

Conversation

@Grufoony
Copy link
Collaborator

No description provided.

@Grufoony Grufoony requested a review from sbaldu December 16, 2024 13:57
auto const& pStreet{m_graph.streetSet().at(streetId)};
auto const nAgents{pStreet->nAgents()};
if (nAgents == 0) {
return 0.;

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 15.5 rule Note

MISRA 15.5 rule
if (nAgents == 0) {
return 0.;
}
double speed{0.};

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 12.3 rule Note

MISRA 12.3 rule
if (nAgents == 0) {
return 0.;
}
double speed{0.};

Check warning

Code scanning / Cppcheck (reported by Codacy)

Local variable 'speed' shadows outer function Warning

Local variable 'speed' shadows outer function
speeds.push_back(streetMeanSpeed(streetId));
} else if (!above && (street->density(true) < threshold)) {
speeds.push_back(streetMeanSpeed(streetId));
}

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 15.7 rule Note

MISRA 15.7 rule
@sbaldu sbaldu merged commit 67a06ae into main Dec 18, 2024
25 checks passed
@sbaldu sbaldu deleted the implement_virtual branch December 18, 2024 15:09
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.

3 participants