contruct rules with source
add no-unused-variable rule
tests for unused imports