Cleaning of garbages and warning of static code analysis.
Added static analysis rule file.