From 6decb755f5e56cfaefa48a5c1dcd58a7121ba859 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Fri, 8 May 2015 15:58:28 +0200 Subject: [PATCH] Moved rubocop cop 'Style/FileName' exclusion back to .rubocop.yml, since it will be ignored as comment in websocket-server.rb. --- .rubocop.yml | 8 ++++++++ script/websocket-server.rb | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.rubocop.yml b/.rubocop.yml index 8c8a4d7f4..982ce1c25 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -154,6 +154,14 @@ Style/ClassAndModuleChildren: Description: 'Checks style of children classes and modules.' Enabled: false +Style/FileName: + Description: 'Use snake_case for source file names.' + StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files' + Enabled: true + Exclude: + - 'script/websocket-server.rb' + + # 2.0 Metrics/PerceivedComplexity: diff --git a/script/websocket-server.rb b/script/websocket-server.rb index b4b29f331..7b6c52cec 100755 --- a/script/websocket-server.rb +++ b/script/websocket-server.rb @@ -1,6 +1,7 @@ #!/usr/bin/env ruby # Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/ -# rubocop:disable Style/FileName, Rails/TimeZone +# rubocop:disable Rails/TimeZone + $LOAD_PATH << './lib' require 'rubygems' require 'eventmachine'