Skip to content
| Marketplace
Sign in
Azure DevOps>Azure Pipelines>SQL Enlight Code Quality
SQL Enlight Code Quality

SQL Enlight Code Quality

Yubitsoft Eood

|
240 installs
| (0) | Preview
SQL Enlight Code Quality for Azure DevOps. Analyze T-SQL code in builds, publish reports, evaluate quality gates, and decorate pull requests with status and comments.
Get it free

SQL Enlight Code Quality for Azure DevOps

SQL Enlight Code Quality for Azure DevOps brings advanced T-SQL static code analysis directly into Azure DevOps Services and Azure DevOps Server pipelines. It helps teams detect SQL code quality issues early, enforce quality standards with configurable quality gates, and review SQL issues directly in builds and pull requests.

The extension adds a dedicated SQL Enlight experience inside Azure DevOps, including a pipeline task, project-level report and settings hubs, a SQL Analysis build tab, and pull request decoration with status checks, summary comments, and inline comments on changed SQL lines.

SQL Enlight analysis report hub

Key Features

  • Analyze T-SQL files in Azure DevOps pipelines using 300+ built-in SQL analysis rules.
  • Detect performance, maintainability, correctness, security, naming, and best-practice issues.
  • Configure reusable analysis profiles for pull request, CI, and custom workflows.
  • Manage analysis templates with configurable rules, severities, and rule parameters.
  • Define and enforce quality gates using metrics, policies, thresholds, and category weights.
  • Analyze all SQL files, only changed files, or let the task choose automatically based on the build context.
  • Limit reports to all issues in analyzed files or only issues found on changed lines.
  • Enrich analysis with database metadata using an analysis context file or SQL Server connection string.
  • Publish results to a dedicated SQL Analysis build tab and project-level Analysis Report hub.
  • Decorate pull requests with status checks, summary comments, and optional inline issue threads.
  • Automatically resolve fixed SQL Enlight inline PR threads when issues are no longer reported.
  • Activate and manage SQL Enlight licenses directly from the Azure DevOps Settings hub.
  • Supports Azure DevOps Services and Azure DevOps Server installations.

Azure DevOps Integration

After installation, the extension adds a SQL Enlight hub group to each Azure DevOps project.

The Analysis Report hub lets teams review the latest SQL analysis results from inside Azure DevOps. Reports include summary information, quality gate results, issue lists, affected files, and rule details.

SQL Enlight analysis report issues

The extension also adds a SQL Analysis tab to build results, so developers can review analysis results without downloading artifacts or searching through build logs.

SQL Analysis build tab

Pipeline Task

For new pipelines, use the enhanced task:

steps:
- task: sqlEnlightAnalyze@1
  displayName: 'SQL Enlight Code Analysis'

The sqlEnlightAnalyze@1 task runs SQL Enlight analysis, evaluates the configured quality gate, publishes the analysis report, and can decorate pull requests. It can be configured entirely from project-level settings or overridden per pipeline where needed.

SQL Enlight YAML task example

Task Configuration Highlights

The v1 task supports:

  • profile selection by profile ID or name;
  • include and exclude file patterns;
  • include and exclude rule filters;
  • analysis context file or SQL Server connection string;
  • custom analysis template file;
  • custom quality gate file;
  • custom report properties;
  • fail conditions: never, quality gate fail, quality gate warn or fail, or any issue;
  • analysis modes: auto, full, or changed files;
  • report scope: all issues in analyzed files or changed lines only;
  • optional syntax error suppression;
  • PR status, summary comment, and inline comment publishing;
  • minimum inline comment severity;
  • maximum inline PR threads per run;
  • automatic resolution of fixed SQL Enlight inline issue threads.

Pull Request Integration

When the task runs in a pull request build, SQL Enlight can publish code quality feedback directly to the pull request.

Supported PR decoration features include:

  • PR status check — shows the SQL Enlight quality result on the pull request.
  • Summary comment — posts an overview of the analysis result, issue counts, and quality gate outcome.
  • Inline comments — creates comments directly on changed SQL lines where issues are detected.
  • Severity filtering — controls which issues are important enough to appear as inline comments.
  • Thread limit — prevents large pull requests from being flooded with comments.
  • Auto-resolve fixed issues — resolves SQL Enlight issue threads when the corresponding issue disappears in a later run.
  • Pull request summary comment SQL Enlight pull request summary comment

  • Inline pull request comment SQL Enlight inline pull request comment

To enable PR publishing in YAML pipelines, expose the Azure DevOps system access token to the task:

steps:
- task: sqlEnlightAnalyze@1
  displayName: 'SQL Enlight Code Analysis'
  env:
    SYSTEM_ACCESSTOKEN: $(System.AccessToken)

Profiles

