Title: Revise semantics of compatibility rule profile inclusion · Issue #1224 · PowerShell/PSScriptAnalyzer · GitHub
Open Graph Title: Revise semantics of compatibility rule profile inclusion · Issue #1224 · PowerShell/PSScriptAnalyzer
X Title: Revise semantics of compatibility rule profile inclusion · Issue #1224 · PowerShell/PSScriptAnalyzer
Description: UseCompatibleCommands and UseCompatibleTypes create a "union" profile for comparison of target profiles to a base standard. This allows us to use simple heuristic to determine whether a PowerShell AST represents something that is platfor...
Open Graph Description: UseCompatibleCommands and UseCompatibleTypes create a "union" profile for comparison of target profiles to a base standard. This allows us to use simple heuristic to determine whether a PowerShell ...
X Description: UseCompatibleCommands and UseCompatibleTypes create a "union" profile for comparison of target profiles to a base standard. This allows us to use simple heuristic to determine whether a P...
Opengraph URL: https://github.com/PowerShell/PSScriptAnalyzer/issues/1224
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Revise semantics of compatibility rule profile inclusion","articleBody":"UseCompatibleCommands and UseCompatibleTypes create a \"union\" profile for comparison of target profiles to a base standard. This allows us to use simple heuristic to determine whether a PowerShell AST represents something that is platform-specific (we see if the command or type is available in any platform, and if not ignore it as user-defined).\r\n\r\nThe problem here is that to create good warnings we have to have a good baseline union profile. Meaning we need to be judicious about how we make the profile. But since we could get it wrong, I created an informal mechanism for including things into the union profile. We use all the profiles in the \"profile directory\" and nothing else:\r\n\r\nhttps://github.com/PowerShell/PSScriptAnalyzer/blob/df566b577803375cd6f1faba7d9d5d8715deefab/PSCompatibilityAnalyzer/Microsoft.PowerShell.CrossCompatibility/Utility/CompatibilityProfileLoader.cs#L76\r\n\r\nThis means that:\r\n\r\n- Including only one target, you still get good warnings, because it's compared against all the other profiles we ship by default\r\n- Using a target not in the profile directory, that won't be included in the union comparison\r\n- You can configure a different profile directory to get rid of comparisons to PowerShells you don't care about\r\n\r\nThis *works* but it's a bit subtle. I think we should move to:\r\n\r\n- All targets are in the union by default\r\n- Targets in the profile directory are in the union by default\r\n- Targets can be excluded from the union in a configuration setting, by name or path\r\n- The profile directory automatic union inclusion can be turned off by default","author":{"url":"https://github.com/rjmholt","@type":"Person","name":"rjmholt"},"datePublished":"2019-04-23T23:58:24Z","url":"https://github.com/PowerShell/PSScriptAnalyzer/issues/1224"}
| 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:84367896-b2f3-5eff-bb5b-e291b58b6aa5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CBB8:2F6606:1468E03:1CCD0BC:6AFCE779 |
| html-safe-nonce | 0f125b3fa636a3f73ab753c665d43dac9a0259d0d0ea2693e368551268469404 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkI4OjJGNjYwNjoxNDY4RTAzOjFDQ0QwQkM6NkFGQ0U3NzkiLCJ2aXNpdG9yX2lkIjoiNDI0Nzc4MzE4NjUxMzA2MTc1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4449c962e4c691e6d84507b15f6905ea89cd970c3609af6e3f126ecddb9c120f |
| hovercard-subject-tag | issue:436438654 |
| 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/1224/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6a9762d9f3003a97d6733f4b991a4b3fdf0671d976c9d333c4b380c71ff249e4/PowerShell/PSScriptAnalyzer/issues/1224 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6a9762d9f3003a97d6733f4b991a4b3fdf0671d976c9d333c4b380c71ff249e4/PowerShell/PSScriptAnalyzer/issues/1224 |
| og:image:alt | UseCompatibleCommands and UseCompatibleTypes create a "union" profile for comparison of target profiles to a base standard. This allows us to use simple heuristic to determine whether a PowerShell ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rjmholt |
| hostname | github.com |
| expected-hostname | github.com |
| None | 99aede4c5f55ec5cf06666a8c9e03ebf9f85f7231223e7f1c38c16e5504835b3 |
| 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 | ecfd63ca125ec74b42f74eeb158b3fa081c8c497 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width