]> git.baikalelectronics.ru Git - kernel.git/commit
ktest: Adding editor hints to improve consistency
authorJohn 'Warthog9' Hawley (VMware) <warthog9@eaglescrag.net>
Tue, 20 Apr 2021 00:29:28 +0000 (17:29 -0700)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 3 May 2021 22:57:03 +0000 (18:57 -0400)
commit3abc2061c2b95f1c785f661a2d0c5a07b825e8ff
tree1cbbeb41588b452bf7ed30f3d4b99090d4b7bd28
parentbc67f071c47937971f7f66af5c2c2342ef6aadee
ktest: Adding editor hints to improve consistency

Emacs and Vi(m) have different styles of dealing with perl syntax
which can lead to slightly inconsistent indentation, and makes the
code slightly harder to read.  Emacs assumes a more perl recommended
standard of 4 spaces (1 column) or tab (two column) indentation.

Vi(m) tends to favor just normal spaces or tabs depending on what
was being used.

This gives the basic hinting to Emacs and Vim to do what is
expected to be basically consistent.

Emacs:
- Explicitly flip into perl mode, cperl would require
  more adjustments

Vi(m):
- Set softtabs=4 which will flip it over to doing
  indentation the way you would expect from Emacs

Signed-off-by: John 'Warthog9' Hawley (VMware) <warthog9@eaglescrag.net>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/testing/ktest/ktest.pl