sanelint 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sanelint/report.html.erb +67 -38
- data/lib/sanelint/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc85ea74de47b387775f34e827e9c11d25eb5594
|
4
|
+
data.tar.gz: 69b64a8ade3cef20fa47daf628edc332b62fd60f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffe36a81f8f2b13b89094776b2ee59377585ca3cbd8cc99cfabde9f2547f9f0b65547e9205785b3b8697d8200edfe377e79d2572a6b4fd9ba9cc40f4979f9da1
|
7
|
+
data.tar.gz: e24d1b9cf27160fa63059b03450590afe60d1842c135aac5b6cf981969b62b79355c85817714c2ba3637a986ba0afcac0e12363a2e05f934a76caf0d337791d3
|
@@ -1,64 +1,93 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html>
|
3
3
|
<head>
|
4
|
+
<meta charset="utf-8">
|
4
5
|
<title><%= File.basename(root) %> Sanelint Report</title>
|
5
|
-
|
6
|
+
|
7
|
+
<link href='http://fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'>
|
8
|
+
|
9
|
+
<style>
|
10
|
+
/* Eric Meyer's Reset CSS v2.0 - http://cssreset.com */
|
11
|
+
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}
|
12
|
+
|
6
13
|
body {
|
7
|
-
font:
|
14
|
+
font-size: 14px;
|
15
|
+
font-family: 'Inconsolata', monospace;
|
16
|
+
|
17
|
+
width:1200px;
|
18
|
+
margin: 20px auto;
|
8
19
|
}
|
9
|
-
|
20
|
+
|
10
21
|
table {
|
11
22
|
border-collapse: collapse;
|
23
|
+
border: 0px;
|
24
|
+
}
|
25
|
+
|
26
|
+
tr:nth-child(even) {background: #e4e4e4}
|
27
|
+
tr:nth-child(odd) {background: #f4f4f4}
|
28
|
+
|
29
|
+
td {
|
30
|
+
padding: 15px 10px;
|
31
|
+
}
|
32
|
+
tr.small > td {
|
33
|
+
color: #333;
|
34
|
+
padding: 15px 10px;
|
35
|
+
padding-bottom: 0px;
|
36
|
+
}
|
37
|
+
td.narrow {
|
38
|
+
width:20px;
|
39
|
+
}
|
40
|
+
td.wide {
|
41
|
+
max-width:570px;
|
12
42
|
}
|
13
|
-
|
14
|
-
|
43
|
+
|
44
|
+
a {
|
45
|
+
text-decoration: none;
|
46
|
+
color: #f56200;
|
15
47
|
}
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
48
|
+
.code {
|
49
|
+
padding: 5px;
|
50
|
+
border-radius: 3px;
|
51
|
+
background-color: #556;
|
52
|
+
color: #ddd;
|
53
|
+
line-height: 1.5em;
|
20
54
|
}
|
55
|
+
|
21
56
|
</style>
|
57
|
+
|
22
58
|
</head>
|
23
59
|
<body>
|
24
60
|
<div class="container">
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
<th>File</th>
|
29
|
-
<th>Error</th>
|
30
|
-
<th>Code</th>
|
31
|
-
<th>Commit</th>
|
32
|
-
</tr>
|
61
|
+
|
62
|
+
<table>
|
63
|
+
|
33
64
|
<% @entries.each_with_index do |entry, index| %>
|
34
|
-
<tr>
|
35
|
-
<td><%= index + 1 %></td>
|
36
|
-
<td><code><%= entry.file %>:<%= entry.line %></code></td>
|
37
65
|
|
38
|
-
|
66
|
+
<tr class="small">
|
67
|
+
<td class="narrow">
|
68
|
+
<%= index + 1 %>
|
69
|
+
</td>
|
70
|
+
|
71
|
+
<td class="wide">
|
72
|
+
<%= entry.git_date %>, <%= entry.git_username %>
|
73
|
+
<br />
|
39
74
|
<% if entry.link %>
|
40
75
|
<a href="<%= entry.link %>"><%= entry.message %></a>
|
41
76
|
<% else %>
|
42
77
|
<%= entry.message %>
|
43
78
|
<% end %>
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
<
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
<br>
|
55
|
-
<%= entry.git_username %>
|
56
|
-
<br>
|
57
|
-
<%= entry.git_date %>
|
58
|
-
</td>
|
59
|
-
|
60
|
-
</tr>
|
79
|
+
</td>
|
80
|
+
|
81
|
+
<td class="wide">
|
82
|
+
<%= entry.file %>:<%= entry.line %> →
|
83
|
+
<a href="http://github.com/<%= git_repo %>/commit/<%= entry.git_commit %>"><%= entry.git_commit %></a>
|
84
|
+
<br />
|
85
|
+
<div class="code"><%= entry.line %>: <%= entry.code %></div>
|
86
|
+
</td>
|
87
|
+
</tr>
|
88
|
+
|
61
89
|
<% end %>
|
90
|
+
|
62
91
|
</table>
|
63
92
|
</div>
|
64
93
|
|
data/lib/sanelint/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sanelint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tymon Tobolski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails_best_practices
|