add rule and test
fix platform version for windows
Merge pull request #425 from mimmi20/isue-424

Fixes #424