add rule and test, reformat json file
Merge pull request #250 from mimmi20/issue-249

Fixes #249