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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49ec2b14b69e1e46b1639b6c45dccae827587312
4
- data.tar.gz: 8dca7aeb97809947d0f683f3839a9d94369d1ce3
3
+ metadata.gz: 84deef32c880406292627cf1eb469389e9948ab6
4
+ data.tar.gz: 29e62227ceef0381bb3aa1625bf820ec5b9528f2
5
5
  SHA512:
6
- metadata.gz: 063e2d1109349c75f50116f7e3b638a037cdbb338c0cbd0721e6a8d05c1365fdc7c4ad5145895d51564470f43402b4d30d3d45d3e0c5a28d9a41149d80b622f7
7
- data.tar.gz: ddbe23614abeb07ec9d305e37906f7f047cb9aa6322cc866fb597a782c363eeb8a00f21ed750497d85078e588931b75a76c6abc106440f7772417b8a2bb38300
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 & 0o0170000)
27
- mode_format == 0o0120000 ||
28
- mode_format == 0o040000 ||
29
- mode_format == 0o0160000
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]}" if file[:type] == :blob
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
@@ -4,5 +4,5 @@
4
4
  # reek, flog, flay and rubocop and makes sure your numbers don't get
5
5
  # any worse over time.
6
6
  module Quality
7
- VERSION = '23.0.2'
7
+ VERSION = '23.0.3'
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quality
3
3
  version: !ruby/object:Gem::Version
4
- version: 23.0.2
4
+ version: 23.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vince Broz