Uncovered lines failing quality gates

The sonar qube server failing the project report due to the below functions used in Alembic repo
def upgrade():

sql_execute(
        """
            drop table tag;
        """
    )

There are many files in the repo has such fuctions and variables with static values defined in them.These line are considered as “not covered” and because of this the overall status is failed even through there are no security findings.

Hey there.

What version of SonarQube are you using? What language are you analyzing?

I’m having trouble understanding what you’re asking, exactly.

SonarQube 10.4 , Python based repo ,using Sonar Way , a default built in quality gateway.

Can you share a screenshot showing what you mean by this?

Hope this will help, we have many such files (code) because of this coverage is towards lower side. and hence the overall report is failing

If you never intend to cover this code with tests, you can adjust what files are considered for code coverage by configuring the analysis scope.