Title: PSUseDeclaredVarsMoreThanAssignments does not detect variables with multiple assignments · Issue #833 · PowerShell/PSScriptAnalyzer · GitHub
Open Graph Title: PSUseDeclaredVarsMoreThanAssignments does not detect variables with multiple assignments · Issue #833 · PowerShell/PSScriptAnalyzer
X Title: PSUseDeclaredVarsMoreThanAssignments does not detect variables with multiple assignments · Issue #833 · PowerShell/PSScriptAnalyzer
Description: Download ScriptAnalyzer from PowerShellGallery. Contribute to PowerShell/PSScriptAnalyzer development by creating an account on GitHub.
Open Graph Description: Download ScriptAnalyzer from PowerShellGallery. Contribute to PowerShell/PSScriptAnalyzer development by creating an account on GitHub.
X Description: Download ScriptAnalyzer from PowerShellGallery. Contribute to PowerShell/PSScriptAnalyzer development by creating an account on GitHub.
Opengraph URL: https://github.com/PowerShell/PSScriptAnalyzer
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PSUseDeclaredVarsMoreThanAssignments does not detect variables with multiple assignments","articleBody":"PSScriptAnalyzer correctly displays `PSUseDeclaredVarsMoreThanAssignments` given the following code:\r\n\r\n`$someVariable = 'some value'`\r\n\r\nHowever, we can prevent this by declaring a type for variable a type. e.g.\r\n\r\n```\r\n$someVariable = 'some value'\r\n$someVariable = 'some value'\r\n```\r\n","author":{"url":"https://github.com/JohnLBevan","@type":"Person","name":"JohnLBevan"},"datePublished":"2017-11-24T11:32:26Z","url":"https://github.com/PowerShell/PSScriptAnalyzer/issues/833"}
| 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 | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:6f2f72df-9d1e-7dd4-e117-f26609464768 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B830:2A130F:1E0C060:29C35DC:6AFD0CA1 |
| html-safe-nonce | 5c97eb29652ca784613738925745ffe276d196637dc6899b91c8d102a9043e46 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODMwOjJBMTMwRjoxRTBDMDYwOjI5QzM1REM6NkFGRDBDQTEiLCJ2aXNpdG9yX2lkIjoiNTIyMTE3NTIzNDI0MDc3NzM3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | be1f2dec1fdd7c2222d0acef524a8fb6d746567662c06cd215571ac6eb2d6e1b |
| hovercard-subject-tag | repository:33149177 |
| 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/PowerShell/PSScriptAnalyzer/issues/833 |
| twitter:image | https://repository-images.githubusercontent.com/33149177/18c68000-a5b0-11e9-9d88-c03ff0e21635 |
| twitter:card | summary_large_image |
| og:image | https://repository-images.githubusercontent.com/33149177/18c68000-a5b0-11e9-9d88-c03ff0e21635 |
| og:image:alt | Download ScriptAnalyzer from PowerShellGallery. Contribute to PowerShell/PSScriptAnalyzer development by creating an account on GitHub. |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b29de2abb97b6307b16270785efeb58b51a117d5a9b659acf00b77aa00e7043b |
| turbo-cache-control | no-cache |
| 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 | 8c9e619def6d670dc18a45d3b02cea938c1c7e47 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width