[Cores] Spring cleaning

This time I Cppcheck-ed the whole cores folder.