From 07d3718d7896c421a9a3be2bb933b602ca1aa4c6 Mon Sep 17 00:00:00 2001
From: George McCabe <23407799+georgemccabe@users.noreply.github.com>
Date: Thu, 16 Jan 2025 12:27:59 -0700
Subject: [PATCH] Feature #2758 SonarQube (1) (#2866)
* test that this file is not needed anymore because RTD controls the version selector
* various changes to appease SonarQube complaints
* remove deprecated docker command
* resolve more SonarQube code smells
* update URL for posting sample data
---
.github/jobs/free_disk_space.sh | 4 -
docs/_static/pop_ver.js | 18 ---
docs/build_docs.py | 13 +-
docs/conf.py | 2 +-
.../compile_official_release_notes.py | 4 +-
internal/scripts/docker/Dockerfile | 6 +-
internal/tests/pytests/conftest.py | 2 +-
.../config_metplus/test_config_metplus.py | 31 ++--
.../util/config_util/test_config_util.py | 15 +-
.../pytests/util/diff_util/test_diff_util.py | 12 +-
.../util/met_config/test_met_config.py | 147 +++++++++---------
.../pytests/util/run_util/test_run_util.py | 33 ++--
12 files changed, 131 insertions(+), 156 deletions(-)
delete mode 100644 docs/_static/pop_ver.js
diff --git a/.github/jobs/free_disk_space.sh b/.github/jobs/free_disk_space.sh
index fc6c6bad0b..f4f86e8a7c 100755
--- a/.github/jobs/free_disk_space.sh
+++ b/.github/jobs/free_disk_space.sh
@@ -59,10 +59,6 @@ cmd="docker image prune -af"
printf "\nRunning $cmd"
$cmd
-cmd=docker system prune -af
-printf "\nRunning $cmd"
-$cmd
-
cmd="docker images"
printf "\nAFTER CLEANUP: $cmd"
$cmd
diff --git a/docs/_static/pop_ver.js b/docs/_static/pop_ver.js
deleted file mode 100644
index ed70d7d141..0000000000
--- a/docs/_static/pop_ver.js
+++ /dev/null
@@ -1,18 +0,0 @@
-$(document).ready(function() {
- // Add 8 to get to end of URL METplus/
- var proj_end = document.baseURI.indexOf("METplus") + 8;
- var end = document.baseURI.indexOf("/", proj_end);
- var cur_ver = document.baseURI.substring(proj_end, end);
- var name = cur_ver.startsWith('v') ? cur_ver.substring(1) : cur_ver;
- var mylist = $("#version-list");
- mylist.empty();
- mylist.append($("