Scope Language Syntax Reference
The scopes language is used in specifying project scopes involved in the various kinds of analysis.
Sets of files
- Single file is defined by a file name, i.e.
- Set of all files in a directory, not recursing into subdirectories, is defined by an asterisk after slash, for example:
- Set of all files in a directory including contents of subdirectories, is defined by an asterisk after double slash, for example
The scope language allows you to use common logical operators:
&& for AND || for OR ! for NOT
Besides that, the parentheses can be used to join the logical operators into groups. For example, the following scope
implies either <a> and <c>, or <b> and <c>.
Scopes are defined in the Scopes dialog box in the following ways:
- With the pointing device
- Specify file masks in the Pattern text box, or click and type the pattern in the editor.
- Using the Mouse Pointer
- Select files and folders in the project tree view and click the buttons Include, Include Recursively, Exclude, and Exclude Recursively. For information about the controls, refer to Scope page description.
Based on the inclusion/exclusion of file and directories, RubyMine creates an expression and displays it in the Pattern field.