Skip to content

Commit

Permalink
Merge pull request #494 from kmuto/review-preproc-ext
Browse files Browse the repository at this point in the history
review-preprocのモンキーパッチ許容
  • Loading branch information
kmuto committed Mar 25, 2016
2 parents e53911b + a1a52e0 commit e859d45
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/review-preproc
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ rescue Errno::EPIPE
end

def main
if File.file?("review-preproc-ext.rb")
if ENV["REVIEW_SAFE_MODE"].to_i & 2 > 0
warn "review-preproc-ext.rb is prohibited in safe mode. ignored."
else
Kernel.load File.expand_path("review-preproc-ext.rb")
end
end

param = {}

mode = :output
Expand Down

0 comments on commit e859d45

Please sign in to comment.