LLKennedy/imagetemplate

View on GitHub
render/mockcanvas.go

Summary

Maintainability
A
1 hr
Test Coverage

Method MockCanvas.Barcode has 7 arguments (exceeds 4 allowed). Consider refactoring.
Wontfix

func (m *MockCanvas) Barcode(codeType BarcodeType, content []byte, extra BarcodeExtraData, start image.Point, width, height int, dataColour color.Color, bgColour color.Color) (Canvas, error) {
Severity: Major
Found in render/mockcanvas.go - About 50 mins to fix

    Method MockCanvas.Text has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func (m *MockCanvas) Text(text string, start image.Point, typeFace font.Face, colour color.Color, maxWidth int) (Canvas, error) {
    Severity: Minor
    Found in render/mockcanvas.go - About 35 mins to fix

      Method MockCanvas.TryText has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      func (m *MockCanvas) TryText(text string, start image.Point, typeFace font.Face, colour color.Color, maxWidth int) (bool, int) {
      Severity: Minor
      Found in render/mockcanvas.go - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status