Managing Your VE Repository When the Lines of Code Limit Is Reached

In software development, the total number of lines of code (LOC) is a key metric that measures the size and complexity of a project.

Visual Expert (VE) uses this data to conduct code analysis, generate documentation, and provide insights into code quality and maintainability. However, each Visual Expert edition has a maximum LOC volume that can be analyzed.

When this limit is reached, repository updates may be blocked unless capacity is increased or unnecessary projects are removed.

Below are the four key concepts to understand and manage your LOC usage effectively.

1. How Visual Expert Calculates the Volume of Code

A Visual Expert license is tied to a Visual Expert repository. Your VE license specifies the number of lines of code that your repository can contain.

To calculate LOC usage:

  • For each VE project, only the largest code analysis (the most comprehensive scan) is considered when determining the LOC volume used for that project.
  • You can keep multiple code analyses in a project without increasing LOC usage; only the largest one counts.
  • If your VE repository contains multiple VE projects, Visual Expert will accumulate the LOC used by each project to compute the total number of lines of code stored in the repository.

This total is compared to the LOC limit defined by your VE license.

2. How to Check Your Current Lines of Code Usage

You can view your current LOC usage through two interfaces.

Via License and Product Information

To check LOC usage via License and Product information:

  • Click the file icon next to the Home tab and select [License and Product].
  • Review the color-coded usage indicators:
Color Usage Information
Green Usage is within limits.
Yellow Usage exceeds 80%.
Red Usage exceeds 90%.
Dark Red Usage is above 100%.

This section shows the overall LOC consumption of your repository.

Color Code for Usage

Direct View

You can also check LOC usage directly from the interface:

  • Click the [ i ] icon in the bottom right corner. (You can also find it on the Home page.)
    Color Code for Usage
    Home page shortcut for LOC information
  • The number of lines of code will be displayed for each project.
    Manage Lines of Code for VE Projects

These views allow you to quickly identify which projects contribute most to your LOC usage.

3. How to Increase Your License Capacity

If the total LOC of your projects exceeds the maximum allowed by your license, you can upgrade to increase capacity.

Default capacities per edition:

  • VE Basic: Limited to 0.5 million lines of code.
  • VE Professional: 5 million lines by default, extensible with no upper limit.
  • VE Enterprise AI: 5 million lines by default, extensible with no upper limit.

To expand capacity, contact the Visual Expert support team and request an upgrade to a higher plan or additional LOC extension.

4. How to Delete Projects to Free Up Capacity

Since LOC usage is calculated across all VE projects in your repository, removing unused or outdated projects can help you stay within your LOC limit.

To delete a project:

  • Open the Open Project icon.
  • Select the project you want to delete.
  • Click [Remove] to delete it from the repository.
    Delete Unused VE Projects

This reduces the total LOC count and may restore repository functionality if the limit was exceeded.

 

More from Code Review features in Visual Expert

 

Visual Expert, Code Cleanup, Lines of Code, Remove Unused Projects, Manage VE Repository