1. 18 12月, 2012 11 次提交
  2. 09 11月, 2012 1 次提交
  3. 06 10月, 2012 4 次提交
  4. 22 8月, 2012 1 次提交
  5. 31 7月, 2012 5 次提交
  6. 01 6月, 2012 2 次提交
  7. 17 4月, 2012 1 次提交
  8. 24 3月, 2012 12 次提交
  9. 08 2月, 2012 1 次提交
    • J
      checkpatch: Warn on code with 6+ tab indentation · 8eef05dd
      Joe Perches 提交于
      Overly indented code should be refactored.
      
      Suggest refactoring excessive indentation of of
      if/else/for/do/while/switch statements.
      
      For example:
      
      $ cat t.c
      #include <stdio.h>
      #include <stdlib.h>
      
      int main(int argc, char **argv)
      {
      
      	if (1)
      		if (2)
      			if (3)
      				if (4)
      					if (5)
      						if (6)
      							if (7)
      								if (8)
      									;
      	return 0;
      }
      
      $ ./scripts/checkpatch.pl -f t.c
      WARNING: Too many leading tabs - consider code refactoring
      #12: FILE: t.c:12:
      +						if (6)
      
      WARNING: Too many leading tabs - consider code refactoring
      #13: FILE: t.c:13:
      +							if (7)
      
      WARNING: Too many leading tabs - consider code refactoring
      #14: FILE: t.c:14:
      +								if (8)
      
      total: 0 errors, 3 warnings, 17 lines checked
      
      t.c has style problems, please review.
      
      If any of these errors are false positives, please report
      them to the maintainer, see CHECKPATCH in MAINTAINERS.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      8eef05dd
  10. 11 1月, 2012 2 次提交