Skip to content

Cognitive complexity metric does not understand newer C++ syntax #2672

@Patschkowski

Description

@Patschkowski

Describe the bug
Code complexity metric is counting r-value references as logical operators and "=default" as switch labels.

Expected behavior
Code complexity metric does not count r-value references as logical operators and "=default" as switch labels.

Screenshots
image
image

Desktop (please complete the following information):

  • OS: Windows
  • SonarQube version: 10.4.1 (build 88267)
  • cxx plugin version: 2.2 (build 626)
  • sonar-scanner version: 5.0.1.3006

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions