Browse Source

Moved rubocop cop 'Style/FileName' exclusion back to .rubocop.yml, since it will be ignored as comment in websocket-server.rb.

Thorsten Eckel 9 years ago
parent
commit
6decb755f5
2 changed files with 10 additions and 1 deletions
  1. 8 0
      .rubocop.yml
  2. 2 1
      script/websocket-server.rb

+ 8 - 0
.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:

+ 2 - 1
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'