diff --git a/rudder-lang/src/ast.rs b/rudder-lang/src/ast.rs index af85aaccb05..dcd2df5ad48 100644 --- a/rudder-lang/src/ast.rs +++ b/rudder-lang/src/ast.rs @@ -1,32 +1,4 @@ -// Copyright 2019 Normation SAS -// -// This file is part of Rudder. -// -// Rudder is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// In accordance with the terms of section 7 (7. Additional Terms.) of -// the GNU General Public License version 3, the copyright holders add -// the following Additional permissions: -// Notwithstanding to the terms of section 5 (5. Conveying Modified Source -// Versions) and 6 (6. Conveying Non-Source Forms.) of the GNU General -// Public License version 3, when you create a Related Module, this -// Related Module is not considered as a part of the work and may be -// distributed under the license agreement of your choice. -// A "Related Module" means a set of sources files including their -// documentation that, without modification of the Source Code, enables -// supplementary functions or services in addition to those offered by -// the Software. -// -// Rudder is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with Rudder. If not, see . +// SPDX-License-Identifier: GPL-3.0-only pub mod context; pub mod enums; diff --git a/rudder-lang/src/ast/context.rs b/rudder-lang/src/ast/context.rs index 7406dc8d48a..1f66d556487 100644 --- a/rudder-lang/src/ast/context.rs +++ b/rudder-lang/src/ast/context.rs @@ -1,32 +1,4 @@ -// Copyright 2019 Normation SAS -// -// This file is part of Rudder. -// -// Rudder is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// In accordance with the terms of section 7 (7. Additional Terms.) of -// the GNU General Public License version 3, the copyright holders add -// the following Additional permissions: -// Notwithstanding to the terms of section 5 (5. Conveying Modified Source -// Versions) and 6 (6. Conveying Non-Source Forms.) of the GNU General -// Public License version 3, when you create a Related Module, this -// Related Module is not considered as a part of the work and may be -// distributed under the license agreement of your choice. -// A "Related Module" means a set of sources files including their -// documentation that, without modification of the Source Code, enables -// supplementary functions or services in addition to those offered by -// the Software. -// -// Rudder is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with Rudder. If not, see . +// SPDX-License-Identifier: GPL-3.0-only use crate::error::*; use crate::parser::{PType, Token}; diff --git a/rudder-lang/src/ast/enums.rs b/rudder-lang/src/ast/enums.rs index f025368b351..19ff596ca10 100644 --- a/rudder-lang/src/ast/enums.rs +++ b/rudder-lang/src/ast/enums.rs @@ -1,32 +1,4 @@ -// Copyright 2019 Normation SAS -// -// This file is part of Rudder. -// -// Rudder is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// In accordance with the terms of section 7 (7. Additional Terms.) of -// the GNU General Public License version 3, the copyright holders add -// the following Additional permissions: -// Notwithstanding to the terms of section 5 (5. Conveying Modified Source -// Versions) and 6 (6. Conveying Non-Source Forms.) of the GNU General -// Public License version 3, when you create a Related Module, this -// Related Module is not considered as a part of the work and may be -// distributed under the license agreement of your choice. -// A "Related Module" means a set of sources files including their -// documentation that, without modification of the Source Code, enables -// supplementary functions or services in addition to those offered by -// the Software. -// -// Rudder is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with Rudder. If not, see . +// SPDX-License-Identifier: GPL-3.0-only use super::context::VarKind; use super::resource::Statement; diff --git a/rudder-lang/src/ast/resource.rs b/rudder-lang/src/ast/resource.rs index f4f6bf63512..df380d48b19 100644 --- a/rudder-lang/src/ast/resource.rs +++ b/rudder-lang/src/ast/resource.rs @@ -1,32 +1,4 @@ -// Copyright 2019 Normation SAS -// -// This file is part of Rudder. -// -// Rudder is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// In accordance with the terms of section 7 (7. Additional Terms.) of -// the GNU General Public License version 3, the copyright holders add -// the following Additional permissions: -// Notwithstanding to the terms of section 5 (5. Conveying Modified Source -// Versions) and 6 (6. Conveying Non-Source Forms.) of the GNU General -// Public License version 3, when you create a Related Module, this -// Related Module is not considered as a part of the work and may be -// distributed under the license agreement of your choice. -// A "Related Module" means a set of sources files including their -// documentation that, without modification of the Source Code, enables -// supplementary functions or services in addition to those offered by -// the Software. -// -// Rudder is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with Rudder. If not, see . +// SPDX-License-Identifier: GPL-3.0-only use super::context::{VarContext, VarKind}; use super::enums::*; diff --git a/rudder-lang/src/ast/value.rs b/rudder-lang/src/ast/value.rs index 91f06eeb3a2..675373fc1fb 100644 --- a/rudder-lang/src/ast/value.rs +++ b/rudder-lang/src/ast/value.rs @@ -1,32 +1,4 @@ -// Copyright 2019 Normation SAS -// -// This file is part of Rudder. -// -// Rudder is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// In accordance with the terms of section 7 (7. Additional Terms.) of -// the GNU General Public License version 3, the copyright holders add -// the following Additional permissions: -// Notwithstanding to the terms of section 5 (5. Conveying Modified Source -// Versions) and 6 (6. Conveying Non-Source Forms.) of the GNU General -// Public License version 3, when you create a Related Module, this -// Related Module is not considered as a part of the work and may be -// distributed under the license agreement of your choice. -// A "Related Module" means a set of sources files including their -// documentation that, without modification of the Source Code, enables -// supplementary functions or services in addition to those offered by -// the Software. -// -// Rudder is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with Rudder. If not, see . +// SPDX-License-Identifier: GPL-3.0-only use super::context::VarKind; use super::enums::{EnumExpression, EnumList}; diff --git a/rudder-lang/src/bin/main.rs b/rudder-lang/src/bin/main.rs index e0b813726e9..44132482e23 100644 --- a/rudder-lang/src/bin/main.rs +++ b/rudder-lang/src/bin/main.rs @@ -1,32 +1,4 @@ -// Copyright 2019 Normation SAS -// -// This file is part of Rudder. -// -// Rudder is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// In accordance with the terms of section 7 (7. Additional Terms.) of -// the GNU General Public License version 3, the copyright holders add -// the following Additional permissions: -// Notwithstanding to the terms of section 5 (5. Conveying Modified Source -// Versions) and 6 (6. Conveying Non-Source Forms.) of the GNU General -// Public License version 3, when you create a Related Module, this -// Related Module is not considered as a part of the work and may be -// distributed under the license agreement of your choice. -// A "Related Module" means a set of sources files including their -// documentation that, without modification of the Source Code, enables -// supplementary functions or services in addition to those offered by -// the Software. -// -// Rudder is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with Rudder. If not, see . +// SPDX-License-Identifier: GPL-3.0-only #![allow(clippy::large_enum_variant)] diff --git a/rudder-lang/src/compile.rs b/rudder-lang/src/compile.rs index 5fd75c5f35c..d44469901dc 100644 --- a/rudder-lang/src/compile.rs +++ b/rudder-lang/src/compile.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: GPL-3.0-only + use crate::error::*; use crate::ast::AST; use crate::generators::*; @@ -91,4 +93,4 @@ pub fn compile_file(source: &Path, dest: &Path, technique: bool) -> Result<()> { None }; cfe.generate(&ast, file, technique) -} \ No newline at end of file +} diff --git a/rudder-lang/src/error.rs b/rudder-lang/src/error.rs index f67e5b34367..f364a6adb59 100644 --- a/rudder-lang/src/error.rs +++ b/rudder-lang/src/error.rs @@ -1,34 +1,5 @@ -// Copyright 2019 Normation SAS -// -// This file is part of Rudder. -// -// Rudder is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// In accordance with the terms of section 7 (7. Additional Terms.) of -// the GNU General Public License version 3, the copyright holders add -// the following Additional permissions: -// Notwithstanding to the terms of section 5 (5. Conveying Modified Source -// Versions) and 6 (6. Conveying Non-Source Forms.) of the GNU General -// Public License version 3, when you create a Related Module, this -// Related Module is not considered as a part of the work and may be -// distributed under the license agreement of your choice. -// A "Related Module" means a set of sources files including their -// documentation that, without modification of the Source Code, enables -// supplementary functions or services in addition to those offered by -// the Software. -// -// Rudder is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with Rudder. If not, see . +// SPDX-License-Identifier: GPL-3.0-only -/// /// We write our own error type to have a consistent error type through all our code. /// We translate other types to this one when necessary. /// All case contain 4 elements: diff --git a/rudder-lang/src/generators.rs b/rudder-lang/src/generators.rs index 606b11b1b43..d6841f82424 100644 --- a/rudder-lang/src/generators.rs +++ b/rudder-lang/src/generators.rs @@ -1,32 +1,4 @@ -// Copyright 2019 Normation SAS -// -// This file is part of Rudder. -// -// Rudder is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// In accordance with the terms of section 7 (7. Additional Terms.) of -// the GNU General Public License version 3, the copyright holders add -// the following Additional permissions: -// Notwithstanding to the terms of section 5 (5. Conveying Modified Source -// Versions) and 6 (6. Conveying Non-Source Forms.) of the GNU General -// Public License version 3, when you create a Related Module, this -// Related Module is not considered as a part of the work and may be -// distributed under the license agreement of your choice. -// A "Related Module" means a set of sources files including their -// documentation that, without modification of the Source Code, enables -// supplementary functions or services in addition to those offered by -// the Software. -// -// Rudder is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with Rudder. If not, see . +// SPDX-License-Identifier: GPL-3.0-only mod cfengine; diff --git a/rudder-lang/src/generators/cfengine.rs b/rudder-lang/src/generators/cfengine.rs index d5b088d1c31..8633d3fc89b 100644 --- a/rudder-lang/src/generators/cfengine.rs +++ b/rudder-lang/src/generators/cfengine.rs @@ -1,32 +1,4 @@ -// Copyright 2019 Normation SAS -// -// This file is part of Rudder. -// -// Rudder is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// In accordance with the terms of section 7 (7. Additional Terms.) of -// the GNU General Public License version 3, the copyright holders add -// the following Additional permissions: -// Notwithstanding to the terms of section 5 (5. Conveying Modified Source -// Versions) and 6 (6. Conveying Non-Source Forms.) of the GNU General -// Public License version 3, when you create a Related Module, this -// Related Module is not considered as a part of the work and may be -// distributed under the license agreement of your choice. -// A "Related Module" means a set of sources files including their -// documentation that, without modification of the Source Code, enables -// supplementary functions or services in addition to those offered by -// the Software. -// -// Rudder is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with Rudder. If not, see . +// SPDX-License-Identifier: GPL-3.0-only use super::Generator; use crate::ast::enums::*; diff --git a/rudder-lang/src/lib.rs b/rudder-lang/src/lib.rs index c3c4f88ad79..113ed1f7d85 100644 --- a/rudder-lang/src/lib.rs +++ b/rudder-lang/src/lib.rs @@ -1,7 +1,9 @@ +// SPDX-License-Identifier: GPL-3.0-only + #[macro_use] pub mod error; pub mod compile; pub mod translate; mod ast; mod generators; -mod parser; \ No newline at end of file +mod parser; diff --git a/rudder-lang/src/parser.rs b/rudder-lang/src/parser.rs index 246815bb566..d4d07312856 100644 --- a/rudder-lang/src/parser.rs +++ b/rudder-lang/src/parser.rs @@ -1,32 +1,4 @@ -// Copyright 2019 Normation SAS -// -// This file is part of Rudder. -// -// Rudder is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// In accordance with the terms of section 7 (7. Additional Terms.) of -// the GNU General Public License version 3, the copyright holders add -// the following Additional permissions: -// Notwithstanding to the terms of section 5 (5. Conveying Modified Source -// Versions) and 6 (6. Conveying Non-Source Forms.) of the GNU General -// Public License version 3, when you create a Related Module, this -// Related Module is not considered as a part of the work and may be -// distributed under the license agreement of your choice. -// A "Related Module" means a set of sources files including their -// documentation that, without modification of the Source Code, enables -// supplementary functions or services in addition to those offered by -// the Software. -// -// Rudder is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with Rudder. If not, see . +// SPDX-License-Identifier: GPL-3.0-only mod error; mod token; diff --git a/rudder-lang/src/parser/error.rs b/rudder-lang/src/parser/error.rs index 732586edcb9..fe6ebd192e0 100644 --- a/rudder-lang/src/parser/error.rs +++ b/rudder-lang/src/parser/error.rs @@ -1,32 +1,4 @@ -// Copyright 2019 Normation SAS -// -// This file is part of Rudder. -// -// Rudder is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// In accordance with the terms of section 7 (7. Additional Terms.) of -// the GNU General Public License version 3, the copyright holders add -// the following Additional permissions: -// Notwithstanding to the terms of section 5 (5. Conveying Modified Source -// Versions) and 6 (6. Conveying Non-Source Forms.) of the GNU General -// Public License version 3, when you create a Related Module, this -// Related Module is not considered as a part of the work and may be -// distributed under the license agreement of your choice. -// A "Related Module" means a set of sources files including their -// documentation that, without modification of the Source Code, enables -// supplementary functions or services in addition to those offered by -// the Software. -// -// Rudder is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with Rudder. If not, see . +// SPDX-License-Identifier: GPL-3.0-only use super::{PInput, Token}; use crate::error::*; diff --git a/rudder-lang/src/parser/tests.rs b/rudder-lang/src/parser/tests.rs index fd52b9a8f6f..d457de9275b 100644 --- a/rudder-lang/src/parser/tests.rs +++ b/rudder-lang/src/parser/tests.rs @@ -1,32 +1,4 @@ -// Copyright 2019 Normation SAS -// -// This file is part of Rudder. -// -// Rudder is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// In accordance with the terms of section 7 (7. Additional Terms.) of -// the GNU General Public License version 3, the copyright holders add -// the following Additional permissions: -// Notwithstanding to the terms of section 5 (5. Conveying Modified Source -// Versions) and 6 (6. Conveying Non-Source Forms.) of the GNU General -// Public License version 3, when you create a Related Module, this -// Related Module is not considered as a part of the work and may be -// distributed under the license agreement of your choice. -// A "Related Module" means a set of sources files including their -// documentation that, without modification of the Source Code, enables -// supplementary functions or services in addition to those offered by -// the Software. -// -// Rudder is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with Rudder. If not, see . +// SPDX-License-Identifier: GPL-3.0-only use super::*; use maplit::hashmap; diff --git a/rudder-lang/src/parser/token.rs b/rudder-lang/src/parser/token.rs index 23c93f4f79b..9017c2c1845 100644 --- a/rudder-lang/src/parser/token.rs +++ b/rudder-lang/src/parser/token.rs @@ -1,32 +1,4 @@ -// Copyright 2019 Normation SAS -// -// This file is part of Rudder. -// -// Rudder is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// In accordance with the terms of section 7 (7. Additional Terms.) of -// the GNU General Public License version 3, the copyright holders add -// the following Additional permissions: -// Notwithstanding to the terms of section 5 (5. Conveying Modified Source -// Versions) and 6 (6. Conveying Non-Source Forms.) of the GNU General -// Public License version 3, when you create a Related Module, this -// Related Module is not considered as a part of the work and may be -// distributed under the license agreement of your choice. -// A "Related Module" means a set of sources files including their -// documentation that, without modification of the Source Code, enables -// supplementary functions or services in addition to those offered by -// the Software. -// -// Rudder is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with Rudder. If not, see . +// SPDX-License-Identifier: GPL-3.0-only use nom_locate::LocatedSpanEx; use std::fmt; diff --git a/rudder-lang/src/translate.rs b/rudder-lang/src/translate.rs index 59deb619a41..6ec2560f446 100644 --- a/rudder-lang/src/translate.rs +++ b/rudder-lang/src/translate.rs @@ -1,32 +1,4 @@ -// Copyright 2019 Normation SAS -// -// This file is part of Rudder. -// -// Rudder is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// In accordance with the terms of section 7 (7. Additional Terms.) of -// the GNU General Public License version 3, the copyright holders add -// the following Additional permissions: -// Notwithstanding to the terms of section 5 (5. Conveying Modified Source -// Versions) and 6 (6. Conveying Non-Source Forms.) of the GNU General -// Public License version 3, when you create a Related Module, this -// Related Module is not considered as a part of the work and may be -// distributed under the license agreement of your choice. -// A "Related Module" means a set of sources files including their -// documentation that, without modification of the Source Code, enables -// supplementary functions or services in addition to those offered by -// the Software. -// -// Rudder is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with Rudder. If not, see . +// SPDX-License-Identifier: GPL-3.0-only use crate::error::*; use crate::parser::Token; diff --git a/rudder-lang/tests/compile.rs b/rudder-lang/tests/compile.rs index 825ce068396..ba950ae622c 100755 --- a/rudder-lang/tests/compile.rs +++ b/rudder-lang/tests/compile.rs @@ -1,32 +1,4 @@ -// Copyright 2019 Normation SAS -// -// This file is part of Rudder. -// -// Rudder is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// In accordance with the terms of section 7 (7. Additional Terms.) of -// the GNU General Public License version 3, the copyright holders add -// the following Additional permissions: -// Notwithstanding to the terms of section 5 (5. Conveying Modified Source -// Versions) and 6 (6. Conveying Non-Source Forms.) of the GNU General -// Public License version 3, when you create a Related Module, this -// Related Module is not considered as a part of the work and may be -// distributed under the license agreement of your choice. -// A "Related Module" means a set of sources files including their -// documentation that, without modification of the Source Code, enables -// supplementary functions or services in addition to those offered by -// the Software. -// -// Rudder is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with Rudder. If not, see . +// SPDX-License-Identifier: GPL-3.0-only /// To test only the technique compiler, run this: `cargo test --test compile` @@ -102,4 +74,4 @@ lazy_static! { // #[test_case("f_does_not_exist")] // this test should fail. fn generated_files(filename: &str) { test_generated_file(filename, MAPPED_VIRTUAL_FILES.get(filename)); -} \ No newline at end of file +} diff --git a/rudder-lang/tests/compile_utils.rs b/rudder-lang/tests/compile_utils.rs index 6c10a16c57c..6de8cc91dd1 100644 --- a/rudder-lang/tests/compile_utils.rs +++ b/rudder-lang/tests/compile_utils.rs @@ -1,32 +1,4 @@ -// Copyright 2019 Normation SAS -// -// This file is part of Rudder. -// -// Rudder is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// In accordance with the terms of section 7 (7. Additional Terms.) of -// the GNU General Public License version 3, the copyright holders add -// the following Additional permissions: -// Notwithstanding to the terms of section 5 (5. Conveying Modified Source -// Versions) and 6 (6. Conveying Non-Source Forms.) of the GNU General -// Public License version 3, when you create a Related Module, this -// Related Module is not considered as a part of the work and may be -// distributed under the license agreement of your choice. -// A "Related Module" means a set of sources files including their -// documentation that, without modification of the Source Code, enables -// supplementary functions or services in addition to those offered by -// the Software. -// -// Rudder is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with Rudder. If not, see . +// SPDX-License-Identifier: GPL-3.0-only use std::{ fs, @@ -103,4 +75,4 @@ fn compile_file(path: &Path, filename: &str) -> Result<(), String> { }, _ => panic!("What kind of error is this ? (rudderc). Please report this bug"), } -} \ No newline at end of file +} diff --git a/rudder-lang/tests/translate.rs b/rudder-lang/tests/translate.rs index c76d0bf0ee0..c5fc8c5ac28 100755 --- a/rudder-lang/tests/translate.rs +++ b/rudder-lang/tests/translate.rs @@ -1,2 +1,4 @@ +// SPDX-License-Identifier: GPL-3.0-only + // this file will be the integration tests base for techniques translations from json to rl -// calling files from the *translations* folder \ No newline at end of file +// calling files from the *translations* folder