Add syntax checks to Dangerfile

This commit is contained in:
nrew225 2016-10-25 16:52:07 -07:00
parent b0e2f06a8b
commit c2f87c6cc2
3 changed files with 18 additions and 3 deletions

View file

@ -9,6 +9,14 @@ warn 'Please rebase to get rid of the merge commits in this Pull Request' if git
require 'json'
results = File.read 'ab-results-README.md-markdown-table.json'
j = JSON.parse results
if j['error']==true
fail j['title']
markdown j['message']
# Check syntx
require 'json'
results = File.read 'syntaxcheck.json'
j = JSON.parse results
if j['error']==true
fail j['title']
markdown j['message']