Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c0f04a commit 6b2d99bCopy full SHA for 6b2d99b
1 file changed
csharp/fix-whitespaces.sh
@@ -0,0 +1,23 @@
1
+BASEDIR=$(dirname "$0")
2
+
3
+cat > "$BASEDIR/reformat.vim" <<"EOF"
4
+:set ff=unix ts=2 et
5
+:retab!
6
+:%s/\r//g
7
+:%s/ \+$//
8
+:wq
9
+EOF
10
11
+find "$BASEDIR" \( -name "*.ql" -or -name "*.qll" -or -name "*.csv" \) -exec vim -u /dev/null -s reformat.vim {} \;
12
13
+cat > reformat.vim <<"EOF"
14
+:set ff=unix ts=4 et
15
16
17
18
19
20
21
+find "$BASEDIR" \( -name "*.cs" \) -exec vim -u /dev/null -s reformat.vim {} \;
22
23
+rm "$BASEDIR/reformat.vim"
0 commit comments