core, fix some warnings and remove magic-numbers clang-tidy check

Authored by jjazeix on Jul 14 2019, 4:55 PM.