Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rules: dotnet: adding new .NET rules #931

Merged
merged 1 commit into from
Sep 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions nursery/access-unmanaged-com-objects-in-dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
rule:
meta:
name: access unmanaged COM objects in .NET
namespace: host-interaction/com
authors:
- [email protected]
scopes:
static: function
dynamic: unsupported # requires .NET API feature
features:
- or:
- api: System.Runtime.InteropServices.Marshal::GetTypeFromCLSID
14 changes: 14 additions & 0 deletions nursery/implement-ui-automation-client-in-dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
rule:
meta:
name: implement UI automation client in .NET
namespace: host-interaction/ui/automation
authors:
- [email protected]
scopes:
static: file
dynamic: unsupported # requires .NET Namespace feature
references:
- https://learn.microsoft.com/en-us/dotnet/api/system.windows.automation?view=windowsdesktop-8.0
features:
- or:
- namespace: System.Windows.Automation
14 changes: 14 additions & 0 deletions nursery/interact-with-shortcut-via-iwshshortcut-in-dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
rule:
meta:
name: interact with shortcut via IWshShortcut in .NET
namespace: host-interaction/shortcut
authors:
- [email protected]
scopes:
static: function
dynamic: unsupported # requires .NET Class feature
references:
- https://stackoverflow.com/questions/4897655/create-a-shortcut-on-desktop
features:
- or:
- class: IWshRuntimeLibrary.IWshShortcut
14 changes: 14 additions & 0 deletions nursery/interact-with-windows-scripting-host-in-dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
rule:
meta:
name: interact with Windows Scripting Host in .NET
namespace: host-interaction/wsh
authors:
- [email protected]
scopes:
static: file
dynamic: unsupported # requires .NET Namespace feature
references:
- https://stackoverflow.com/questions/4897655/create-a-shortcut-on-desktop
features:
- or:
- namespace: IWshRuntimeLibrary
14 changes: 14 additions & 0 deletions nursery/use-dotnet-library-simplejson.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
rule:
meta:
name: use .NET library SimpleJSON
namespace: data-manipulation/json
authors:
- [email protected]
scopes:
static: file
dynamic: unsupported # requires .NET Class feature
references:
- https://github.com/mhallin/SimpleJSON.NET
features:
- or:
- class: Json.SimpleJson
14 changes: 14 additions & 0 deletions nursery/use-dotnet-library-websocket-sharp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
rule:
meta:
name: use .NET library websocket-sharp
namespace: communication/websocket
authors:
- [email protected]
scopes:
static: file
dynamic: unsupported # requires .NET Namespace feature
references:
- https://github.com/sta/websocket-sharp
features:
- or:
- namespace: WebSocketSharp
Loading