Revert the changes from [#517](https://github.com/opensearch-project/dashboards-reports/pull/517) and [#518](https://github.com/opensearch-project/dashboards-reports/pull/518) with upgraded Detekt version Ref: https://github.com/opensearch-project/dashboards-reports/pull/517#discussion_r1007179801