This rule raises an issue when the reversed() function is called with a sorted() as an argument.
The sorted() function has a reverse parameter that provides the same functionality as the reversed()
function.
Use the reverse parameter of the sorted() function to sort in descending order instead of using
reversed().
data = [3, 1, 4, 1, 5, 9] result = reversed(sorted(data)) # Noncompliant
data = [3, 1, 4, 1, 5, 9] result = sorted(data, reverse=True)