RubyMine 7.0.1 Web Help

An inspection profile defines the types of problems to be sought for, i.e. which code inspections are enabled/disabled and the severity of these inspections. Profiles are configurable in the Inspections settings page.

To set the current inspection profile (the one that is used for the on-the-fly code analysis in the editor), simply select it in the Inspections settings page and apply changes. When you perform code analysis or execute a single inspection, you can specify which profile to use for each run.

RubyMine allows you to customize the existing inspection profiles (including default profiles), and create new ones. You can also share, import and export inspection profiles.

In this section:

To customize a profile
  1. In the inspection settings, select the profile to be changed.

    select_profile

    Note that the default profiles are also editable.

  2. If necessary, you can change the applicability of the profile (current project of IDE) and, consequently, its location with the Share profile check box (selected means current project) .
  3. Customize the desired inspections: enable or disable it, change its severity and the other options, which can be different for the various inspections.

    Note that the selectors of severity and scopes, and the options section (if any) are only available for the enabled inspections.

  4. To apply an inspection to a restricted set of files, associate it with the corresponding scopes.

    By default, all inspections apply to all the sources of the current project.

  5. Apply changes.
To create a new profile
  1. In the inspection settings, click Add.
  2. In the dialog box that opens, type the name of the new profile.
  3. Apply changes. The new profile is created as the copy of the Default profile.
To create a copy of an existing profile
  1. In the inspection settings, select the profile that you want to copy.
  2. Click Copy.
  3. In the dialog box that opens, type the name of the new profile.
  4. Apply changes. The new profile is created as the copy of the currently selected profile.
To delete a profile
  1. In the inspection settings, select the profile to be deleted from the list of profiles.
  2. Click Delete.
  3. Apply changes.
To import a profile
  1. In the inspection settings, click Import.
  2. In the Select Path dialog box, locate the desired xml file, and click OK.
  3. Apply changes.
To export a profile
  1. In the inspection settings, select the profile that you want to export.
  2. Click Export.
  3. In the Select Path dialog box, locate the desired directory, where the xml file of the current inspection profile will be saved, and click OK.
  4. Apply changes.

See Also

Concepts:

Procedures:

Web Resources: