harri 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -2
- data/lib/harri/regexes.rb +9 -9
- data/lib/harri/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e603652739daf52c8d474133005b4b30936b03669f0e286091ec838a5be0723
|
4
|
+
data.tar.gz: 94fee9ece5d13cbda1d231c15e156debb535de207c6fac18471804511553468a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30839d406f27ea27197ab2e73fa7123860dfabdbb78611429d32252b9d676ba89c00eee82489ac40dee325d687b6e3352ce5a2653ed43e1235021cfc30bb46c8
|
7
|
+
data.tar.gz: e12b95186cb6bc63ae6bb6f6c5049bd7f3c10c374334e0edada4443f2ec4b497a8fb1f092934ed4381fd19a8591253721c64a2132076a1ef0e6a72f0506b2c7a
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
harri (0.1.
|
4
|
+
harri (0.1.3)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -10,6 +10,7 @@ GEM
|
|
10
10
|
rake (13.0.6)
|
11
11
|
|
12
12
|
PLATFORMS
|
13
|
+
universal-darwin-22
|
13
14
|
x86_64-linux
|
14
15
|
|
15
16
|
DEPENDENCIES
|
@@ -18,4 +19,4 @@ DEPENDENCIES
|
|
18
19
|
rake (~> 13.0)
|
19
20
|
|
20
21
|
BUNDLED WITH
|
21
|
-
2.3.
|
22
|
+
2.3.22
|
data/lib/harri/regexes.rb
CHANGED
@@ -2,13 +2,13 @@ module Harri
|
|
2
2
|
module Regexes
|
3
3
|
# Intended to capture the first line of an error within GHC's output.
|
4
4
|
START_ERROR_REGEX = %r{
|
5
|
-
(.*\.hs)
|
6
|
-
:
|
7
|
-
\d+
|
8
|
-
:
|
9
|
-
\d+
|
10
|
-
:
|
11
|
-
\s
|
5
|
+
(.*\.hs) # filename
|
6
|
+
: # literal colon
|
7
|
+
\d+ # line number
|
8
|
+
: # literal colon
|
9
|
+
(\d+)(?:-(\d+))? # column number
|
10
|
+
: # literal colon
|
11
|
+
\s # space
|
12
12
|
error:.* # literal "error:" with possible marker
|
13
13
|
}x
|
14
14
|
|
@@ -18,7 +18,7 @@ module Harri
|
|
18
18
|
: # literal colon
|
19
19
|
\d+ # line number
|
20
20
|
: # literal colon
|
21
|
-
\d+
|
21
|
+
(\d+)(?:-(\d+))? # column number
|
22
22
|
: # literal colon
|
23
23
|
\s # space
|
24
24
|
error: # literal "error:"
|
@@ -28,7 +28,7 @@ module Harri
|
|
28
28
|
}x
|
29
29
|
|
30
30
|
# Intended to capture the scenario when an entire module is redundant.
|
31
|
-
ENTIRE_MODULE_REDUNDANT_REGEX
|
31
|
+
ENTIRE_MODULE_REDUNDANT_REGEX =/The(?: qualified)? import of ‘([^’]+)’ is redundant(?!.*from module)/
|
32
32
|
|
33
33
|
# Intended to capture the scenario when specific imports within a module are redundant.
|
34
34
|
REDUNDANT_IMPORTS_WITHIN_MODULE_REGEX = /The import of ‘(.+)’ from module ‘(.+)’ is redundant.*/
|
data/lib/harri/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: harri
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rhizomic
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: 'Harri: HAskell Remove Redundant Imports. A way to get GHC to stop harrying
|
14
14
|
you about them.'
|
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
56
56
|
- !ruby/object:Gem::Version
|
57
57
|
version: '0'
|
58
58
|
requirements: []
|
59
|
-
rubygems_version: 3.
|
59
|
+
rubygems_version: 3.4.10
|
60
60
|
signing_key:
|
61
61
|
specification_version: 4
|
62
62
|
summary: Removes redundant Haskell imports.
|