Skip to content

Commit 564411f

Browse files
authored
Merge pull request migtools#21 from migtools/MTA-2688
[WIP] Document the ability to run providers selectively during analysis
2 parents 03bdfa3 + 2431599 commit 564411f

File tree

4 files changed

+76
-0
lines changed

4 files changed

+76
-0
lines changed

docs/cli-guide/master.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,15 @@ include::topics/available-openrewrite-recipes.adoc[leveloffset=+4]
8080
// Access the Report
8181
include::topics/access-report.adoc[leveloffset=+2]
8282

83+
// Multi-language application analysis
84+
include::topics/mta-cli-analyze-multi-lang-apps.adoc[leveloffset=+2]
85+
86+
// Multi-language application analysis for the supported provider
87+
include::topics/mta-cli-analyze-selected-provider.adoc[leveloffset=+3]
88+
89+
// Multi-language application analysis for the unsupported provider
90+
include::topics/mta-cli-analyze-unsupported-provider.adoc[leveloffset=+3]
91+
8392
// Review the Reports
8493
include::topics/mta-review-reports.adoc[leveloffset=+1]
8594

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
:_newdoc-version: 2.18.3
2+
:_template-generated: 2024-07-30
3+
:_mod-docs-content-type: PROCEDURE
4+
5+
[id="mta-cli-analyze-multi-lang-apps_{context}"]
6+
= Analyzing multi-language applications with {CLIName}
7+
8+
You can run the application analysis on applications written in multiple languages. You can perform the analysis either of the following ways:
9+
10+
* Select the supported language provider to run the analysis for.
11+
* Override the existing supported language provider with your own unsupported language provider and run the analysis for this unsupported provider.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
:_newdoc-version: 2.18.3
2+
:_template-generated: 2024-07-25
3+
:_mod-docs-content-type: PROCEDURE
4+
5+
[id="selecting-language-providers-for-analysis_{context}"]
6+
= Analyzing a multi-language application for the selected supported language provider
7+
8+
When analyzing a multi-language application with {ProductFullName} {CLINameTitle}, you can explicitly set a supported language provider according to your application language to run the analysis for.
9+
10+
11+
.Prerequisites
12+
13+
* You are running the latest version of {ProductShortName} {CLINameTitle}.
14+
15+
16+
.Procedure
17+
18+
. List language providers supported for the analysis:
19+
+
20+
[source,terminal,subs="attributes+"]
21+
----
22+
$ mta-cli analyze --list-providers
23+
----
24+
25+
. Run the application analysis for the selected language provider:
26+
+
27+
[source,terminal,subs="attributes+"]
28+
----
29+
$ mta-cli analyze --input <_path_to_the_source_repository_> --output <_path_to_the_output_directory_> --provider <_language_provider_> --rules <_path_to_custom_rules_>
30+
----
31+
+
32+
Note that if you do not set the `--provider` option, the analysis might fail because it detects unsupported providers. The analysis will complete without `--provider` only if all discovered providers are supported.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
:_newdoc-version: 2.18.3
2+
:_template-generated: 2024-07-30
3+
:_mod-docs-content-type: PROCEDURE
4+
5+
[id="mta-cli-analyze-unsupported-provider_{context}"]
6+
= Analyzing a multi-language application for an unsupported language provider
7+
8+
When analyzing a multi-language application with {ProductFullName} {CLINameTitle}, you can run the analysis for an unsupported language provider. To do so, you must override an existing supported language provider with your own unsupported language provider by using the `--override-provider-settings` option.
9+
10+
IMPORTANT: You must create a configuration file for your unsupported language provider before overriding the supported provider.
11+
12+
13+
.Prerequisites
14+
15+
* You created a configuration file for your unsupported language provider.
16+
17+
.Procedure
18+
19+
* Override an existing supported language provider with your unsupported provider:
20+
+
21+
[source,terminal,subs="attributes+"]
22+
----
23+
$ mta-cli analyze --provider-override <path_to_configuration_file> --output=<path_to_the_output_directory> --rules <path_to_custom_rules>
24+
----

0 commit comments

Comments
 (0)