{"id":18534090,"url":"https://github.com/electricessence/bitwisetoshortcircuitanalyzer","last_synced_at":"2026-07-15T11:31:30.675Z","repository":{"id":79496936,"uuid":"415347261","full_name":"electricessence/BitwiseToShortCircuitAnalyzer","owner":"electricessence","description":"A Roslyn analyzer for finding and fixing instances of bitwise operators that should be using short-circuit operators instead.","archived":false,"fork":false,"pushed_at":"2021-11-19T23:40:25.000Z","size":84,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T08:06:33.261Z","etag":null,"topics":["analyzer","bitwise","bitwise-operators","short-circuit","short-circuit-operations"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/electricessence.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-10-09T15:28:12.000Z","updated_at":"2022-07-10T19:47:48.000Z","dependencies_parsed_at":"2023-03-04T18:15:47.227Z","dependency_job_id":null,"html_url":"https://github.com/electricessence/BitwiseToShortCircuitAnalyzer","commit_stats":{"total_commits":22,"total_committers":1,"mean_commits":22.0,"dds":0.0,"last_synced_commit":"f37947a427757aa9a05dcd620e6767e55446e4a6"},"previous_names":["electricessence/bitwisetoshortcutanalyzer"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electricessence%2FBitwiseToShortCircuitAnalyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electricessence%2FBitwiseToShortCircuitAnalyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electricessence%2FBitwiseToShortCircuitAnalyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electricessence%2FBitwiseToShortCircuitAnalyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/electricessence","download_url":"https://codeload.github.com/electricessence/BitwiseToShortCircuitAnalyzer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239248438,"owners_count":19607016,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analyzer","bitwise","bitwise-operators","short-circuit","short-circuit-operations"],"created_at":"2024-11-06T19:14:32.060Z","updated_at":"2025-10-26T09:07:05.287Z","avatar_url":"https://github.com/electricessence.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BitwiseToShortCircuitAnalyzer\n\nA Roslyn analyzer for finding and fixing instances of bitwise operators that should be using short-circuit operators instead.\n\n[![NuGet](https://img.shields.io/nuget/v/BitwiseToShortCircuitAnalyzer.svg?style=flat)](https://www.nuget.org/packages/BitwiseToShortCircuitAnalyzer/)\n\n## Examples\n\n### Bitwise And (\u0026)\n```cs\n // Will be flagged for fix.\nbool EvaluateAnd(bool a, bool b) =\u003e a \u0026 b;\n\n// Are both valid and will be ignored.\nbool EvaluateAnd2(bool a, bool b) =\u003e a \u0026\u0026 b;\nint EvaluateAnd(int a, int b) =\u003e a \u0026 b;\n```\n\n### Bitwise Or (|)\n```cs\n // Will be flagged for fix.\nbool EvaluateOr(bool a, bool b) =\u003e a | b;\n\n// Are both valid and will be ignored.\nbool EvaluateOr2(bool a, bool b) =\u003e a || b;\nint EvaluateOr(int a, int b) =\u003e a | b;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felectricessence%2Fbitwisetoshortcircuitanalyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felectricessence%2Fbitwisetoshortcircuitanalyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felectricessence%2Fbitwisetoshortcircuitanalyzer/lists"}