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
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
using let instead of var in javscript source files
refactoring all functions to have SonarQube cognitive complexity < 15
Change let keyword to const for all variables that are never re-assigned.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
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.