linter

package
v0.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2021 License: GPL-3.0, GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package linter analyses disassembled code (from the disassembly package) producing a lint report. As it is, it is a proof-of-concept and incomplete.

Current Linters:

. Reading of TIA and RIOT write-only addresses

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write added in v0.10.1

func Write(dsm *disassembly.Disassembly, output io.Writer) error

Write performs a lint and writes the results output to io.Writer.

Types

type LintEntry added in v0.10.1

type LintEntry struct {
	DisasmEntry *disassembly.Entry
	Error       string
	Details     interface{}
}

LintEntry for every lint error detected in disassembly entry.

func (*LintEntry) String added in v0.10.1

func (le *LintEntry) String() string

type Results added in v0.10.1

type Results map[string][]*LintEntry

Results is a list of LintEntries grouped by Error.

func Lint

func Lint(dsm *disassembly.Disassembly) (*Results, error)

Lint disassembly and return results.

func (*Results) String added in v0.10.1

func (res *Results) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL