ifad/clammit

View on GitHub

Showing 61 of 61 total issues

comment on exported type Info should be of the form "Info ..." (with optional leading article)
Open

// JSON server information response
Severity: Minor
Found in main.go by golint

comment on exported type ScanInterceptor should be of the form "ScanInterceptor ..." (with optional leading article)
Open

// The implementation of the Scan interceptor
Severity: Minor
Found in scan_interceptor.go by golint

exported method Clamav.Scan should have comment or be unexported
Open

func (c *Clamav) Scan(reader io.Reader) (*Result, error) {
Severity: Minor
Found in scanner/clamav.go by golint

comment on exported type Engine should be of the form "Engine ..." (with optional leading article)
Open

/*
Severity: Minor
Found in scanner/scanner.go by golint

don't use ALL_CAPS in Go names; use CamelCase
Open

    RES_ERROR = "ERROR"
Severity: Minor
Found in scanner/scanner.go by golint

comment on exported type Result should be of the form "Result ..." (with optional leading article)
Open

/*
Severity: Minor
Found in scanner/scanner.go by golint

comment on exported method ScratchArea.NewFile should be of the form "NewFile ..."
Open

/*
Severity: Minor
Found in scratch/scratch.go by golint

exported type ApplicationConfig should have comment or be unexported
Open

type ApplicationConfig struct {
Severity: Minor
Found in main.go by golint

exported function New should have comment or be unexported
Open

func New(input io.Reader, contentLength int64) (*MultiReader, error) {
Severity: Minor
Found in multireader/multireader.go by golint

exported method Clamav.HasVirus should have comment or be unexported
Open

func (c *Clamav) HasVirus(reader io.Reader) (bool, error) {
Severity: Minor
Found in scanner/clamav.go by golint

comment on exported method ScratchArea.Cleanup should be of the form "Cleanup ..."
Open

/*
Severity: Minor
Found in scratch/scratch.go by golint

if block ends with a return statement, so drop this else and outdent its block
Open

    } else {
Severity: Minor
Found in forwarder/body.go by golint

exported method Clamav.Ping should have comment or be unexported
Open

func (c *Clamav) Ping() error {
Severity: Minor
Found in scanner/clamav.go by golint

comment on exported type Scanner should be of the form "Scanner ..." (with optional leading article)
Open

/*
Severity: Minor
Found in scanner/scanner.go by golint

2: cannot find package "clammit/multireader" in any of:
Open

    "clammit/multireader"
Severity: Minor
Found in forwarder/body.go by govet

package comment should be of the form "Package forwarder ..."
Open

/*
Severity: Minor
Found in forwarder/forwarder.go by golint

comment on exported method ScanInterceptor.Handle should be of the form "Handle ..."
Open

/*
Severity: Minor
Found in scan_interceptor.go by golint

comment on exported function NewForwarder should be of the form "NewForwarder ..."
Open

/*
Severity: Minor
Found in forwarder/forwarder.go by golint

comment on exported var DefaultApplicationConfig should be of the form "DefaultApplicationConfig ..."
Open

// Default configuration
Severity: Minor
Found in main.go by golint

if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary)
Open

            } else {
Severity: Minor
Found in scan_interceptor.go by golint
Severity
Category
Status
Source
Language