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'