File: javascript.go

package info (click to toggle)
golang-github-reviewdog-errorformat 0.0~git20220309.b075c45-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 900 kB
  • sloc: python: 59; xml: 13; javascript: 4; sh: 4; haskell: 3; makefile: 2
file content (43 lines) | stat: -rw-r--r-- 1,035 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package fmts

func init() {
	const lang = "javascript"

	register(&Fmt{
		Name: "eslint",
		Errorformat: []string{
			`%-P%f`,
			` %#%l:%c %# %trror  %m`,
			` %#%l:%c %# %tarning  %m`,
			`%-Q`,
			`%-G%.%#`,
		},
		Description: "(eslint [-f stylish]) A fully pluggable tool for identifying and reporting on patterns in JavaScript",
		URL:         "https://github.com/eslint/eslint",
		Language:    lang,
	})

	register(&Fmt{
		Name: "eslint-compact",
		Errorformat: []string{
			`%f: line %l, col %c, %trror - %m`,
			`%f: line %l, col %c, %tarning - %m`,
			`%-G%.%#`,
		},
		Description: "(eslint -f compact) A fully pluggable tool for identifying and reporting on patterns in JavaScript",
		URL:         "https://github.com/eslint/eslint",
		Language:    lang,
	})

	register(&Fmt{
		Name: "standardjs",
		Errorformat: []string{
			`%*\s%f:%l:%c: %m`,
			`%-G%.%#`,
		},
		Description: "(standard) JavaScript style guide, linter, and formatter",
		URL:         "https://github.com/standard/standard",
		Language:    lang,
	})

}