From b3d42fc7f3d8acacc369526f88e4b77fb20c7525 Mon Sep 17 00:00:00 2001 From: Evan Sosenko Date: Tue, 16 Feb 2016 18:32:57 -0800 Subject: [PATCH] Update rubocop cop style --- .rubocop.yml | 10 +--------- Guardfile | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 9dad94e..cfe6ae3 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -6,14 +6,6 @@ AllCops: - Rakefile - Thorfile -# This must be disabled for compatibility with knife-cookbook-doc. -Style/LeadingCommentSpace: - Enabled: false - -Style/RegexpLiteral: - Exclude: - - Guardfile - -Style/SingleSpaceBeforeFirstArg: +Style/SpaceBeforeFirstArg: Exclude: - metadata.rb diff --git a/Guardfile b/Guardfile index d839b65..5a9d08c 100644 --- a/Guardfile +++ b/Guardfile @@ -19,7 +19,7 @@ end group :lint do guard :rubocop do - watch(%r{.+\.rb$}) + watch(/.+\.rb/) watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) } end