Title: PSScriptAnalyzer fails to find types · Issue #850 · PowerShell/PSScriptAnalyzer · GitHub
Open Graph Title: PSScriptAnalyzer fails to find types · Issue #850 · PowerShell/PSScriptAnalyzer
X Title: PSScriptAnalyzer fails to find types · Issue #850 · PowerShell/PSScriptAnalyzer
Description: I have working code containing at the top: using namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels using namespace Microsoft.Azure.Commands.Common.Authentication.Abstractions Import-Module "AzureRm" In the middle of my...
Open Graph Description: I have working code containing at the top: using namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels using namespace Microsoft.Azure.Commands.Common.Authentication.Abstractions Imp...
X Description: I have working code containing at the top: using namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels using namespace Microsoft.Azure.Commands.Common.Authentication.Abstractions Imp...
Opengraph URL: https://github.com/PowerShell/PSScriptAnalyzer/issues/850
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PSScriptAnalyzer fails to find types","articleBody":"I have working code containing at the top:\r\n\r\n```PowerShell\r\nusing namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels\r\nusing namespace Microsoft.Azure.Commands.Common.Authentication.Abstractions\r\n\r\nImport-Module \"AzureRm\"\r\n```\r\n\r\nIn the middle of my code I define variables of type `[IStorageContext]` and `[PSResourceGroupDeployment]`. When the script opens in VS Code, these types are flagged as not found by PSScriptAnalyzer, but found after changes. Similarly, this same code is being flagged by PSScriptAnalyzer in PowerShell Gallery.\r\n","author":{"url":"https://github.com/chriskuech","@type":"Person","name":"chriskuech"},"datePublished":"2018-01-19T02:48:10Z","url":"https://github.com/PowerShell/PSScriptAnalyzer/issues/850"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:333286cd-10f7-b6d8-c5d1-ae8a3a1397db |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A48E:31B08D:C32818:118B09D:6AFDAAFA |
| html-safe-nonce | fbf49077fb207323b611a4ed88a08cbf1566c4cb42d7862eb751902a35a04eea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDhFOjMxQjA4RDpDMzI4MTg6MTE4QjA5RDo2QUZEQUFGQSIsInZpc2l0b3JfaWQiOiI5ODk2OTY0NTQwNDc5MzUyMjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7e277b8a83fcc4bcda6368171e3013c999e1b91a99d1a2b0cbcdb0b68bb632cb |
| hovercard-subject-tag | issue:289846190 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PSScriptAnalyzer/850/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0e1966a33ac612ed1b9d19ee40f2a61270b6962430adc56c4b8c6dad1339b7b2/PowerShell/PSScriptAnalyzer/issues/850 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0e1966a33ac612ed1b9d19ee40f2a61270b6962430adc56c4b8c6dad1339b7b2/PowerShell/PSScriptAnalyzer/issues/850 |
| og:image:alt | I have working code containing at the top: using namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels using namespace Microsoft.Azure.Commands.Common.Authentication.Abstractions Imp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chriskuech |
| hostname | github.com |
| expected-hostname | github.com |
| None | bc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PSScriptAnalyzer git https://github.com/PowerShell/PSScriptAnalyzer.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 33149177 |
| octolytics-dimension-repository_nwo | PowerShell/PSScriptAnalyzer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 33149177 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PSScriptAnalyzer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0ddf53eb35c87f1f8df13dbf75c3bdadbfc6e969 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width