Repository navigation
Disable linter rule "Maximum number of variables used" when the file does not contain declarations used in files meant to deployed and variables are exported - #17149
Merged
Jonny Eskew (jeskew) merged 2 commits intoMay 14, 2025
Conversation
…do not contain declarations used in ARM files meant to be deployed and that exports at least one variable
… is correctly triggered when variables are exported but any of "param", "output", "resource" or "module" are present in the same file
Jonny Eskew (jeskew)
approved these changes
May 14, 2025
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## main #17149 +/- ##
===========================================
- Coverage 94.28% 9.37% -84.91%
===========================================
Files 1113 7 -1106
Lines 100791 288 -100503
Branches 8734 123 -8611
===========================================
- Hits 95028 27 -95001
+ Misses 4595 261 -4334
+ Partials 1168 0 -1168
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Contributor
|
Thanks for your contribution, GABRIELNGBTUC ! |
Contributor
|
Test this change out locally with the following install scripts (Action run 15029384224) VSCode
Azure CLI
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #15456
The linter rule "Maximum number of variables used" is modified to ignore a file containing more than 512 variables when:
param,output,resourceandmoduledeclarations are present in the fileChecklist
Microsoft Reviewers: Open in CodeFlow