Growstuff/growstuff

View on GitHub
script/check_static.rb

Summary

Maintainability
A
0 mins
Test Coverage
#!/usr/bin/env ruby
# frozen_string_literal: true

checks = [
  # 'overcommit -r',
  'bundle exec script/check_contributors_md.rb'
]

return_values = checks.collect { |t| system(t) }
failures = return_values.count(&:!)
abort "#{failures} static check(s) failed" unless failures.zero?