File tree Expand file tree Collapse file tree 4 files changed +36
-0
lines changed
Expand file tree Collapse file tree 4 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ module BaseConfiguration = NewCommandStartup.BaseConfiguration
99module Analyze = AnalyzeCommand
1010module Check = CheckCommand
1111module Infer = InferCommand
12+ module NewAnalyze = NewAnalyzeCommand
1213module NewCheck = NewCheckCommand
1314module NewInfer = NewInferCommand
1415module NewServer = NewServerCommand
Original file line number Diff line number Diff line change 1+ (*
2+ * Copyright (c) Facebook, Inc. and its affiliates.
3+ *
4+ * This source code is licensed under the MIT license found in the
5+ * LICENSE file in the root directory of this source tree.
6+ *)
7+
8+ open Core
9+
10+ (* Analyze command uses the same exit code scheme as check command. *)
11+ module ExitStatus = NewCheckCommand. ExitStatus
12+
13+ let run_analyze _configuration_file =
14+ Log. warning " Coming soon..." ;
15+ let exit_status = ExitStatus. Ok in
16+ Statistics. flush () ;
17+ exit (ExitStatus. exit_code exit_status)
18+
19+
20+ let command =
21+ let filename_argument = Command.Param. (anon (" filename" %: Filename. arg_type)) in
22+ Command. basic
23+ ~summary: " Runs taint analysis"
24+ (Command.Param. map filename_argument ~f: (fun filename () -> run_analyze filename))
Original file line number Diff line number Diff line change 1+ (*
2+ * Copyright (c) Facebook, Inc. and its affiliates.
3+ *
4+ * This source code is licensed under the MIT license found in the
5+ * LICENSE file in the root directory of this source tree.
6+ *)
7+
8+ open Core
9+
10+ val command : Command .t
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ let commands =
1414 " check" , Check. check_command;
1515 " rage" , Rage. command;
1616 " infer" , Infer. infer_command;
17+ " newanalyze" , NewAnalyze. command;
1718 " newcheck" , NewCheck. command;
1819 " newinfer" , NewInfer. command;
1920 " newserver" , NewServer. command;
You can’t perform that action at this time.
0 commit comments