Skip to content

Commit 9c42530

Browse files
feat: add check for dependabot config
1 parent 35a23ab commit 9c42530

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/check_modules.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,9 @@ def check_modules():
455455
if "CODE_OF_CONDUCT" not in str(sorted(module_directory_path.rglob("*"))):
456456
module["issues"].append("Recommendation: There is no CODE_OF_CONDUCT file. It is recommended to add one ([example CODE_OF_CONDUCT file](https://github.com/KristjanESPERANTO/MMM-ApothekenNotdienst/blob/main/CODE_OF_CONDUCT.md)).")
457457

458+
if "dependabot.yml" not in str(sorted(module_directory_path.rglob("*"))) and "dependabot.yaml" not in str(sorted(module_directory_path.rglob("*"))):
459+
module["issues"].append("Recommendation: There is no dependabot configuration file. It is recommended to add one ([example dependabot file](https://github.com/KristjanESPERANTO/MMM-ApothekenNotdienst/blob/main/.github/dependabot.yaml)).")
460+
458461
if "eslintrc" in str(sorted(module_directory_path.rglob("*"))):
459462
module["issues"].append(
460463
"Recommendation: Replace eslintrc by new flat config.")

0 commit comments

Comments
 (0)