quality 23.0.2 → 23.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/quality/linguist_source_file_globber.rb +6 -7
- data/lib/quality/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84deef32c880406292627cf1eb469389e9948ab6
|
4
|
+
data.tar.gz: 29e62227ceef0381bb3aa1625bf820ec5b9528f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6e2a0bc828e86eff207b7bee32d00a9750c7d8c8ba8a286bdbf9bbd124c42ec6f99433656b0b3a4f1ccd89cfb0d56c38251167161d17998bee8571befb0d094
|
7
|
+
data.tar.gz: ccd333c0e6448486d16231aa7d3bc3c4d11763c93896af7ccfbe05fea7ceac4a3b633777522c6b7aa899444c24beb1405e0e2ca0735cf681b89a4ae4ca0111bd
|
@@ -23,10 +23,10 @@ module Quality
|
|
23
23
|
def submodule_or_symlink?(file)
|
24
24
|
# Skip submodules and symlinks
|
25
25
|
mode = file[:mode]
|
26
|
-
mode_format = (mode &
|
27
|
-
mode_format ==
|
28
|
-
mode_format ==
|
29
|
-
mode_format ==
|
26
|
+
mode_format = (mode & 0170000)
|
27
|
+
mode_format == 0120000 ||
|
28
|
+
mode_format == 040000 ||
|
29
|
+
mode_format == 0160000
|
30
30
|
end
|
31
31
|
|
32
32
|
def all_files
|
@@ -34,8 +34,8 @@ module Quality
|
|
34
34
|
files = []
|
35
35
|
tree = @commit.target.tree
|
36
36
|
tree.walk(:preorder) do |root, file|
|
37
|
-
unless submodule_or_symlink?(file)
|
38
|
-
files << "#{root}#{file[:name]}"
|
37
|
+
unless file[:type] != :blob || submodule_or_symlink?(file)
|
38
|
+
files << "#{root}#{file[:name]}"
|
39
39
|
end
|
40
40
|
end
|
41
41
|
files
|
@@ -60,7 +60,6 @@ module Quality
|
|
60
60
|
def real_files_matching
|
61
61
|
all_files.select do |filename|
|
62
62
|
blob = @file_blob.new(filename, @pwd)
|
63
|
-
|
64
63
|
if blob.generated? || blob.vendored?
|
65
64
|
false
|
66
65
|
else
|
data/lib/quality/version.rb
CHANGED