[VOL-5475] upgrade go to 1.24.5 and golangci-lint version to 2.2.2

Signed-off-by: mgouda <madhumati.gouda@radisys.com>
Change-Id: I1e8c4c29c8dd9539f6f7233405d8e1a26ed3ab00
diff --git a/.golangci.yml b/.golangci.yml
index 92569b7..cbda152 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -11,6 +11,46 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
+version: "2"
+
+linters:
+  enable:
+    #- gochecknoglobals
+    #- gochecknoinits
+    - gocritic
+    - gosec
+    - errcheck
+    - gocyclo
+    - govet
+    - ineffassign
+    - misspell
+    - gosec
+    - staticcheck
+    - unused
+    - unparam
+  exclusions:
+    rules:
+      - path: ".*_test.go"
+        linters:
+          - gocritic
+          - gosec
+          - govet
+          - fieldalignment
+          - unparam
+          - staticcheck
+          
+      - text: "ifElseChain:"
+        linters:
+          - gocritic
+      - text: "G115: integer overflow conversion"
+        linters:
+          - gosec
+      - text: "SA1019"
+        linters:
+          - staticcheck
+      - text: "QF1008: could remove embedded field"
+        linters:
+          - staticcheck
 
 linters-settings:
   govet:
@@ -25,42 +65,10 @@
       - cancelled
       - artefacts
 
+formatters:
+  enable:
+    - gofmt
+    - goimports
+
 run:
   modules-download-mode: vendor
-
-linters:
-  enable:
-    #- gochecknoglobals
-    #- gochecknoinits
-    - gocritic
-    - gofmt
-    - gosec
-    - errcheck
-    - gocyclo
-    - govet
-    - ineffassign
-    - misspell
-    - gosec
-    - goimports
-    - gosimple
-    - staticcheck
-    - unused
-    - unparam
-
-issues:
-  exclude-use-default: false #we should decide ourselves about false positives
-  exclude-rules:
-    - path: ".*_test.go"
-      linters:
-        - errcheck
-        - gocritic
-        - gosec
-        - govet
-        - fieldalignment
-        - unparam
-    - linters:
-        - gocritic
-      text: "ifElseChain:" #it should be up to a developer to decide which operator to use
-  exclude:
-    - SA1019
-    - 'G115: integer overflow conversion'