facebook/infer

Capture only the files needed for the analysis (reactive capture)

Open

#656 aberto em 25 de mai. de 2017

Ver no GitHub
 (5 comments) (0 reactions) (0 assignees)HTML (1.688 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (12.410 stars)
Métricas de merge de PR
 (Mesclagem média 2d 7h) (9 fundiu PRs em 30d)

Description

Separate analyze and capture phase,i wonder to know how to reduce the capture phase time at iOS project ,i just want to analyze the changed files,but in capture phase Infer must run the translation file action,it translate the whole project files,can i just translate the changed files that i want to analyze?

below is what my command step 1.

infer capture -- xcodebuild -workspace demo.xcworkspace -scheme Debug -sdk iphonesimulator10.1 -configuration Debug build

step 2.

infer --fail-on-issue -a infer --changed-files-index ./index.txt -- analyze

In step 1 waste about 25 mins translate about 1900 files. Assuming that I just modified a file, but wasted 25 minutes during the capture phase, this situation was obviously unreasonable.

Guia do colaborador