Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
[pylint][regression] support BSD xargs when passing arguments. (#41)
Browse files Browse the repository at this point in the history
* [pylint][regression] support BSD xargs when passing arguments.

* [rubocop] be a little more lineant with ABC max complexity.
  • Loading branch information
truthbk authored Feb 1, 2017
1 parent e5b4839 commit e17c687
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,8 @@ Style/SingleLineBlockParams:

BlockLength:
Max: 90

Metrics/AbcSize:
# The ABC size is a calculated magnitude, so this number can be an Integer or
# a Float.
Max: 18
12 changes: 9 additions & 3 deletions lib/tasks/ci/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,15 @@
else
check_env
sh %(flake8 #{ENV['SDK_HOME']})
sh %(find #{ENV['SDK_HOME']} -name '*.py' -not\
\\( -path '*.cache*' -or -path '*embedded*' -or -path '*dd-agent*' -or -path '*venv*' -or -path '*.git*' -or -path '*vendor*' \\)\
| xargs -r -n 80 -P 8 pylint --rcfile=#{ENV['SDK_HOME']}/.pylintrc)
if RUBY_PLATFORM.include? 'darwin'
sh %(find #{ENV['SDK_HOME']} -name '*.py' -not\
\\( -path '*.cache*' -or -path '*embedded*' -or -path '*dd-agent*' -or -path '*venv*' -or -path '*.git*' -or -path '*vendor*' \\)\
| xargs -n 80 -P 8 pylint --rcfile=#{ENV['SDK_HOME']}/.pylintrc)
else
sh %(find #{ENV['SDK_HOME']} -name '*.py' -not\
\\( -path '*.cache*' -or -path '*embedded*' -or -path '*dd-agent*' -or -path '*venv*' -or -path '*.git*' -or -path '*vendor*' \\)\
| xargs -r -n 80 -P 8 pylint --rcfile=#{ENV['SDK_HOME']}/.pylintrc)
end
end
end

Expand Down

0 comments on commit e17c687

Please sign in to comment.