diff options
author | Jacob Vosmaer (GitLab) <jacob@gitlab.com> | 2018-01-30 16:21:55 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-01-30 16:21:55 +0000 |
commit | 5c2fe2d3d75615a263977e2988b3e37aa0e9895a (patch) | |
tree | 10dec5f6c30922e41f4b343ce560bac4d115505b /scripts | |
parent | b886a75dab6566a6a0250d1cc0e3b93f5d0ccfca (diff) | |
download | gitlab-ce-5c2fe2d3d75615a263977e2988b3e37aa0e9895a.tar.gz |
Decouple more of Repository from Rugged
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/lint-rugged | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/lint-rugged b/scripts/lint-rugged index 3f8fcb558e3..03f780f880b 100755 --- a/scripts/lint-rugged +++ b/scripts/lint-rugged @@ -21,6 +21,7 @@ ALLOWED = [ ].freeze rugged_lines = IO.popen(%w[git grep -i -n rugged -- app config lib], &:read).lines +rugged_lines = rugged_lines.select { |l| /^[^:]*\.rb:/ =~ l } rugged_lines = rugged_lines.reject { |l| l.start_with?(*ALLOWED) } rugged_lines = rugged_lines.reject do |line| code, _comment = line.split('# ', 2) |