NOLINT setting settings defaults/minimums/maximums for magic numbers

This commit is contained in:
AdenKoperczak 2025-01-29 09:44:01 -05:00
parent c1aeefb0eb
commit 0a3913bdee
7 changed files with 24 additions and 1 deletions

View file

@ -50,6 +50,8 @@ public:
boost::to_lower(defaultPositioningPlugin);
boost::to_lower(defaultThemeValue);
// SetDefault, SetMinimum, and SetMaximum are descriptive
// NOLINTBEGIN(cppcoreguidelines-avoid-magic-numbers)
antiAliasingEnabled_.SetDefault(true);
clockFormat_.SetDefault(defaultClockFormatValue);
customStyleDrawLayer_.SetDefault(".*\\.annotations\\.points");
@ -100,6 +102,7 @@ public:
nmeaBaudRate_.SetMaximum(999999999);
radarSiteThreshold_.SetMinimum(-10000);
radarSiteThreshold_.SetMaximum(10000);
// NOLINTEND(cppcoreguidelines-avoid-magic-numbers)
customStyleDrawLayer_.SetTransform([](const std::string& value)
{ return boost::trim_copy(value); });