Linter rule - no unused variables
This rule finds variables that aren't referenced anywhere in the Bicep file.
Linter rule code
Use the following value in the Bicep configuration file to customize rule settings:
no-unused-vars
Solution
To reduce confusion in your template, delete any variables that are defined but not used. This test finds any variables that aren't used anywhere in the template.
You can use Quick Fix to remove the unused variables:
Next steps
For more information about the linter, see Use Bicep linter.
Pripomienky
https://aka.ms/ContentUserFeedback.
Pripravujeme: V priebehu roka 2024 postupne zrušíme službu Problémy v službe GitHub ako mechanizmus pripomienok týkajúcich sa obsahu a nahradíme ju novým systémom pripomienok. Ďalšie informácie nájdete na stránke:Odoslať a zobraziť pripomienky pre