Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Unified Diff: tools/checkdeps/checkdeps.py

Issue 75693002: GTTF: Make checkdeps.py produce JSON output that can be used in a recipe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/checkdeps/results.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/checkdeps/checkdeps.py
diff --git a/tools/checkdeps/checkdeps.py b/tools/checkdeps/checkdeps.py
index 0dd0f49a399cef51c19bddb4ec3de597fab0f812..c486a6270a4687cd0644a0f66fa1d95975186921 100755
--- a/tools/checkdeps/checkdeps.py
+++ b/tools/checkdeps/checkdeps.py
@@ -186,6 +186,9 @@ def main():
'-v', '--verbose',
action='store_true', default=False,
help='Print debug logging')
+ option_parser.add_option(
+ '', '--json',
+ help='Path to JSON output file')
options, args = option_parser.parse_args()
deps_checker = DepsChecker(options.base_directory,
@@ -213,6 +216,11 @@ def main():
deps_checker.results_formatter = results.TemporaryRulesFormatter()
elif options.count_violations:
deps_checker.results_formatter = results.CountViolationsFormatter()
+
+ if options.json:
+ deps_checker.results_formatter = results.JSONResultsFormatter(
+ options.json, deps_checker.results_formatter)
+
deps_checker.CheckDirectory(start_dir)
return deps_checker.Report()
« no previous file with comments | « no previous file | tools/checkdeps/results.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698