mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-23 19:12:06 +03:00
Add/Check copyright in source files
This commit is contained in:
parent
d2932769c3
commit
75f1d111d4
2
.github/workflows/check.yml
vendored
2
.github/workflows/check.yml
vendored
@ -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
12
bin/check/ad_hoc.sh
Executable 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
|
||||||
|
|
||||||
|
|
@ -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.
|
||||||
|
@ -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;
|
||||||
|
@ -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};
|
||||||
|
@ -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};
|
||||||
|
Loading…
Reference in New Issue
Block a user