Showing 31 of 31 total issues
Function createEntityHandler
has 96 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func createEntityHandler() (*handler.Handler, error) {
entityType := graphql.NewObject(
graphql.ObjectConfig{
Name: "Entity",
Function createEntityHandler
has 12 return statements (exceeds 4 allowed). Open
Open
func createEntityHandler() (*handler.Handler, error) {
entityType := graphql.NewObject(
graphql.ObjectConfig{
Name: "Entity",
exported type Config should have comment or be unexported Open
Open
type Config struct {
- Exclude checks
exported method Gremlin.CreateEntity should have comment or be unexported Open
Open
func (g *Gremlin) CreateEntity(e *Entity) (*Entity, error) {
- Exclude checks
exported method Gremlin.CreateRelationship should have comment or be unexported Open
Open
func (g *Gremlin) CreateRelationship(r *Relationship) (*Relationship, error) {
- Exclude checks
exported method Gremlin.ListEntities should have comment or be unexported Open
Open
func (g *Gremlin) ListEntities() ([]*Entity, error) {
- Exclude checks
exported type Driver should have comment or be unexported Open
Open
type Driver interface {
- Exclude checks
exported type ServiceConfig should have comment or be unexported Open
Open
type ServiceConfig struct {
- Exclude checks
a blank import should be only in a main or test package, or have a comment justifying it Open
Open
_ "github.com/segmentio/go-athena"
- Exclude checks
2: cannot find package "github.com/etherlabsio/healthcheck/v2" in any of: Open
Open
"github.com/etherlabsio/healthcheck/v2"
- Exclude checks
exported type AwsAthena should have comment or be unexported Open
Open
type AwsAthena struct {
- Exclude checks
exported method AwsAthena.Index should have comment or be unexported Open
Open
func (a *AwsAthena) Index() ([]*Node, error) {
- Exclude checks
if block ends with a return statement, so drop this else and outdent its block Open
Open
} else {
- Exclude checks
exported type Column should have comment or be unexported Open
Open
type Column struct {
- Exclude checks
exported method Gremlin.GetRelationships should have comment or be unexported Open
Open
func (g *Gremlin) GetRelationships(id interface{}, context string) ([]*Entity, error) {
- Exclude checks
exported method AwsAthena.Query should have comment or be unexported Open
Open
func (a *AwsAthena) Query(queryString string) (*sql.Rows, error) {
- Exclude checks
exported method AwsAthena.Close should have comment or be unexported Open
Open
func (a *AwsAthena) Close() {
- Exclude checks
exported type Node should have comment or be unexported Open
Open
type Node struct {
- Exclude checks
exported type AwsAthenaTableDetails should have comment or be unexported Open
Open
type AwsAthenaTableDetails struct {
- Exclude checks
if block ends with a return statement, so drop this else and outdent its block Open
Open
} else {
- Exclude checks