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

Change-Id: Ife0505678221ac9769b3443bedfdf1ef4387ae31
Signed-off-by: mgouda <madhumati.gouda@radisys.com>
diff --git a/.golangci.yml b/.golangci.yml
index aca3874..1147894 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -11,7 +11,40 @@
 #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:
+    #- gocritic
+    #- gochecknoglobals
+    #- gochecknoinits
+    - gocyclo
+    - govet
+    - ineffassign
+    - misspell
+    - gosec
+    - errcheck
+    - whitespace
+    - staticcheck
+    - unused
+    - unparam
+  exclusions:
+    rules:
+      - text: "weak cryptographic primitive"
+        linters:
+          - gosec
+      - path: ".*_test.go"
+        linters:
+          - govet
+          - fieldalignment
+          - staticcheck
+      - text: "SA1019:"
+        linters:
+          - staticcheck
+      - text: 'G115: integer overflow conversion'
+        linters:
+          - gosec
+          
 linters-settings:
   govet:
     settings:
@@ -33,39 +66,9 @@
   misspell:
     locale: US
 
-linters:
+formatters:
   enable:
-    #- gocritic
-    #- gochecknoglobals
-    #- gochecknoinits
-    - gocyclo
     - gofmt
-    - govet
-    - ineffassign
-    - misspell
-    - gosec
-    - errcheck
-    - whitespace
     - goimports
-    - gosimple
-    - staticcheck
-    - unused
-    - unparam
-
 run:
-  modules-download-mode: vendor
-
-issues:
-  exclude-rules:
-    - text: "weak cryptographic primitive"
-      linters:
-        - gosec
-    - path: ".*_test.go"
-      linters:
-        - govet
-        - fieldalignment
-  exclude-use-default: false
-  exclude:
-    - "SA1019: voltha.ImageDownloads is deprecated"
-    - "SA1019: voltha.ImageDownload is deprecated"
-    - 'G115: integer overflow conversion'
+  modules-download-mode: vendor
\ No newline at end of file