Skip to content

fix(timescaledb): exclude for t-trules#26

Merged
GregoireW merged 3 commits intomainfrom
fix/t_rules_exclude_timescale_db_schema
Nov 13, 2025
Merged

fix(timescaledb): exclude for t-trules#26
GregoireW merged 3 commits intomainfrom
fix/t_rules_exclude_timescale_db_schema

Conversation

@pmpetit
Copy link
Contributor

@pmpetit pmpetit commented Nov 13, 2025

This pull request updates all rule files in the dblinter/rules directory to consistently exclude certain schemas from their database queries by using the EXCLUDED_SCHEMAS_STR constant. This change improves the accuracy of linting checks by ensuring that system or irrelevant schemas are not considered in rule evaluations.

Schema exclusion improvements:

  • Added import of EXCLUDED_SCHEMAS_STR from dblinter/function_library to all rule files to standardize schema exclusion logic. [1] [2] [3] [4] [5] [6] [7] [8] [9]

  • Updated all relevant SQL queries in rule functions (TableWithoutPrimaryKey, TableWithoutIndex, TableWithRedundantIndex, TableWithFkNotIndexed, TableWithPotentialMissingIdx, TableWithFkMismatch, TableWithRoleNotGranted, ReservedKeyWord, TableWithUppercase) to exclude schemas listed in EXCLUDED_SCHEMAS_STR. This ensures that checks ignore tables in excluded schemas. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

These changes make the rule checks more robust and prevent false positives or unnecessary linting on tables within schemas that should be ignored.

@sonarqubecloud
Copy link

@pmpetit pmpetit requested a review from GregoireW November 13, 2025 15:10
@GregoireW GregoireW merged commit c0c3208 into main Nov 13, 2025
5 checks passed
@GregoireW GregoireW deleted the fix/t_rules_exclude_timescale_db_schema branch November 13, 2025 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants