Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify rule S5146: Fix invalid Python sample (#2239)
I couldn't get Sonarcloud to trigger this issue using the provided noncompliant code example. I think the code examples as written end up being circular because the local function 'redirect()' will call itself rather than the imported 'redirect()' function of the same name. The fix is to change the local function name to be redirecting(). I changed the API endpoint name as well so that it matched. Once I had made this change, the noncompliant code example did lead to Sonarcloud spotting the issue. ## Review A dedicated reviewer checked the rule description successfully for: - [x] logical errors and incorrect information - [x] information gaps and missing content - [x] text style and tone - [x] PR summary and labels follow [the guidelines](https://github.com/SonarSource/rspec/#to-modify-an-existing-rule)
- Loading branch information