enhance tatl_tael user experience
Change-Id: I793ce5d14a3da5ff153fc60ad52f2d567bdc2137 Reviewed-on: https://gerrit.instructure.com/81017 Tested-by: Jenkins Reviewed-by: Jeremy Stanley <jeremy@instructure.com> Product-Review: James Williams <jamesw@instructure.com> QA-Review: James Williams <jamesw@instructure.com>
This commit is contained in:
parent
c26845dcaf
commit
0622fb51e9
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env ruby
|
||||
require_relative "../gems/tatl_tael/lib/tatl_tael"
|
||||
require 'yaml'
|
||||
|
||||
unless ENV['GERRIT_PATCHSET_REVISION']
|
||||
require 'colorize'
|
||||
|
@ -38,6 +39,13 @@ if linter.wip?
|
|||
exit 0
|
||||
end
|
||||
|
||||
user_config_file = File.expand_path("../../gems/rubocop-canvas/config/gergich_user_config.yml", __FILE__)
|
||||
if File.exists?(user_config_file)
|
||||
config = YAML.load_file(user_config_file) || {}
|
||||
user_list = config['only_report_errors'] || []
|
||||
exit 0 if user_list.include?(ENV['GERRIT_EVENT_ACCOUNT_EMAIL'])
|
||||
end
|
||||
|
||||
errors = []
|
||||
|
||||
linter.ban_new_erb do
|
||||
|
|
Loading…
Reference in New Issue