Code beautifying.

This commit is contained in:
Martin Edenhofer 2013-06-13 09:01:06 +02:00
parent a672b0a692
commit 79bebc2d3f
7 changed files with 66 additions and 56 deletions

View file

@ -1,2 +1,4 @@
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
module ApplicationHelper
end

View file

@ -1,2 +1,4 @@
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
module PostsHelper
end

View file

@ -27,7 +27,7 @@ module RBeautify
# user-customizable values
RBeautify::TabStr = " "
RBeautify::TabSize = 3
RBeautify::TabSize = 2
# indent regexp tests
@ -35,6 +35,7 @@ module RBeautify
/^module\b/,
/^class\b/,
/^if\b/,
/[A-z]\($/,
/(=\s*|^)until\b/,
/(=\s*|^)for\b/,
/^unless\b/,
@ -59,6 +60,9 @@ module RBeautify
/^rescue\b/,
/^ensure\b/,
/^elsif\b/,
/^\)$/,
/^\);$/,
/^\)\./,
/^end\b/,
/^else\b/,
/\bwhen\b/,

View file

@ -1,4 +1,6 @@
#!/usr/bin/env ruby
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
$LOAD_PATH << './lib'
require 'rubygems'

View file

@ -44,9 +44,7 @@ def checkForHeader(fileName)
end
#folder array
#folder = ['app/controllers/','app/models/', 'app/helpers/', 'app/mailers/']
#folder = ['app/controllers/', 'script']
folder = ['script/']
folder = ['app/controllers/', 'app/models/', 'app/helpers/', 'app/mailers/' ]
folder.each do |folder|
puts 'Working on folder' + folder.to_s

View file

@ -1,4 +1,6 @@
#!/usr/bin/env ruby
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
$LOAD_PATH << './lib'
require 'rubygems'