Rubocop

Sorry for the very long commit.
After the short discussion on the issue #251, it can be interesting to integrate Rubocop.