ai-cfia / flask-example

A minimal flask backend app that can serve as starting point for other backend projects.
0 stars 0 forks source link

Implement additional lint rules to detect anti patterns #3

Open k-allagbe opened 1 year ago

k-allagbe commented 1 year ago

Problem

We need to catch Python anti-patterns in our codebase. Anti-patterns are bad practices that can lead to buggy, hard-to-read, or unmaintainable code.

Details

We can use lint rules based on the Python Anti-Patterns guide.

ADR candidate?

rngadam commented 1 year ago

@k-allagbe also suggests we move this issue to devsecops as it applies to the whole codebase. I don't think an ADR is necessary as what we want is the tooling to automaticallly enforce this.

Note that commenting on anti-pattern could probably be done by a chatgpt bot (with context on the anti-patterns rules)

SonOfLope commented 8 months ago

We could potentially look into SonarQube

Anti-pattern plugin : https://github.com/davidetaibi/sonarqube-anti-patterns-code-smells