Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

goMarkableStream ♥ reveal.js #92

Merged
merged 9 commits into from
Nov 24, 2023
Merged

goMarkableStream ♥ reveal.js #92

merged 9 commits into from
Nov 24, 2023

Conversation

owulveryck
Copy link
Owner

Features: a basic gesture detection has been implemented in the server and is available at the /gestures endpoint
The client analyse the gesture and on left and right send a post message to the iframe.
If the iframe contains a reveal.js presentation, the slides are changing

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GoGitOps Review

Grade: A+ (99.2%)

Files: 30

Issues: 1

gofmt: 100%

go_vet: 100%

gocyclo: 96%

internal/eventhttphandler/gesture_handler.go
	Line 57: warning: cyclomatic complexity 16 of function (*GestureHandler).ServeHTTP() is high (> 15) (gocyclo)

golint: 96%

internal/eventhttphandler/gesture_handler.go
	Line 14: warning: exported type SwipeDirection should have comment or be unexported (golint)
internal/eventhttphandler/gesture_handler.go
	Line 17: warning: exported const SwipeLeft should have comment (or a comment on this block) or be unexported (golint)

license: 100%

ineffassign: 100%

misspell: 100%

This report was generated using GoGitOps.

}

// ServeHTTP implements http.Handler
func (h *GestureHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: cyclomatic complexity 16 of function (*GestureHandler).ServeHTTP() is high (> 15) (gocyclo)

"github.com/owulveryck/goMarkableStream/internal/pubsub"
)

type SwipeDirection string

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: exported type SwipeDirection should have comment or be unexported (golint)

type SwipeDirection string

const (
SwipeLeft SwipeDirection = "Swipe Left"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: exported const SwipeLeft should have comment (or a comment on this block) or be unexported (golint)

@owulveryck owulveryck merged commit e02b4df into main Nov 24, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant