Skip to content

Concat in @commitlint/utils is not used #549

@byCedric

Description

@byCedric

I ran a statistical code analyzer (SonarQube) to see if it can detect any issues, bugs or code smells that should be fixed. This one is kind of interesting.

Basically, the problem is that the problems.concat returns a brand new array. But this array is never stored or used anywhere. That means that either A) it isn't used and should be removed or B) should be used, but isn't right now.

I'm not sure if we should do something lime problems = problems.concat, so that's why I'm opening the issue.

Expected Behavior

Current Behavior

Affected packages

  • cli
  • core
  • prompt
  • config-angular

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions