False positive when using PascaleCase for class returned by namedtuple

Segment = namedtuple('Segment', 'pose0 pose1 length')

Returns:

Rename this local variable “Segment” to match the regular expression ^[_a-z][a-z0-9_]*$.

But namedtuple in python returns a class. And should thus start with a capital.

Hi @Timple ,
Sorry for being so late answering your thread.
Indeed, I can reproduce the FP and I created the following ticket to keep track of it: SONARPY-1051.

Thanks!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.