Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #76 from datasift/feature/rubocop-fixes-octal-numbers
Browse files Browse the repository at this point in the history
rubocop fixes
  • Loading branch information
quipo committed Jun 14, 2017
2 parents 4726431 + 88f75d2 commit 237f253
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 6 deletions.
19 changes: 19 additions & 0 deletions chef/.rubocop.yml
@@ -1,4 +1,23 @@
---
Metrics/LineLength:
Max: 140

# This is disabled until the version of Rubocop in use supports ExcludedMethods,
# though still may not be very useful on Chef code.
Metrics/BlockLength:
Enabled: false

# Ruby 3.x will introduce frozen strings as the default, and uses a magic
# comment to enabled this behaviour on Ruby 2.x.
# https://bugs.ruby-lang.org/issues/8976
Style/FrozenStringLiteralComment:
Enabled: false

# This is broken in rubocop 0.46.0.
# https://github.com/bbatsov/rubocop/issues/3709
Style/GuardClause:
Enabled: false

Style/Encoding:
Enabled: false

Expand Down
2 changes: 1 addition & 1 deletion chef/cookbooks/datasift-stats/recipes/grafana.rb
Expand Up @@ -17,7 +17,7 @@
source 'grafana.ini.erb'
owner 'grafana'
group 'grafana'
mode 0644
mode '0644'
end

env = { 'HOME' => '/usr/share/grafana' }
Expand Down
4 changes: 2 additions & 2 deletions chef/cookbooks/datasift-stats/recipes/statsd.rb
Expand Up @@ -18,14 +18,14 @@
directory node['statsd']['config_dir'] do
owner node['statsd']['user']
group node['statsd']['group']
mode 0755
mode '0755'
end

template "#{node['statsd']['config_dir']}/config.js" do
source 'config.js.erb'
owner node['statsd']['user']
group node['statsd']['group']
mode 0644
mode '0644'

config_hash = {
graphitePort: node['statsd']['graphite_port'],
Expand Down
2 changes: 1 addition & 1 deletion chef/cookbooks/webapp/recipes/default.rb
Expand Up @@ -13,7 +13,7 @@
template '/etc/nginx/nginx_datasift.conf' do
user 'root'
group 'root'
mode 0644
mode '0644'
source 'nginx.conf.erb'
end

Expand Down
3 changes: 1 addition & 2 deletions chef/test/integration/default/serverspec/default_spec.rb
Expand Up @@ -82,8 +82,7 @@

describe file('/opt/kafka/config/server.properties') do
its(:content) do
should match( \
/kafka.metrics.reporters=com.airbnb.kafka.KafkaStatsdMetricsReporter/)
should match(/kafka.metrics.reporters=com.airbnb.kafka.KafkaStatsdMetricsReporter/)
end
its(:content) do
should match(/external.kafka.statsd.reporter.enabled=true/)
Expand Down

0 comments on commit 237f253

Please sign in to comment.