{"action":"created","issue":{"url":"https://api.github.com/repos/PowerShell/PSScriptAnalyzer/issues/880","repository_url":"https://api.github.com/repos/PowerShell/PSScriptAnalyzer","labels_url":"https://api.github.com/repos/PowerShell/PSScriptAnalyzer/issues/880/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/PSScriptAnalyzer/issues/880/comments","events_url":"https://api.github.com/repos/PowerShell/PSScriptAnalyzer/issues/880/events","html_url":"https://github.com/PowerShell/PSScriptAnalyzer/issues/880","id":295573106,"number":880,"title":"Question : how to retrieve the settings object in an external rule inside a script module ?","user":{"login":"LaurentDardenne","id":4894452,"avatar_url":"https://avatars0.githubusercontent.com/u/4894452?v=4","gravatar_id":"","url":"https://api.github.com/users/LaurentDardenne","html_url":"https://github.com/LaurentDardenne","followers_url":"https://api.github.com/users/LaurentDardenne/followers","following_url":"https://api.github.com/users/LaurentDardenne/following{/other_user}","gists_url":"https://api.github.com/users/LaurentDardenne/gists{/gist_id}","starred_url":"https://api.github.com/users/LaurentDardenne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaurentDardenne/subscriptions","organizations_url":"https://api.github.com/users/LaurentDardenne/orgs","repos_url":"https://api.github.com/users/LaurentDardenne/repos","events_url":"https://api.github.com/users/LaurentDardenne/events{/privacy}","received_events_url":"https://api.github.com/users/LaurentDardenne/received_events","type":"User","site_admin":false},"labels":[{"id":193898735,"url":"https://api.github.com/repos/PowerShell/PSScriptAnalyzer/labels/Issue%20-%20Question","name":"Issue - Question","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-08T16:15:55Z","updated_at":"2018-02-27T01:31:32Z","closed_at":null,"author_association":"NONE","body":"Is it possible to retrieve the settings object in an external rule inside a script module ?\r\nA priori [here](https://github.com/PowerShell/PSScriptAnalyzer/blob/2056fe0c63dc63dfac2cc18cb79b1373d7f5ec6f/Engine/ScriptAnalyzer.cs#L1169) the rule module does not know anything about the caller.\r\nThe goal is to create a configurable Powershell rule.\r\nIs this possibility only accessible in C# ?"},"comment":{"url":"https://api.github.com/repos/PowerShell/PSScriptAnalyzer/issues/comments/368714432","html_url":"https://github.com/PowerShell/PSScriptAnalyzer/issues/880#issuecomment-368714432","issue_url":"https://api.github.com/repos/PowerShell/PSScriptAnalyzer/issues/880","id":368714432,"user":{"login":"bergmeister","id":9250262,"avatar_url":"https://avatars0.githubusercontent.com/u/9250262?v=4","gravatar_id":"","url":"https://api.github.com/users/bergmeister","html_url":"https://github.com/bergmeister","followers_url":"https://api.github.com/users/bergmeister/followers","following_url":"https://api.github.com/users/bergmeister/following{/other_user}","gists_url":"https://api.github.com/users/bergmeister/gists{/gist_id}","starred_url":"https://api.github.com/users/bergmeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bergmeister/subscriptions","organizations_url":"https://api.github.com/users/bergmeister/orgs","repos_url":"https://api.github.com/users/bergmeister/repos","events_url":"https://api.github.com/users/bergmeister/events{/privacy}","received_events_url":"https://api.github.com/users/bergmeister/received_events","type":"User","site_admin":false},"created_at":"2018-02-27T01:31:32Z","updated_at":"2018-02-27T01:31:32Z","author_association":"COLLABORATOR","body":"Is the goal to use the -Settings parameter to enable/disable rules from the custom rules written In PpwerShell using the -CustomRulePath parameter?"}}
{"actor":{"display_login":"bergmeister"}}