dbLinter Rules Repository

dbLinter logo

Introduction

Today I proudly announce that the Joint Venture between United Codes and Grisselbav released the initial version of the dbLinter Rules Repository website. This is the first publicly available component of the dbLinter tool suite.

What is dbLinter?

dbLinter is a suite for checking and improving the quality of database applications. Quality is assessed using static code analysis and database queries based on a configuration. A configuration is primarily centrally managed. It contains file patterns, rules, validators, SQL-based tests, parameters, and connect information for read-only database access within checks and tests.

Is it Free?

dbLinter is a commercial and subscription-based product. However, there are two free subscription plans foreseen. Anonymous without registration and Free requiring registration with a valid email address. You need a login to manage configurations.

Anonymous

Free

Essential

Professional

Number of seats

unlimited

1

1-n

1-n

Number of configurations

1

unlimited

unlimited

View rules and related data

yes

yes

yes

yes

Manage configurations

yes

yes

yes

Run checks

yes

yes

yes

yes

Run SQL-based tests

yes

yes

yes

dbLinter VS Code extension

yes

yes

yes

yes

Run all accessible checks and tests

yes

yes

Quick fixes in dbLinter VS Code extension

yes

yes

Ignore chosen SQL-based test findings

yes

yes

dbLinter CLI with SonarCloud integration

yes

yes

Manage user access

yes

yes

dbLinter SonarQube plugin

yes

Access to dbLinter test repository

yes

Custom rules, checks and SQL-based tests

yes

Generate Java project for checks and SQL-based tests

yes

Manage custom validators (plugins)

yes

Export rules and configurations

yes

Import rules and configurations

yes

And of course, access to the dbLinter Rules Repository website is also free.

What Are the Rules Based on?

Most of the rules are taken over from the decommissioned Trivadis PL/SQL & SQL Coding Guidelines. The origin is documented per rule under the Reference section. See for example G-1080: Avoid using the same expression on both sides of a relational comparison operator or a logical operator. This rule exists in 4 different rule repositories.

Over 180 Rules – This is Ridiculous!

You do not need to enable all rules. I compare it to a breakfast buffet. You pick what you like and how much you want.

Furthermore, not all rules have the same severity. The most important rules are marked as Blocker. Pick some of these to start with.

What’s Next?

Coding guidelines are really helpful, especially if you can use them to review your code automatically while it’s being developed in your favourite IDE. Of course you want them also as part of a CI/CD pipeline. However, finding problems while typing code is far more efficient.

Therefore the next component will be a VS Code extension. Here’s an example of how it will look like:

Stay tuned.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.