Title: Rule request: Warn when second dot on numeric literal causes member access expression · Issue #1698 · PowerShell/PSScriptAnalyzer · GitHub
Open Graph Title: Rule request: Warn when second dot on numeric literal causes member access expression · Issue #1698 · PowerShell/PSScriptAnalyzer
X Title: Rule request: Warn when second dot on numeric literal causes member access expression · Issue #1698 · PowerShell/PSScriptAnalyzer
Description: Summary of the new feature See: #15756 Unquoted numbers with two or more dots should cast to a [version] rather than $Null When an unquoted number contains two or more dots, the second dot is seen as a member separator (rather than an il...
Open Graph Description: Summary of the new feature See: #15756 Unquoted numbers with two or more dots should cast to a [version] rather than $Null When an unquoted number contains two or more dots, the second dot is seen ...
X Description: Summary of the new feature See: #15756 Unquoted numbers with two or more dots should cast to a [version] rather than $Null When an unquoted number contains two or more dots, the second dot is seen ...
Opengraph URL: https://github.com/PowerShell/PSScriptAnalyzer/issues/1698
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Rule request: Warn when second dot on numeric literal causes member access expression","articleBody":"**Summary of the new feature**\r\n\r\nSee: [`#15756` Unquoted numbers with two or more dots should cast to a `[version]` rather than `$Null`](https://github.com/PowerShell/PowerShell/issues/15756)\r\nWhen an unquoted number contains two or more dots, the second dot is seen as a member separator (rather than an illegal addition decimal separator) which causes the syntax unexpectedly to return `$Null` without notice:\r\n\r\n```PowerShell\r\n$Version = 2.0.9\r\n$Null -eq $Version\r\nTrue\r\n```\r\n\r\n**What is the latest version of PSScriptAnalyzer at the point of writing**\r\n1.19.1\r\n\r\n","author":{"url":"https://github.com/iRon7","@type":"Person","name":"iRon7"},"datePublished":"2021-07-15T09:08:20Z","url":"https://github.com/PowerShell/PSScriptAnalyzer/issues/1698"}
| 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:d29b880c-2842-3e44-2ef7-4694c4dda9c3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BEEA:1D84A0:26272E:32529D:6AFCE1C8 |
| html-safe-nonce | 5ad6eb335e0a68061191b89f078565f93af56a9c36ea90dac75f639a435590e8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRUVBOjFEODRBMDoyNjI3MkU6MzI1MjlEOjZBRkNFMUM4IiwidmlzaXRvcl9pZCI6Ijg3NDY4NjIzNDc5MTk2MTQ0MDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 724704056dda78fd444f0aa0279e97deb5184310b046fb50289c20fb9833f159 |
| hovercard-subject-tag | issue:945168019 |
| 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/1698/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d570a9a70b1126780095c36ba3d97c2d6cb8e0f23296798b3288dd81fed13938/PowerShell/PSScriptAnalyzer/issues/1698 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d570a9a70b1126780095c36ba3d97c2d6cb8e0f23296798b3288dd81fed13938/PowerShell/PSScriptAnalyzer/issues/1698 |
| og:image:alt | Summary of the new feature See: #15756 Unquoted numbers with two or more dots should cast to a [version] rather than $Null When an unquoted number contains two or more dots, the second dot is seen ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | iRon7 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0c05b7eb5b95e29725d01bb1f560a020e3fafd0f033c6b9ed3918fa3161254dd |
| 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 | 79d9154e55368884c8c93766ba4fee076343d37f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width