Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
a286959d
Commit
a286959d
authored
Apr 29, 2014
by
Han Su Kim
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1054 from edx/han/remove-json-lint-script
removing json_lint.sh script
parents
11ec74d5
e41435d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
26 deletions
+0
-26
util/json_lint.sh
+0
-26
No files found.
util/json_lint.sh
deleted
100755 → 0
View file @
11ec74d5
#!/bin/bash
# A very simple check to see if the json files in the project at least compile.
# If they do not, a cryptic message that might be helpful is produced.
# Save current directory so we can come back; change to repo root
STARTED_FROM
=
`
pwd
`
cd
$(
git rev-parse
--show-toplevel
)
# Do very basic syntax check of every json file to make sure it's valid format
for
file
in
`
find
.
-iname
'*.json'
`
;
do
cat
$file
| python
-m
json.tool 1>/dev/null 2>json_complaint.err
;
retval
=
$?
if
[
$retval
!=
0
]
;
then
echo
"JSON errors in
$file
"
cat
json_complaint.err
rm
-f
json_complaint.err
cd
$STARTED_FROM
exit
$retval
;
fi
done
# Everything went ok!
rm
-f
json_complaint.err
cd
$STARTED_FROM
exit
0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment