From fa935e553a9ec37d39d2274432a00f1b465cef0f Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Mon, 26 Jun 2023 09:38:55 -0600 Subject: chore: Ensure copyright line is the first in the file (#19608) The copyright checker was allowing files with code above the copyright line in a few places, mainly as a result of IDEs ordering imports improperly. This makes the check more robust, and adds a whitelist of valid lines that may appear before the copyright line. --- test_util/src/factory.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test_util/src') diff --git a/test_util/src/factory.rs b/test_util/src/factory.rs index f11d774d4..f29b64485 100644 --- a/test_util/src/factory.rs +++ b/test_util/src/factory.rs @@ -1,8 +1,7 @@ -use std::collections::HashSet; -use std::path::PathBuf; - // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. use glob::glob; +use std::collections::HashSet; +use std::path::PathBuf; /// Generate a unit test factory verified and backed by a glob. #[macro_export] -- cgit v1.2.3