Add/Check copyright in source files

This commit is contained in:
Fabrice Reix 2022-10-25 15:22:38 +02:00
parent d2932769c3
commit 75f1d111d4
No known key found for this signature in database
GPG Key ID: BF5213154B2E7155
6 changed files with 66 additions and 0 deletions

View File

@ -25,3 +25,5 @@ jobs:
run: bin/check/xmllint.sh run: bin/check/xmllint.sh
- name: Run crates update - name: Run crates update
run: bin/check/crates.sh run: bin/check/crates.sh
- name: Check ad hoc
run: bin/check/ad_hoc.sh

12
bin/check/ad_hoc.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
set -eu
# Check that Rust source files contains Orange Copyright
find packages -name "*.rs" | while read -r rust_file; do
if ! grep -q "Copyright (C) 2022 Orange" "$rust_file"; then
echo "Missing copyright in $rust_file"
exit 1
fi
done

View File

@ -1,5 +1,6 @@
/* /*
* Hurl (https://hurl.dev) * Hurl (https://hurl.dev)
* Copyright (C) 2022 Orange
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,3 +1,20 @@
/*
* Hurl (https://hurl.dev)
* Copyright (C) 2022 Orange
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
use crate::http::HttpError; use crate::http::HttpError;
use crate::runner; use crate::runner;
use crate::runner::RunnerError; use crate::runner::RunnerError;

View File

@ -1,3 +1,20 @@
/*
* Hurl (https://hurl.dev)
* Copyright (C) 2022 Orange
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
use crate::runner::template::eval_template; use crate::runner::template::eval_template;
use crate::runner::{Error, RunnerError, Value}; use crate::runner::{Error, RunnerError, Value};
use hurl_core::ast::{Filter, FilterValue, RegexValue, SourceInfo}; use hurl_core::ast::{Filter, FilterValue, RegexValue, SourceInfo};

View File

@ -1,3 +1,20 @@
/*
* Hurl (https://hurl.dev)
* Copyright (C) 2022 Orange
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
use crate::ast::{Filter, FilterValue, SourceInfo}; use crate::ast::{Filter, FilterValue, SourceInfo};
use crate::parser::combinators::choice; use crate::parser::combinators::choice;
use crate::parser::primitives::{one_or_more_spaces, try_literal}; use crate::parser::primitives::{one_or_more_spaces, try_literal};