Disable clang-tidy clechs which create false positive in gtest

This commit is contained in:
Corentin Jabot 2021-09-11 09:42:53 +02:00
parent 2cbb9df80d
commit f385036bee
2 changed files with 4 additions and 4 deletions

View file

@ -1,2 +1,2 @@
Checks: 'modernize-*,-modernize-use-nodiscard,-modernize-use-trailing-return-type,cppcoreguidelines-*,bugprone-*,-cppcoreguidelines-non-private-member-variables-in-classes,-cppcoreguidelines-avoid-magic-numbers,-cppcoreguidelines-pro-bounds-*,-readability-convert-member-functions-to-static'
#WarningsAsErrors: '*'
Checks: 'modernize-*,-modernize-use-nodiscard,-modernize-use-trailing-return-type,cppcoreguidelines-*,bugprone-*,-cppcoreguidelines-non-private-member-variables-in-classes,-cppcoreguidelines-avoid-magic-numbers,-cppcoreguidelines-avoid-non-const-global-variables,-cppcoreguidelines-owning-memory,-cppcoreguidelines-pro-bounds-*,-readability-convert-member-functions-to-static'
WarningsAsErrors: '*'

View file

@ -20,8 +20,8 @@ Canvas::Canvas()
// Then project it on a scaled window - on some mac we get the
// scaling factor of the window to adjust the resolution
const auto scale = scaling_factor_for_window(window.getSystemHandle());
const auto width = (viewDimensions().width / 2) * scale;
const auto height = (viewDimensions().height / 2) * scale;
const auto width = (viewDimensions().width / 2.0) * scale;
const auto height = (viewDimensions().height / 2.2) * scale;
window.setSize(sf::Vector2u(unsigned(width), unsigned(height)));
maze_texture = loadTexture("maze.png");