aws-solutions / media-services-application-mapper

Media Services Application Mapper is a browser-based tool that allows operators to visualize the structure and logical connections among AWS Media Services and supporting services in the cloud. The tool can be used as a top-down resource monitoring tool when integrated with CloudWatch.
Apache License 2.0
82 stars 26 forks source link

Fixed SonarQube Code Smells and Complexity throughout the solution #394

Closed dch90 closed 1 year ago

dch90 commented 1 year ago

Background

Reducing functions' SonarQube complexity score lower than 15 is one of the criteria for the solution to meet the Quality bar. Additionally, there were a lot of variables throughout the solution where they were declared with let keyword even though the variable never get reassigned. In those cases, the variables were declared using the const keyword instead.

Changes

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.