From 1502051453bf16787a59f43004b24d553d39bd26 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Sun, 10 Feb 2019 00:55:18 +0900 Subject: Add read permission for format.ts (#1726) --- .github/CONTRIBUTING.md | 2 +- Docs.md | 2 +- tools/format.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 8538a7897..0fdba492c 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -19,7 +19,7 @@ Before submitting, please make sure the following is done: 1. There are tests that cover the changes. 2. Ensure `./tools/test.py` passes. -3. Format your code with `deno ./tools/format.ts --allow-run`. +3. Format your code with `deno ./tools/format.ts --allow-read --allow-run`. 4. Make sure `./tools/lint.py` passes. ## Changes to `third_party` diff --git a/Docs.md b/Docs.md index b029874d8..50600f362 100644 --- a/Docs.md +++ b/Docs.md @@ -116,7 +116,7 @@ Extra steps for Windows users: ./tools/test.py # Format code. - deno ./tools/format.ts + deno ./tools/format.ts --allow-read --allow-run Other useful commands: diff --git a/tools/format.ts b/tools/format.ts index e5e0b4bf6..d6cfc8ec4 100755 --- a/tools/format.ts +++ b/tools/format.ts @@ -1,4 +1,4 @@ -#!/usr/bin/env deno --allow-run +#!/usr/bin/env deno --allow-read --allow-run // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import * as deno from "deno"; import { join } from "../js/deps/https/deno.land/x/std/fs/path.ts"; -- cgit v1.2.3