diff options
author | Matt Mastracci <matthew@mastracci.com> | 2023-06-26 09:38:55 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-26 09:38:55 -0600 |
commit | fa935e553a9ec37d39d2274432a00f1b465cef0f (patch) | |
tree | d5024190474b6ee596977a6dde81335fb491d351 /test_util/src | |
parent | 801b9ec62d94f201e67d053ee90dae0b70e50a42 (diff) |
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.
Diffstat (limited to 'test_util/src')
-rw-r--r-- | test_util/src/factory.rs | 5 |
1 files changed, 2 insertions, 3 deletions
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] |