ocstyleObjective-C 樣式檢查器
ocstyle 是一個(gè)用 Python 開發(fā)的 Objective-C 樣式檢查器。例如你有一個(gè)源碼文件 test.m:
+(void) someMessage:(NSString*)subdomain {
NSString *ShouldStartLowerCase;
// ...
} 使用 ocstyle 檢查的結(jié)果是:
$ ocstyle test.m test.m ERROR: 1:1 [1] - MissingSpace - Expected 1, got 0 ERROR: 1:8 [8] - ExtraSpace - Did not expect ' ' here ERROR: 1:29 [29] - MissingSpace - Expected 1, got 0 ERROR: 1:41 [41] - MissingNewline - Should have newline after ; ERROR: 1:41 [41] - MissingSemicolon - Expected a semicolon ERROR: 2:35 [77] - BadLocalVariableName - Local variable must start with a lower case letter
評(píng)論
圖片
表情
