From d9e5becb0ef31f5b6323cb0bd68aec78176a174b Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 7 Aug 2019 14:18:05 -0700 Subject: [PATCH] tools: Fix running check-openapi locally. --- tools/check-openapi | 2 ++ tools/linter_lib/exclude.py | 1 + 2 files changed, 3 insertions(+) diff --git a/tools/check-openapi b/tools/check-openapi index b1846439d3..f6e6ec285d 100755 --- a/tools/check-openapi +++ b/tools/check-openapi @@ -1,3 +1,5 @@ +#!/usr/bin/env node + var SwaggerParser = require('swagger-parser'), _ = require('underscore'); diff --git a/tools/linter_lib/exclude.py b/tools/linter_lib/exclude.py index 709804ffeb..e80e306290 100644 --- a/tools/linter_lib/exclude.py +++ b/tools/linter_lib/exclude.py @@ -10,6 +10,7 @@ EXCLUDED_FILES = [ # newlines; there's nothing other than trailing newlines we'd be # checking for in these anyway. "locale", + "tools/check-openapi", ] PUPPET_CHECK_RULES_TO_EXCLUDE = [