Skip to content

Commit

Permalink
Removes license check in rustfmt (#2388)
Browse files Browse the repository at this point in the history
* Removes license check in rustfmt

* check licenses

* update Cargo.lock

* update license header

* revert submodules

Co-authored-by: Bryan Chen <[email protected]>
  • Loading branch information
zjb0807 and xlc authored Dec 2, 2022
1 parent 85cd828 commit 54e1fb3
Show file tree
Hide file tree
Showing 19 changed files with 27 additions and 17 deletions.
1 change: 0 additions & 1 deletion .rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ hard_tabs = true
max_width = 120
comment_width = 100
wrap_comments = true
license_template_path = "HEADER-GPL3"
2 changes: 1 addition & 1 deletion HEADER-GPL3
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is part of Acala.

// Copyright (C) {\d+(-\d+)?} Acala Foundation.
// Copyright (C) 2020-2022 Acala Foundation.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0

// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion modules/aggregated-dex/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is part of Acala.

// Copyright (C) 2022 Acala Foundation.
// Copyright (C) 2020-2022 Acala Foundation.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0

// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion modules/aggregated-dex/src/mock.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is part of Acala.

// Copyright (C) 2022 Acala Foundation.
// Copyright (C) 2020-2022 Acala Foundation.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0

// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion modules/aggregated-dex/src/tests.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is part of Acala.

// Copyright (C) 2022 Acala Foundation.
// Copyright (C) 2020-2022 Acala Foundation.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0

// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion modules/aggregated-dex/src/weights.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is part of Acala.

// Copyright (C) 2022 Acala Foundation.
// Copyright (C) 2020-2022 Acala Foundation.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0

// This program is free software: you can redistribute it and/or modify
Expand Down
1 change: 0 additions & 1 deletion modules/cdp-treasury/src/weights.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// This file is part of Acala.

// Copyright (C) 2020-2022 Acala Foundation.
Expand Down
2 changes: 1 addition & 1 deletion modules/evm/benches/orml_benches.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is part of Acala.

// Copyright (C) 2020-2021 Acala Foundation.
// Copyright (C) 2020-2022 Acala Foundation.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0

// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion modules/evm/src/bench/mock.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is part of Acala.

// Copyright (C) 2020-2021 Acala Foundation.
// Copyright (C) 2020-2022 Acala Foundation.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0

// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion modules/evm/src/bench/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is part of Acala.

// Copyright (C) 2020-2021 Acala Foundation.
// Copyright (C) 2020-2022 Acala Foundation.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0

// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion modules/support/src/bounded.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is part of Acala.

// Copyright (C) 2022 Acala Foundation.
// Copyright (C) 2020-2022 Acala Foundation.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0

// This program is free software: you can redistribute it and/or modify
Expand Down
12 changes: 12 additions & 0 deletions node/cli/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,16 @@

fn main() {
substrate_build_script_utils::generate_cargo_keys();
orml_build_script_utils::check_file_licenses(
"../..",
include_bytes!("../../HEADER-GPL3"),
&[
"../../evm-tests",
"../../ecosystem-modules/stable-asset",
"../../launch",
"../../orml",
"../../predeploy-contracts",
"../../ts-tests",
],
);
}
2 changes: 1 addition & 1 deletion runtime/common/benches/precompile.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is part of Acala.

// Copyright (C) 2020-2021 Acala Foundation.
// Copyright (C) 2020-2022 Acala Foundation.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0

// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion runtime/common/src/bench/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is part of Acala.

// Copyright (C) 2020-2021 Acala Foundation.
// Copyright (C) 2020-2022 Acala Foundation.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0

// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion runtime/common/src/gas_to_weight_ratio.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is part of Acala.

// Copyright (C) 2020-2021 Acala Foundation.
// Copyright (C) 2020-2022 Acala Foundation.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0

// This program is free software: you can redistribute it and/or modify
Expand Down
Empty file removed runtime/common/src/weights/lib.rs
Empty file.
2 changes: 1 addition & 1 deletion runtime/integration-tests/src/relaychain/erc20.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is part of Acala.

// Copyright (C) 2020-2021 Acala Foundation.
// Copyright (C) 2020-2022 Acala Foundation.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0

// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion runtime/integration-tests/src/relaychain/statemine.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is part of Acala.

// Copyright (C) 2020-2021 Acala Foundation.
// Copyright (C) 2020-2022 Acala Foundation.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0

// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion runtime/integration-tests/src/relaychain/statemint.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is part of Acala.

// Copyright (C) 2020-2021 Acala Foundation.
// Copyright (C) 2020-2022 Acala Foundation.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0

// This program is free software: you can redistribute it and/or modify
Expand Down

0 comments on commit 54e1fb3

Please sign in to comment.