Profiles make it easy to use different analysis behavior for different pipeline scenarios. A profile combines an analysis template, a quality gate, and a context such as Pull Request, CI Build, or Custom.

SQL Enlight profiles settings

Typical profile setup:

  • Pull Request profile — analyze changed files and report only issues on changed lines.
  • CI profile — analyze the full SQL codebase and enforce broader quality gate thresholds.
  • Custom profile — use a dedicated rule set or quality gate for a specific pipeline or branch strategy.

SQL Enlight profile editor

Analysis Templates

Analysis templates define which SQL Enlight rules are enabled and how they are configured. Teams can maintain different templates for strict production checks, lightweight pull request reviews, or specialized database projects.

SQL Enlight analysis templates

The template editor supports rule filtering, rule enable/disable controls, rule severity configuration, rule parameter editing, and XML import/export.

SQL Enlight analysis template editor

Quality Gates

Quality gates define the conditions that SQL code must satisfy before a build is considered acceptable. They can be used to warn or fail builds based on issue counts, severities, categories, rule kinds, and other metrics.

SQL Enlight quality gats

A quality gate can include:

  • metrics;

  • policies;

  • warn and fail thresholds;

  • metric importance values;

  • category weights;

  • JSON import/export for sharing or backup.

Policies

SQL Enlight quality gate editor

Metrics and Weights

SQL Enlight quality gate category weights

Project Settings

The Settings hub provides centralized configuration for the whole Azure DevOps project.

Project-level settings include:

  • analysis profiles;
  • analysis templates;
  • quality gates;
  • shared analysis settings;
  • pull request settings;
  • report comparison settings;
  • license activation and license user management.

Shared settings define default behavior for file patterns, rule filters, analysis mode, report scope, syntax error handling, fail conditions, pull request publishing, inline comment behavior, and report comparison. Project Settings - Analysis SQL Enlight project settings

Project Settings - Pull Request SQL Enlight pull request settings

Reports

SQL Enlight reports help teams understand the current state of SQL code quality.

Reports can show:

  • analysis summary;
  • quality gate result;
  • issue counts by severity and category;
  • affected files;
  • individual issue details;
  • rule information;
  • comparison with a previous eligible build when configured.

SQL Enlight analysis report rules

If report access requires a valid license, the report hub displays a clear license-required message.

SQL Enlight license required report message

License Management and Trial Activation

The extension includes built-in license management in the Settings hub. Administrators can activate a license, request a trial, manage licensed Azure DevOps users, paste license data manually, and check license status.

Supported activation workflows include:

  • online activation;
  • manual activation through support when direct network access is not available;
  • manual license data entry;
  • trial license request and activation;
  • license status verification;
  • licensed user management.

License settings

SQL Enlight license settings

License activation

SQL Enlight license activation

License activation review step

SQL Enlight activation review step

Check license

SQL Enlight checked license

Analysis Context

Some SQL analysis rules can produce more accurate results when SQL Enlight has access to database schema metadata. You can provide this metadata in either of these ways:

  • an SQL Enlight analysis context XML file;
  • a SQL Server connection string that allows metadata to be loaded during analysis.

This is useful when rules need to understand database objects, columns, types, dependencies, or schema-aware relationships.

Recommended Workflow

A practical adoption workflow is:

  1. Install the extension.
  2. Open SQL Enlight > Settings.
  3. Request or activate a license.
  4. Review the default analysis template and quality gate.
  5. Create separate profiles for CI and pull request builds.
  6. Add sqlEnlightAnalyze@1 to the pipeline.
  7. Start with reporting-only mode if the project has existing technical debt.
  8. Enable PR status and summary comments.
  9. Enable inline comments for high-severity issues.
  10. Tighten quality gate thresholds over time.

Task Versions

  • sqlEnlightAnalyze@1 — recommended for new pipelines. Includes quality gates, build tab reporting, project settings integration, pull request status, summary comments, and inline comments.
  • sqlEnlightAnalyze@0 — compatibility task for existing pipelines that use the earlier analysis workflow.

Installation

Azure DevOps Services

Install the extension from the Visual Studio Marketplace and add the SQL Enlight Code Analysis task to your pipeline.

Azure DevOps Server

Install from the Marketplace when supported by your server configuration, or upload the VSIX package through Azure DevOps Server extension management.

The pipeline task requires a Windows build agent with .NET Framework support.

Privacy

SQL Enlight Code Quality for Azure DevOps is designed to run analysis in your Azure DevOps pipeline environment. Analysis results and extension settings are stored in your Azure DevOps project space. For full details, see the SQL Enlight privacy policy.

Learn More

  • SQL Enlight Azure DevOps page: https://sqlenlight.com/azure-devops/
  • Integration guide: https://sqlenlight.com/azure-devops/integration
  • Trial license: https://sqlenlight.com/azure-devops/trial
  • Support: https://sqlenlight.com/support
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft