際際滷

際際滷Share a Scribd company logo
OCLint
 丼仂 舒从仂亠 舒亳亠从亳亶 舒仆舒仍亳亰舒仂 从仂亟舒
 舒从亳仄 仂弍舒亰仂仄 舒弍仂舒ム 舒仆舒仍亳亰舒仂 从仂亟舒
 Clang static analyzer vs OCLint
 弌仍从亳
丼仂 舒从仂亠 舒亳亠从亳亶
舒仆舒仍亳亰舒仂 从仂亟舒?
舒从亳仄 仂弍舒亰仂仄 舒弍仂舒亠
舒仆舒仍亳亰舒仂 从仂亟舒?
while b != 0
if a > b
a = a - b
else
b = b - a
return a
while b != 0
if a > b
a = a - b
else
b = b - a
return a
while b != 0
if a > b
a = a - b
else
b = b - a
return a
while b != 0
if a > b
a = a - b
else
b = b - a
return a
while b != 0
if a > b
a = a - b
else
b = b - a
return a
while b != 0
if a > b
a = a - b
else
b = b - a
return a
while b != 0
if a > b
a = a - b
else
b = b - a
return a
while b != 0
if a > b
a = a - b
else
b = b - a
return a
while b != 0
if a > b
a = a - b
else
b = b - a
return a
while b != 0
if a > b
a = a - b
else
b = b - a
return a
while b != 0
if a > b
a = a - b
else
b = b - a
return a
while b != 0
if a > b
a = a - b
else
b = b - a
return a
while b != 0
if a > b
a = a - b
else
b = b - a
return a
while b != 0
if a > b
a = a - b
else
b = b - a
return a
RDSDataSource: OCLint
Clang static analyzer
vs
OCLint?
Clang static analyzer
 仗舒于从舒 仂仂弍亠仆亳 仆亠
仗仂亳仆亳亳舒仍亳亰亳仂于舒仆仆仂仄 仂弍亠从
 仗仂仍亰仂于舒仆亳亠 仆亠 仗仂亳仆亳亳舒仍亳亰亳仂于舒仆仆
仗亠亠仄亠仆仆
 亠仍亠仆亳亠 仆舒 仆仂仍
 亠仂亟, 于 从仂仂 仆亠 于亰于舒仆 super 仄亠仂亟
 亠 亳仗仂仍亰亠仄亠 ivars
OCLint
 亠 if/else, do/while 仂仗亠舒仂
 仍亳仆仆亠 仄亠仂亟
 仆于亠亳仂于舒仆仆舒 仍仂亞亳从舒
 Pointer type property  assign 舒亳弍仂仄
 Mutable object property  strong 舒亳弍仂仄
亠亳仄亠于舒 OCLint
 仂亰仄仂亢仆仂 仗亳舒 于仂亳 仗舒于亳仍舒
 仂亟亟亠亢从舒 仆亠从仂仍从亳 仂仄舒仂于 仂亠仂于
 仂亰仄仂亢仆仂 仂从仍ム亠仆亳/于从仍ム亠仆亳 仗舒于亳仍
 仆舒仍亳亰 仂亟亠仍仆 舒亶仍仂于
 仂亟亠 亳从仍仂仄舒亳亠从仂亶 仍仂亢仆仂亳 仗仂亠从舒
亳仆亳仗 舒弍仂
OCLint?
RDSDataSource: OCLint
RDSDataSource: OCLint
RDSDataSource: OCLint
丕亳仍亳 亟仍
舒弍仂  OCLint
 xctool/xcpretty
 xcodebuild + oclint-xcodebuild
 oclint/oclint-json-compilation-database
 Travis, Jenkins, fastlane
 xctool/xcpretty
 xcodebuild + oclint-xcodebuild
 oclint/oclint-json-compilation-database
 Travis, Jenkins, fastlane
 xctool/xcpretty
 xcodebuild + oclint-xcodebuild
 oclint/oclint-json-compilation-database
 Travis, Jenkins, fastlane
 xctool/xcpretty
 xcodebuild + oclint-xcodebuild
 oclint/oclint-json-compilation-database
 Travis, Jenkins, fastlane
丐亳仗 仗舒于亳仍
 Generic
 Source Code Reader
 AST Visitor
 AST Matcher
弌仍从亳
 oclint.org
 http://mgrebenets.github.io/mobile%20ci/
2015/02/08/oclint
 https://codeascraft.com/2014/01/15/static-
analysis-with-oclint/
 https://gavrix.wordpress.com/2013/02/28/
integrating-oclint-in-xcode/

More Related Content

RDSDataSource: OCLint