Title: PipelineIndentation: when not set to NoIndentation: does not cater for case where line continuation token is used instead of pipeline (->missing indentation) · Issue #1317 · PowerShell/PSScriptAnalyzer · GitHub
Open Graph Title: PipelineIndentation: when not set to NoIndentation: does not cater for case where line continuation token is used instead of pipeline (->missing indentation) · Issue #1317 · PowerShell/PSScriptAnalyzer
X Title: PipelineIndentation: when not set to NoIndentation: does not cater for case where line continuation token is used instead of pipeline (->missing indentation) · Issue #1317 · PowerShell/PSScriptAnalyzer
Description: foo ` -bar | baz foo ` # comment -bar | baz Expected behavior Calling Invoke-Formatter on it (PipelineIndentation is not NoIndentation, which is not the default), then baz should be indented twice (once because of the previous backtick a...
Open Graph Description: foo ` -bar | baz foo ` # comment -bar | baz Expected behavior Calling Invoke-Formatter on it (PipelineIndentation is not NoIndentation, which is not the default), then baz should be indented twice ...
X Description: foo ` -bar | baz foo ` # comment -bar | baz Expected behavior Calling Invoke-Formatter on it (PipelineIndentation is not NoIndentation, which is not the default), then baz should be indented twice ...
Opengraph URL: https://github.com/PowerShell/PSScriptAnalyzer/issues/1317
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PipelineIndentation: when not set to NoIndentation: does not cater for case where line continuation token is used instead of pipeline (->missing indentation)","articleBody":"\r\n```PowerShell\r\nfoo `\r\n-bar |\r\nbaz\r\n```\r\n\r\n```PowerShell\r\nfoo `\r\n# comment\r\n-bar |\r\nbaz\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\nCalling Invoke-Formatter on it (PipelineIndentation is not NoIndentation, which is not the default), then `baz` should be indented twice (once because of the previous backtick and once because of the rule itself. It only gets indented once\r\n```PowerShell\r\nfoo `\r\n # comment\r\n -bar |\r\n baz\r\n```\r\n\r\nActual behavior\r\n---------------\r\n\r\n```PowerShell\r\nfoo `\r\n # comment\r\n -bar |\r\n baz\r\n```\r\n\r\nIf an unexpected error was thrown then please report the full error details using e.g. `$error[0] | Select-Object *`\r\n\r\nEnvironment data\r\n----------------\r\nPSSA 1.18,1 or latest version of master","author":{"url":"https://github.com/bergmeister","@type":"Person","name":"bergmeister"},"datePublished":"2019-08-21T17:45:40Z","url":"https://github.com/PowerShell/PSScriptAnalyzer/issues/1317"}
| 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:930a3a8b-bc52-7811-7c84-1d0c2548fd86 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EA10:1D8F1:3D0F6F:50EEBD:6AFCE77B |
| html-safe-nonce | e20ad83524f7df5474e2acd249282ff38eddf63e54b82b180db5ec84781e9b25 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTEwOjFEOEYxOjNEMEY2Rjo1MEVFQkQ6NkFGQ0U3N0IiLCJ2aXNpdG9yX2lkIjoiNTc0NjkxNjI3MTA2OTEyODU3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b51617768183b1473fcad9f6f96da6c7b5d009cd92e51b5c90e5f2f09d006ab7 |
| hovercard-subject-tag | issue:483559486 |
| 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/1317/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0e20e7c4a7fc1289f4f308a4e56167ad313ea117c5c7e856ef9e0b58ca6e7242/PowerShell/PSScriptAnalyzer/issues/1317 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0e20e7c4a7fc1289f4f308a4e56167ad313ea117c5c7e856ef9e0b58ca6e7242/PowerShell/PSScriptAnalyzer/issues/1317 |
| og:image:alt | foo ` -bar | baz foo ` # comment -bar | baz Expected behavior Calling Invoke-Formatter on it (PipelineIndentation is not NoIndentation, which is not the default), then baz should be indented twice ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bergmeister |
| 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