otiai10/gosseract

View on GitHub
client.go

Summary

Maintainability
A
1 hr
Test Coverage

Method Client.init has 5 return statements (exceeds 4 allowed).
Open

func (client *Client) init() error {

    if !client.shouldInit {
        C.SetPixImage(client.api, client.pixImage)
        return nil
Severity: Major
Found in client.go - About 35 mins to fix

    Method Client.SetImage has 5 return statements (exceeds 4 allowed).
    Open

    func (client *Client) SetImage(imagepath string) error {
    
        if client.api == nil {
            return ErrClientNotConstructed
        }
    Severity: Major
    Found in client.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status