dpn-admin / dpn-bagit

A rough, pure-ruby implementation of the DPN BagIt spec.
MIT License
1 stars 1 forks source link

Rubocop #1

Open dazza-codes opened 8 years ago

dazza-codes commented 8 years ago

Adopting style recommendations from https://github.com/sul-dlss/DeveloperPlaybook/tree/master/style.

Applied the auto-correct and checked that specs were passing before and after the corrections.

malakai97 commented 8 years ago

Can we configure this to not suppress explicit return statements? These provide useful information.

How does this fit into the workflow?

dazza-codes commented 8 years ago

WRT redundant return

bundle exec rubocop will issue warnings about conflicts with ruby conventions, it is usually simple code style, but it can also help to detect logical and design flaws. It can take a while to get familiar with the conventions, they are often helpful. The aim is to use this as a tool to provide consistent ruby code using the guidelines of the ruby community.