Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check namespaces in prefer-interpolation linter rule #14050

Merged
merged 1 commit into from
May 6, 2024

Conversation

anthony-c-martin
Copy link
Member

@anthony-c-martin anthony-c-martin commented May 6, 2024

Closes #2773

Microsoft Reviewers: Open in CodeFlow

Comment on lines +417 to +420
public void Codefix_ignores_nested_concats() => AssertCodeFix("""
var test = conc|at('abc', concat('def', 'ghi'), 'jkl')
""", """
var test = 'abc${concat('def', 'ghi')}jkl'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the ability for this linter rule to recursively fix concat() - felt unnecessarily complex, unlikely to come up in the real world, and easy to handle if it does.

Copy link
Contributor

github-actions bot commented May 6, 2024

Test this change out locally with the following install scripts (Action run 8971963806)

VSCode
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-vsix.sh) --run-id 8971963806
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-vsix.ps1) } -RunId 8971963806"
Azure CLI
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-cli.sh) --run-id 8971963806
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-cli.ps1) } -RunId 8971963806"

Copy link
Contributor

github-actions bot commented May 6, 2024

Test Results

    66 files   -     33      66 suites   - 33   23m 5s ⏱️ - 9m 16s
10 873 tests  -     24  10 872 ✅  -     23  1 💤 ±0  0 ❌  - 1 
25 642 runs   - 12 829  25 640 ✅  - 12 827  2 💤  - 1  0 ❌  - 1 

Results for commit c8be897. ± Comparison against base commit d9c3e20.

@anthony-c-martin anthony-c-martin merged commit 8df7c51 into main May 6, 2024
44 checks passed
@anthony-c-martin anthony-c-martin deleted the ant/issue2773 branch May 6, 2024 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Linter does not understand namespaces
2 participants