Move declaration, run check earlier
Merge pull request #438 from Dmitry-Me/moveDeclarationReorderCheck

Move declaration, run check earlier