Title: Question about 'PSUseDeclaredVarsMoreThanAssignment' rule · Issue #636 · PowerShell/PSScriptAnalyzer · GitHub
Open Graph Title: Question about 'PSUseDeclaredVarsMoreThanAssignment' rule · Issue #636 · PowerShell/PSScriptAnalyzer
X Title: Question about 'PSUseDeclaredVarsMoreThanAssignment' rule · Issue #636 · PowerShell/PSScriptAnalyzer
Description: This code triggers a violation : $isduplicate=$false Get-ChildItem c:\| Foreach-Object { $isDuplicate=$true } This one too : $isduplicate=$false Get-ChildItem c:\| Foreach-Object { $isDuplicate=$true } $isDuplicate #true But not this one...
Open Graph Description: This code triggers a violation : $isduplicate=$false Get-ChildItem c:\| Foreach-Object { $isDuplicate=$true } This one too : $isduplicate=$false Get-ChildItem c:\| Foreach-Object { $isDuplicate=$tr...
X Description: This code triggers a violation : $isduplicate=$false Get-ChildItem c:\| Foreach-Object { $isDuplicate=$true } This one too : $isduplicate=$false Get-ChildItem c:\| Foreach-Object { $isDuplicate=$tr...
Opengraph URL: https://github.com/PowerShell/PSScriptAnalyzer/issues/636
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Question about 'PSUseDeclaredVarsMoreThanAssignment' rule","articleBody":"This code triggers a violation :\n\n``` Powershell\n$isduplicate=$false\nGet-ChildItem c:\\|\n Foreach-Object {\n $isDuplicate=$true\n }\n```\n\nThis one too :\n\n``` Powershell\n$isduplicate=$false\nGet-ChildItem c:\\|\n Foreach-Object {\n $isDuplicate=$true\n }\n$isDuplicate\n#true\n```\n\nBut not this one :\n\n``` Powershell\n$isduplicate=$false\nGet-ChildItem c:\\|\n Foreach-Object {\n }\n$isDuplicate\n```\n\nIt is the first violation correct ?\n","author":{"url":"https://github.com/LaurentDardenne","@type":"Person","name":"LaurentDardenne"},"datePublished":"2016-10-13T15:07:12Z","url":"https://github.com/PowerShell/PSScriptAnalyzer/issues/636"}
| 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:70c3556a-2716-ae5c-eec0-34bc7c92db4b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 87D4:2E728B:89EA0:B5389:6AFCFB23 |
| html-safe-nonce | 3861585f76089b171ef0ff862708b7a4e8a2a5b7bc3298b62169787bfae2f769 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0Q0OjJFNzI4Qjo4OUVBMDpCNTM4OTo2QUZDRkIyMyIsInZpc2l0b3JfaWQiOiIzNDcxMDc5NTA1NDA4MDk3MDU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3875bbae6c8fdfe9d1087c002d051cc1b3679b74fa437f7401f50e5e03fb58ff |
| hovercard-subject-tag | issue:182816347 |
| 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/636/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d1a282bbc00efe8439f36feda70a2d8046aa9787652a71f90aaafd69fad61eaa/PowerShell/PSScriptAnalyzer/issues/636 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d1a282bbc00efe8439f36feda70a2d8046aa9787652a71f90aaafd69fad61eaa/PowerShell/PSScriptAnalyzer/issues/636 |
| og:image:alt | This code triggers a violation : $isduplicate=$false Get-ChildItem c:\| Foreach-Object { $isDuplicate=$true } This one too : $isduplicate=$false Get-ChildItem c:\| Foreach-Object { $isDuplicate=$tr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | LaurentDardenne |
| hostname | github.com |
| expected-hostname | github.com |
| None | cfabad6ee26d2b84c7afef4ae0cc71b8b692fb9d66f9f15997652ef991bfd3f4 |
| 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 | 35f85b78676038389558a41adf8d76e474592ede |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width