-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
48 lines (48 loc) · 2.43 KB
/
index.html
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
44
45
46
47
48
<html>
<head>
<meta charset="utf-8"/>
<title>Errorformat Playground</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="main.css" type="text/css" media="screen" charset="utf-8">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" type="text/css" charset="utf-8">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.3/gh-fork-ribbon.min.css" />
<script src="errorformat-playground.js"></script>
<script src="main.js"></script>
</head>
<body>
<div id="container">
<h1 id="title"><a href="https://reviewdog.github.io/errorformat-playground/">errorformat playground</a></h1>
<p>
GitHub: <a href="https://github.com/reviewdog/errorformat">reviewdog/errorformat</a>
<br>
Document: <a href="https://vim-jp.org/vimdoc-en/quickfix.html#error-file-format">:h error-file-format</a>
<br>
Examples:
<a href="https://git.io/Jes8a">golint</a>
<a href="https://git.io/Jes8R">eslint(stylish)</a>
<a href="https://git.io/Jes8u">rubocop</a>
<a href="https://git.io/Jes8V">tsc(TypeScript Compiler)</a>
<a href="https://git.io/Jes8o">stylelint</a>
<a href="https://git.io/Jes8K">sbt</a>
<a href="https://bit.ly/3rQBuWt">end line/column support</a>
</p>
<div>
<label class="label" for="efms">Errorformats</label>
<p>You can put multiple errorformats separated by a line break.</p>
<textarea id="efms" rows="5" placeholder="%f:%l:%c: %m %-G%.%#"></textarea>
</div>
<div>
<label class="label" for="text">Text</label>
<textarea id="text" rows="15" placeholder="golint.new.go:3:5: exported var V should have comment or be unexported golint.new.go:5:5: exported var NewError1 should have comment or be unexported "></textarea>
</div>
<div><button onclick="run();">Run</button></div>
<div id="error"></div>
<div>
<h2>Result</h2>
<p>JSON array of <a href="https://godoc.org/github.com/reviewdog/errorformat#Entry">errorformat.Entry</a></p>
<pre id="result"></pre>
</div>
<a class="github-fork-ribbon" href="https://github.com/reviewdog/errorformat-playground" data-ribbon="Fork me on GitHub" title="Fork me on GitHub">Fork me on GitHub</a>
</div>
</body>
</html>