Skip to content

Commit

Permalink
Fix #13012: Duplicated misra warnings from misra.py and premiumaddon …
Browse files Browse the repository at this point in the history
…are not filtered properly in windows
  • Loading branch information
swasti16 committed Aug 16, 2024
1 parent 4f41804 commit a0d3551
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,8 @@ void Settings::setMisraRuleTexts(const std::string& data)
std::string text = line.substr(pos + 1);
if (id.empty() || text.empty())
continue;
if (text[text.size() -1] == '\r')
text.erase(text.size() -1);
mMisraRuleTexts[id] = std::move(text);
}
}
Expand Down

0 comments on commit a0d3551

Please sign in to comment.