use-recent-api-versions doesn't notify of old API versions when using list* instance methods
- Dominant language
- Bicep
- Stars
- 3.6k
- Forks
- 830
- Avg merge
- 1d 21m
- Merged PRs (30d)
- 79
Description
e.g.
```bicep
resource storageaccount 'Microsoft.Storage/storageAccounts@2021-09-01' = {
name: 'name'
location: 'location'
kind: 'StorageV2'
sku: {
name: 'Premium_LRS'
}
}
var v = listKeys(storageaccount.id, '2015-05-01-preview')
var w = storageaccount.listKeys('2015-05-01-preview')
```
Expected: errors for v and w that the API version is old
Actual: an error only for v
Contributor guide
Research direction
Start from the implementation of the use-recent-api-versions diagnostic and trace how list* instance methods are analyzed compared with the listKeys function form. Reproduce the two examples from the issue, then make sure both old API versions produce diagnostics and verify the relevant tests.
Written by the indexing model from the issue text.
Assessment
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100