Skip to main content

Your first code analysis

This article will walk you through your first code analysis with Qwiet AI by Harness. This process works with applications written using any language Qwiet AI by Harness supports.

Before you start

  1. Make sure that the machine on which you're running Qwiet AI by Harness meets the prerequisites for an optimal experience.
  2. Set up Qwiet AI by Harness.

Analyzing your code

Once you've set up your workstation to run Qwiet AI by Harness, you're ready to submit your code for analysis. To do so, run the following in the command line:

# Qwiet AI by Harness is capable of inferring from your code repository
# the language in which the code is written, as well as the
# application's name.
#
# If multiple languages are present, each individual language will be analyzed

sl analyze <path to code>

If no argument is given, the current working directory is used instead:

cd <path to code>
sl analyze

If no language flag is specified, Qwiet AI by Harness will decide the language(s) based off of the language(s) detected in most of the files (considering only supported languages). The automatic detection can be overridden with any of the language-specific flags.

You will see status updates regarding the analysis in the CLI; when your results are ready, you can view them using the Qwiet UI.

Advanced options

For information about language-specific features, please review the options available as part of sl analyze or the page appropriate for your application: