Commit Graph

31 Commits

Author SHA1 Message Date
pancake
e6f2cd0b2a
Remove trailing spaces (#19460)
$ git grep ' $' | grep -v ^test/ | cut -d : -f 1 | sort -u > /tmp/trailing
$ for a in `cat /tmp/trailing` ; do sed -i -e 's/ *$//' $a ; done
2021-12-02 17:39:59 +01:00
pancake
9ae01a3c97 Make sys/indent.sh usable system wide and support directories 2018-10-27 03:14:48 +02:00
pancake
dc96db9e51 Try clang-format when no uncrustify is found and reindent r_reg with sys/indent.sh 2018-10-16 00:17:44 +02:00
Riccardo Schirone
58ae11607a
Create script to apply style to diffs (#11261)
* restore tabs size to 8 chars
* fixes clang-format-diff for function declaration
* DEVELOPERS: explain pre-commit hook
* sys/pre-commit: do not consider unstaged changes
* sys/pre-commit: change doc
* create an example in doc
* suggest --no-verify
2018-09-26 10:49:16 +02:00
pancake
c021ba4e24 Support - as input for r2-indent 2017-03-17 03:48:41 +01:00
pancake
112bacafdf Fix #7000 - ELF file identified as BIOS and r2-indent 2017-03-12 11:44:20 +01:00
Anton Kochkov
d658720a77 Use system uncrustify too in indent.sh 2017-03-11 03:06:19 +08:00
pancake
82eb65563b Fixes for r2-indent
* Supports r2pm's uncrustify without having to r2pm -r
* Add r2-indent -a to run indent-whitelist.sh
* Add --fix option in whitelist script
2017-03-09 02:13:09 +01:00
pancake
e2b9363ad8 Fix another r2-indent spacy issue 2017-03-08 23:16:22 +01:00
pancake
0aff2ab8ca Update r2-indent rules 2017-02-27 00:40:25 +01:00
pancake
e70ac6f16b Do not rm files when indenting if there are syntax errors 2017-02-23 18:01:28 +01:00
pancake
0ae4a5c3e8 More r2-indent fixes. and reindent a bunch of files 2017-02-20 02:54:16 +01:00
pancake
4bbc73a0e2 Fix #6818 - json indent ~{} honors scr.color
- Cannot configure the color palette
2017-02-20 02:32:58 +01:00
pancake
29311ec67e Install sys/indent.sh as r2-indent. requires uncrustify and perl 2017-02-13 00:56:51 +01:00
pancake
0779091fc1 Allow to run sys/indent.sh from ANY directory 2017-02-13 00:51:37 +01:00
pancake
93eb47ccac Update SDB fixing stack exhaustion in merge sort and enhance indentation scripts 2017-02-12 22:44:13 +01:00
pancake
219f0e6db6 Add support for uncrustify in sys/indent.sh (still not perfect) 2017-02-10 18:04:30 +01:00
zonkzonk
56366df728 Removing path in shell redirections 2017-01-31 22:13:32 +01:00
Hamish Coleman
afed79c033 Minor arc + arcompact cleanups and whitespace, ending with anal_arc fully indented (#4937) 2016-05-18 10:02:35 +02:00
pancake
92c1631a06 More indent fixes 2015-12-09 00:41:44 +01:00
pancake
cfb03d3772 More indentation fixes 2015-12-09 00:27:31 +01:00
pancake
a4fc08b401 More auto-indentation enhancements 2015-12-08 23:55:23 +01:00
pancake
b5e093fc45 Indent io/io.c and fix an issue in the .sh 2015-12-08 22:35:39 +01:00
pancake
991c39a601 More whitelisted auto-indented files 2015-12-08 13:24:21 +01:00
pancake
33e2ad8969 Fix indent portability issues with gnu sed 2015-12-08 12:45:00 +01:00
pancake
d24d069ade Initial work on automatic indent whitelisting 2015-12-08 12:55:29 +01:00
pancake
cffee8748f Add indent.sh helper script 2015-12-08 11:25:12 +01:00
Jeffrey Crowell
9217723b3d more shellcheck 2015-06-16 23:47:36 -04:00
Maijin
6aefa441b1 Fix shellcheck problem in scripts 2015-04-29 10:46:22 +02:00
Maijin
3b26388769 Fix all shellcheck errors 2015-04-17 21:56:01 +02:00
pancake
6ba0214a73 Added initial uncrustify configuration file (still unfinished) 2014-03-10 16:55:37 +01:00