rubocop-viewer_formatter 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +19 -0
- data/lib/rubocop/formatter/viewer_formatter.rb +7 -1
- data/rubocop-vioewer_formatter.gemspec +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f456ebc60bba8e96df5f6f57dde0e26d43e1da514b360025d3a5365b7edb359
|
4
|
+
data.tar.gz: 1e71bcd869effb277be343b38be93087ddfe8de3dfefbf8fe45e397af89330fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eeabac55077c75bbf5c2b8bef0f39815cf2a183a2f843260d4be08a9344dc08bfbbe7a903b9b0520a72def26391bc6c76ff8b94c3246a06a1b9d397d5542c7b5
|
7
|
+
data.tar.gz: '09291da609698073ddcb22223e92e1e2389ddff79e09c62e1cd888f12e1eb7dfcdedf8446f44562907fbcecec51481e4ed76074066cbba42a027a6f436e67199'
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# Changelog
|
2
|
+
All notable changes to this project will be documented in this file.
|
3
|
+
|
4
|
+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
5
|
+
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
6
|
+
|
7
|
+
## [Next]
|
8
|
+
### Added
|
9
|
+
### Changed
|
10
|
+
### Fixed
|
11
|
+
|
12
|
+
## [1.0.1]
|
13
|
+
### Fixed
|
14
|
+
- fix highlighting of multi-line issues
|
15
|
+
|
16
|
+
## [1.0.0]
|
17
|
+
### Added
|
18
|
+
- Initial release
|
19
|
+
|
@@ -96,7 +96,7 @@ module RuboCop
|
|
96
96
|
|
97
97
|
def hash_for_location(offense)
|
98
98
|
{
|
99
|
-
source: offense
|
99
|
+
source: source_lines(offense),
|
100
100
|
start_line: offense.line,
|
101
101
|
last_line: offense.last_line,
|
102
102
|
start_column: offense.column,
|
@@ -104,6 +104,12 @@ module RuboCop
|
|
104
104
|
length: offense.location.length,
|
105
105
|
}
|
106
106
|
end
|
107
|
+
|
108
|
+
def source_lines(offense)
|
109
|
+
(offense.line .. offense.last_line).map do |line_num|
|
110
|
+
offense.location.source_buffer.source_line(line_num)
|
111
|
+
end.join("\n")
|
112
|
+
end
|
107
113
|
end
|
108
114
|
end
|
109
115
|
end
|
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |gem|
|
7
7
|
gem.name = 'rubocop-viewer_formatter'
|
8
|
-
gem.version = '1.0.
|
8
|
+
gem.version = '1.0.1'
|
9
9
|
gem.authors = ['Edward Rudd']
|
10
10
|
gem.email = ['urkle@outoforder.cc']
|
11
11
|
gem.description = 'A formatter for rubocop that generates a vue based-interactive app'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-viewer_formatter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edward Rudd
|
@@ -75,6 +75,7 @@ extra_rdoc_files: []
|
|
75
75
|
files:
|
76
76
|
- ".gitignore"
|
77
77
|
- ".rubocop.yml"
|
78
|
+
- CHANGELOG.md
|
78
79
|
- Gemfile
|
79
80
|
- Rakefile
|
80
81
|
- assets/output.html.erb
|