aboutsummaryrefslogtreecommitdiffstats
path: root/.jshintrc
blob: d34c42da55b41880e4b704196995c11251e42d16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
	"boss": true,
	"curly": true,
	"eqeqeq": true,
	"eqnull": true,
	"expr": true,
	"immed": true,
	"noarg": true,
	"onevar": true,
	"quotmark": "double",
	"smarttabs": true,
	"trailing": true,
	"undef": true,
	"unused": true,

	"node": true
}
} /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#!/bin/sh 

for d in src src/libserver src/client src/libmime src/libutil src/lua src/classifiers src/tokenizers src/plugins ; do
	file_list=`find ${d} -maxdepth 1 -name "*.c" -or -name "*.h" -type f`
	for file2indent in $file_list
	do 
		echo "Indenting file $file2indent"
		uncrustify -f "$file2indent" -c "./uncrustify.cfg" -o indentoutput.tmp
		mv indentoutput.tmp "$file2indent"
	done
done