Static analysis

Static analysis made with rubocop gem.
- [x] Add the gem and basic configuration
- [x] Fix most of the issues pointed by the tool
- [ ] Integrate on the rake process the static analysis