parametrized syntax checker

Scan the whole source tree when invoked without parameters, check
specified files when a list of files is passed in parameters.
Merge pull request #538 from xarses/syntax-check-parametrized

parametrized syntax checker