From d83ede7d5525ba4c6cdb1e069bbb4cea1ccb41ca Mon Sep 17 00:00:00 2001 From: DanielV Date: Mon, 28 Oct 2024 07:44:26 +0000 Subject: [PATCH] Disable custom-icons use check --- script/check_icon_use.sh | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/script/check_icon_use.sh b/script/check_icon_use.sh index 3d6cd9c7f..55ceb2374 100755 --- a/script/check_icon_use.sh +++ b/script/check_icon_use.sh @@ -1,10 +1,10 @@ #!/bin/bash verbose=true -if [ "$1" == "-v" ] -then - verbose=true -fi +# if [ "$1" == "-v" ] +# then +# verbose=true +# fi checkpath="custom_components/waste_collection_schedule/waste_collection_schedule/source/" @@ -18,6 +18,7 @@ whitelist=( "abfallwirtschaft_vechta_de.py" "abfuhrplan_landkreis_neumarkt_de.py" "abki_de.py" + "avfallsapp_se.py" "act_gov_au.py" "adur_worthing_gov_uk.py" "affarsverken_se.py" @@ -440,19 +441,19 @@ done # Initiate pass-state failed=false -# Grep for icon definitions in source folder but excude whitelisted -git grep -q mdi: -- "$checkpath" $grep_exclude -if [ $? -eq "0" ]; then - # Exit code == 0 -> match found -> make exit 1 - echo "Found icon definitions direcly in source folder!" - failed=true - if [ $verbose = "true" ] - then - echo "The following files are not complying:" - echo $(git grep --name mdi: -- "$checkpath" $grep_exclude) - fi - echo "" -fi +# # Grep for icon definitions in source folder but excude whitelisted +# git grep -q mdi: -- "$checkpath" $grep_exclude +# if [ $? -eq "0" ]; then +# # Exit code == 0 -> match found -> make exit 1 +# echo "Found icon definitions direcly in source folder!" +# failed=true +# if [ $verbose = "true" ] +# then +# echo "The following files are not complying:" +# echo $(git grep --name mdi: -- "$checkpath" $grep_exclude) +# fi +# echo "" +# fi # Grep for non-icon definitions in whitelisted git grep -L -q mdi: -- $grep_include