chr4-cookbooks / iptables-ng

Cookbook to maintain iptables rules and policies on different platforms, respecting the way the os handles these settings.
GNU General Public License v3.0
38 stars 33 forks source link

dev workflow update #49

Closed nathwill closed 9 years ago

nathwill commented 9 years ago
chr4 commented 9 years ago

This looks good. Can you migrate to the ruby-1.9 hash syntax, and fix other rubocop errors (guess %w() doesn't allow additional whitespaces?) Will merge then.

nathwill commented 9 years ago

@chr4 ok, i updated the cops that i was able to find on here using the linters included in the latest chefdk (via chef exec rake), or that travis turned up. i didn't see anything about whitespace around %w(), so i guessed at which ones you saw (rakefile?). lmk if there's others.

chr4 commented 9 years ago

Yeah I meant the two you fixed in 35ea05f. I thought that rubocop complains about those, not sure if it still does. Thanks! Merging.

chr4 commented 9 years ago

Out of interest: What's the advantage using rake as a wrapper around foodcritic/ rubocop?

nathwill commented 9 years ago

just convenient to have one command to run all of the linting/unit testing, and making it easier to remember how to check all of them (chef exec rake vs chef exec rubocop + chef exec foodcritic -f any . + chef exec rspec.