[en] You can use the Acrolinx Command Line Interface to check content from editors without their own integration. Here, we'll run through how to check content in Android Studio.
Warnung
[en] The following use case only an example. We don’t recommend that you follow it step by step, especially if you want to use it in a different environment. For more information about CLI use cases, contact your Acrolinx consultant.
[en] Before you can run a check, you'll need to add the CLI to Android Studio. The best way to do this is to add it as an external tool.
[en] To add the CLI to Android Studio, do the following:
-
[en] In Android Studio, go to File > Settings.
-
[en] Navigate to Tools and expand it.
-
[en] Click External Tools to open the Settings section.
-
[en] In the Settings section, click the Add button in the top-left corner of the page to open the Edit Tool window.
-
[en] Enter the following settings in the corresponding sections in the Edit Tool window:
Name: Acrolinx CLI Program: PATH_TO_YOUR_CLI Arguments: check -a YOUR_ACROLINX_URL --exit-code --compile-style-output -f $FilePath$ -t YOUR_API_TOKEN Advanced Options: Check box next to "Open Console for tool output", and make sure to check the boxes next to "Make console active on message in stdout" and "Make console active on message in stderr" Output filters: $FILE_PATH$:$LINE$:$COLUMN$:.*
-
[en] Click OK.
-
[en] Navigate to Tools > External Tools and confirm that you see Acrolinx CLI listed.
Tipp
[en] Did you know that you can follow these steps to add the CLI to any Eclipse-based editor?
[en] Now that you've added the CLI to Android Studio as an external tool, let's try it out.
[en] To run a check with the CLI in Android Studio, do the following:
-
[en] In Android Studio, navigate to Tools and expand it.
-
[en] Click External Tools > Acrolinx CLI to run a check.
Tipp
[en] You can also access External Tools via right click in Source mode.
-
[en] Once your check is complete, the results will appear in the console at the bottom of the page.
-
[en] Click a link in the console to jump to the corresponding issue in the source.