changeset 1694:4a2fad8f57de

Imports: Resolved golint issues unrelated to exported symbols commenting.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 03 Jan 2019 17:53:18 +0100
parents cdc8933949f2
children be78b429ef6e
files pkg/imports/fa.go pkg/imports/gm.go pkg/imports/queue.go
diffstat 3 files changed, 11 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/imports/fa.go	Thu Jan 03 17:46:59 2019 +0100
+++ b/pkg/imports/fa.go	Thu Jan 03 17:53:18 2019 +0100
@@ -10,6 +10,7 @@
 //
 // Author(s):
 //  * Raimund Renkert <raimund.renkert@intevation.de>
+
 package imports
 
 import (
@@ -274,8 +275,8 @@
 	}
 	defer insertFAVStmt.Close()
 
-	var faids []string
-	var faId int64
+	var faIDs []string
+	var faID int64
 	feedback.Info("Found %d fairway availabilities", len(result.FairwayAvailability))
 	for _, faRes := range result.FairwayAvailability {
 		// TODO: high frequent requests lead to "duplicate key value violates unique constraint "fairway_availability_bottleneck_id_surdat_key"
@@ -289,16 +290,16 @@
 			faRes.Critical,
 			faRes.Date_Info,
 			faRes.Source,
-		).Scan(&faId)
+		).Scan(&faID)
 		if err != nil {
 			return nil, err
 		}
 		feedback.Info("Processing for Bottleneck %s", faRes.Bottleneck_id)
-		faids = append(faids, faRes.Bottleneck_id)
+		faIDs = append(faIDs, faRes.Bottleneck_id)
 		for _, bnPdfs := range faRes.Bottleneck_PDFs.PdfInfo {
 			_, err = insertBnPdfsStmt.ExecContext(
 				ctx,
-				faId,
+				faID,
 				bnPdfs.ProfilePdfFilename,
 				bnPdfs.ProfilePdfURL,
 				bnPdfs.PDF_Generation_Date,
@@ -319,7 +320,7 @@
 			}
 			_, err = insertEFAStmt.ExecContext(
 				ctx,
-				faId,
+				faID,
 				efa.Measure_date,
 				string(*los),
 				efa.Available_depth_value,
@@ -339,7 +340,7 @@
 		for _, fav := range faRes.Reference_values.ReferenceValue {
 			_, err = insertFAVStmt.ExecContext(
 				ctx,
-				faId,
+				faID,
 				fav.Level_of_Service,
 				fav.Fairway_depth,
 				fav.Fairway_width,
@@ -359,5 +360,5 @@
 		feedback.Info("Import of fairway availabilities was successful")
 	}
 
-	return faids, nil
+	return faIDs, nil
 }
--- a/pkg/imports/gm.go	Thu Jan 03 17:46:59 2019 +0100
+++ b/pkg/imports/gm.go	Thu Jan 03 17:53:18 2019 +0100
@@ -10,6 +10,7 @@
 //
 // Author(s):
 //  * Raimund Renkert <raimund.renkert@intevation.de>
+
 package imports
 
 import (
--- a/pkg/imports/queue.go	Thu Jan 03 17:46:59 2019 +0100
+++ b/pkg/imports/queue.go	Thu Jan 03 17:53:18 2019 +0100
@@ -203,7 +203,7 @@
 	return iqueue.importKindNames()
 }
 
-// HasImportKind checks if the import queue supports a given kind.
+// HasImportKindName checks if the import queue supports a given kind.
 func HasImportKindName(kind string) bool {
 	return iqueue.hasImportKindName(kind)
 }