Showing 4 of 33 total issues
Function GetNewsItems
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func GetNewsItems(db *neoism.Database, tags []string, providers []string, categories []string, people []string, locations []string, companies []string, page int) (*[]NewsItem, error) {
Function GetNewsItems
has 8 return statements (exceeds 4 allowed). Open
Open
func GetNewsItems(db *neoism.Database, tags []string, providers []string, categories []string, people []string, locations []string, companies []string, page int) (*[]NewsItem, error) {
var news []NewsItem
matchClause := []string{"MATCH (new:NewsItem)<-[r]-(p:NewsProvider)"}
Avoid deeply nested control flow statements. Open
Open
if _, err := user.Save(n.DB); err != nil {
c.JSON(http.StatusInternalServerError, gin.H{"error": err})
} else {
n.Log("Session", "Create")
Function getOrCreateNode
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func getOrCreateNode(db *neoism.Database, label string, key string, value string, props neoism.Props) *neoism.Node {