linter

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

README

jsonnet-lint

Very basic experimental, quick and a bit dirty linter. It's intended to become a full featured linter as it matures. PRs are very welcome!

Don't expect much from it now.

Notes

It currently runs on a desugared file. It has its good and bad sides. We should figure out what's the right way.

Documentation

Overview

Package linter analyses Jsonnet code for code "smells".

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lint

func Lint(node ast.Node, e *ErrorWriter)

Lint analyses a node and reports any issues it encounters to an error writer.

Types

type ErrorWriter

type ErrorWriter struct {
	ErrorsFound bool
	Writer      io.Writer
}

ErrorWriter encapsulates a writer and an error state indicating when at least one error has been written to the writer.

type LintingInfo

type LintingInfo struct {
	// contains filtered or unexported fields
}

LintingInfo holds additional information about the program which was gathered during linting. The data should only be added to it. It is global, i.e. it holds the same data regardless of scope we're currently analyzing.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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