mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +00:00
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.
This commit is contained in:
parent
801b9ec62d
commit
fa935e553a
4 changed files with 32 additions and 16 deletions
|
@ -1,4 +1,3 @@
|
|||
use super::MacroConfig;
|
||||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||
use super::generator_state::GeneratorState;
|
||||
use super::signature::Arg;
|
||||
|
@ -6,6 +5,7 @@ use super::signature::NumericArg;
|
|||
use super::signature::ParsedSignature;
|
||||
use super::signature::RetVal;
|
||||
use super::signature::Special;
|
||||
use super::MacroConfig;
|
||||
use super::V8MappingError;
|
||||
use proc_macro2::TokenStream;
|
||||
use quote::quote;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue