Facebook/infer-linter Static Code Analysis

Source: Internet
Author: User

Linter analysis to find out the source of bugs caused by grammatical errors, typographical errors, or incorrect data types. Infer also supports such a simple analysis, just add a parameter-a checkers can command

Infer-a checkers-i--xcodebuild-target helloworldapp-configuration debug-sdk iphonesimulator

We have a linter check on iOS

58demacbook-pro:ios_hello wuxian$ infer-a checkers-i--xcodebuild-target helloworldapp-configuration debug-sdk Iphon Esimulator Build settings from command line:cc =/users/wuxian/downloads/infer-osx-v0.1.0/infer/infer/bin/. /lib/capture/clang Cplusplus =/users/wuxian/downloads/infer-osx-v0.1.0/infer/infer/bin/.  /lib/capture/clang++ Debug_information_format = ' dwarf ' LD =/usr/bin/true Ldplusplus =/usr/bin/true LIPO =/usr/bin/true Sdkroot = iphonesimulator8.2 = = = BUILD TARGET Helloworldapp of PROJECT Helloworldapp with Configurat ION Debug = = = Check Dependencies * * BUILD succeeded * * Starting analysis (infer version v0.1.0) analysis done 4 files Analyzed/users/wuxian/downloads/infer-osx-v0.1.0/infer/examples/ios_hello/helloworldapp/main.m:13:error: Checkers_dead_code Node not visited:209 58demacbook-pro:ios_hello wuxian$ infer-a checkers-i--Xcodebuild-target H Elloworldapp-configuration debug-sdk iphonesimulator Build settings from Command LINE:CC =/users/wuxian/downloads/infer-osx-v0.1.0/infer/infer/bin/. /lib/capture/clang Cplusplus =/users/wuxian/downloads/infer-osx-v0.1.0/infer/infer/bin/.  /lib/capture/clang++ Debug_information_format = ' dwarf ' LD =/usr/bin/true Ldplusplus =/usr/bin/true LIPO =/usr/bin/true Sdkroot = iphonesimulator8.2 = = = BUILD TARGET Helloworldapp of PROJECT Helloworldapp with Configurat ION Debug = = = Check Dependencies * * BUILD succeeded * * Starting analysis (infer version v0.1.0) analysis done 4 files Analyzed/users/wuxian/downloads/infer-osx-v0.1.0/infer/examples/ios_hello/helloworldapp/main.m:13:error: Checkers_dead_code Node not visited:209 58demacbook-pro:ios_hello wuxian$

The

Obvious questions are different from the previous one.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.