mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Check for license only in Cargo.toml
This commit is contained in:
parent
6f22251e65
commit
0f07517049
3 changed files with 4 additions and 5 deletions
|
@ -29,11 +29,10 @@ config = {
|
|||
"skip-check-licenses": False,
|
||||
"ignore": {
|
||||
"files": [
|
||||
CONFIG_FILE_PATH, # ignore config file
|
||||
"./.", # ignore hidden files
|
||||
"./.", # ignore hidden files
|
||||
],
|
||||
"directories": [
|
||||
"./.", # ignore hidden directories
|
||||
"./.", # ignore hidden directories
|
||||
],
|
||||
"packages": [],
|
||||
}
|
||||
|
@ -312,7 +311,7 @@ duplicate versions for package "{package}"
|
|||
|
||||
|
||||
def check_toml(file_name, lines):
|
||||
if not file_name.endswith(".toml"):
|
||||
if not file_name.endswith("Cargo.toml"):
|
||||
raise StopIteration
|
||||
ok_licensed = False
|
||||
for idx, line in enumerate(lines):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue