Advanced outlier detection settings

Advanced outlier detection settings

By default, Flow marks any commit with over 1000 lines of additions or edits as an outlier. With Advanced outlier detection, you can tailor your outlier commit settings to your organizational needs. To mark a single commit as an outlier, learn how to manually mark a commit as an outlier.

Provide permissions

To set up advanced outlier detection, you need the Manage configurations permission. To manually mark commits as outliers, you need the Manage commits permission.

Enable advanced outlier detection

To enable advanced outlier detection:

  1. In the top navigation, click Settings.

  2. In the left navigation, click Configurations under Report settings.

  3. You are now in the General tab.

  4. Select the Advanced outlier settings under Commits.

  5. Click the Advanced settings link to expand the settings.

Outlier detection configuration.

Once this is enabled, you can configure up to three detection settings sections to set up your outlier rules. 

  1. Size: dictate which commits are marked as an outlier based on the total lines of code of the commit. Here, you can also ignore whitespace or lines with a certain number of characters.

  2. Impact: dictate which commits are marked as an outlier based on the raw Impact score or by a percentage range of all Impact scores of commits that Flow has processed for your organization.

  3. Regular Expressions: dictate which commits are marked as an outlier using regular expressions (available in a separate tab).

Size

You can determine which commits are outliers based on their size.

Advanced Impact settings for outlier detection with an Enable toggle and options to either ignore commits by size.

Flow considers the number of lines added or edited, not the number of lines deleted, when deciding whether to mark a commit as an outlier based to size. If a commit contains added, edited, or deleted lines, only the number of added or edited lines is used for Advanced size settings.

  • Set the minimum number of edited or added lines for Flow to count the commit. Any commit with fewer lines edited or added than the threshold you set is excluded. This threshold is configurable.

  • Ignore whitespaces to exclude any lines with no characters in the calculation.

  • Ignore lines with fewer than a set number of non-whitespace characters in the calculation. This threshold is configurable.

  • Set the maximum number of lines edited or added in a commit for a commit to be included. Any commit with more lines of code edited or added than this is excluded. This threshold is configurable. 

Impact

You can identify which commits are outliers by applying filters to Impact scores.

Advanced Impact settings for outlier detection with an Enable toggle and options to either ignore commits by Impact size or Impact value.
  • Ignore commits by percentage. This option excludes processed commits in the top percentage of commits by Impact. The numbers that you enter in the boxes for this option are percentages, not the number of commits. These percentages are configurable. You must use a percentage greater than zero.

  • Ignore commits by Impact. This option excludes commits above and below certain Impacts. These Impact thresholds are configurable.

To get an idea of what raw Impact values are for your team, review the Team health insights report, and base your outlier Impact score on your team’s data. You must use a percentage greater than 0.

Regular expression

You can determine which commits are outliers by using regular expressions to match either the user associated with the commit or the commit message itself. Create as many rules here as you need.

To create a rule:

  1. Switch to the Regex tab on the Configurations page.

  2. Toggle Enable regex for commits.

  3. Click Add rule.

  4. Type in your regular expression and choose whether to Match on user, Match on message, or both.

Regex, commits to exclude section.

Testing regular expressions

If you have commits that you know should be marked as outliers and should be included within your regular expression, test your regular expression to determine which commits it includes. Click Test a regular expression.

In the resulting modal, input:

  1. Your regular expression.

  2. Commit SHA(s) to test against specific commits. You can enter the entire SHA number or just the first six characters.

  3. Indicate whether you want to Match on user, Match on message, or both. Matches will be considered outliers based on your regular expression. Does Not Match will remain a regular commit within your reports.

Regular expression tester modal.

Click Load commits and show matches to see a list of commits and whether they match your regular expression. 

Regular expression tester modal with commits loaded.

If you don't have any commits you want to test your regular expression with, leave Commits to test blank to load your 100 most recent commits.

Once your regular expression returns the commits you expect, exit the modal to create the rule. 

Finishing up

Turning off your Advanced outlier detection settings will return your organization to the default outlier settings: any commit with more than 1000 lines is considered an outlier.

Turning off your outlier settings also returns any manually marked commits to their original state.

Below are a few use cases and the necessary settings to implement them in your own account.

  • Default outlier detection of commits with more than 1000 lines and manually marked commits:

    • Enable outlier detection mode.

    • Enable advanced size settings and set the absolute minimum edit size to zero, and the maximum size to 1000. Leave all other boxes unchecked.

  • No automatic filters, but the ability to manually mark commits as outliers:

    • Enable outlier detection mode.

    • Leave Impact, size, and regular expression settings toggled off. 

Need support? Create a request with our support team.

Copyright © 2005 - 2026 Appfire | All rights reserved.