{"action":"opened","number":2030,"pull_request":{"url":"https://api.github.com/repos/openwhisk/openwhisk/pulls/2030","id":110945823,"html_url":"https://github.com/openwhisk/openwhisk/pull/2030","diff_url":"https://github.com/openwhisk/openwhisk/pull/2030.diff","patch_url":"https://github.com/openwhisk/openwhisk/pull/2030.patch","issue_url":"https://api.github.com/repos/openwhisk/openwhisk/issues/2030","number":2030,"state":"open","locked":false,"title":"Update scanCode.py that is configuration file driven.","user":{"login":"mrutkows","id":7816715,"avatar_url":"https://avatars0.githubusercontent.com/u/7816715?v=3","gravatar_id":"","url":"https://api.github.com/users/mrutkows","html_url":"https://github.com/mrutkows","followers_url":"https://api.github.com/users/mrutkows/followers","following_url":"https://api.github.com/users/mrutkows/following{/other_user}","gists_url":"https://api.github.com/users/mrutkows/gists{/gist_id}","starred_url":"https://api.github.com/users/mrutkows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrutkows/subscriptions","organizations_url":"https://api.github.com/users/mrutkows/orgs","repos_url":"https://api.github.com/users/mrutkows/repos","events_url":"https://api.github.com/users/mrutkows/events{/privacy}","received_events_url":"https://api.github.com/users/mrutkows/received_events","type":"User","site_admin":false},"body":"This version of scancode is fully configurable (using an external .cfg file).  A default scanCode.cfg is provided with all the defaults that reflect all the settings openwhisk uses today.  In addition, the text for the 2 supported licenses are separated out (and loaded by scanCode) after being listed in the .cfg file.  The config file supports the following sections/configurations:\r\n\r\n[Licenses] = list of license files to load/scan for\r\n[Inclusions] = filters (wildcard supported) e.g., *.scal, *.py, etc.) with lists of scans to run for those file filters.\r\n[Exclusions] = list of \"paths\" (dirs) to exclude from tests.  These are now defaulted to all paths \r\n[Options] = ony 1 option for now...\r\n    > LICENSE_SLACK_LENGTH=500\r\n\r\nUsed when code files (e.g., Python) need to have licenses to appear beyond the very first character of the file. This option tells the scan to allow licenses to appear starting\r\nwithin first 'x' characters of each code file (as provided by this option's value).  This value is large enough (default) to handle all OW files (actually, 270ihs might work) but Python files can allow for longer module descriptions before appearance of the LICENSE text.\r\n\r\nI have tested this tool with ALL OW .org repos. and reflect in the cfg file which repos. do not yet pass scancode and I will subsequently work to open issues to have them support Travis/scanCode.  For those repos. that support Travis/scancode already i fixed all their Python files via PRs and all have been merged at this time.  \r\n\r\nPlease also see this repo. with all my personal tests...\r\nhttps://github.com/mrutkows/codescan\r\n\r\nAs a closing thought, perhaps this tool should be in its own repo. so as not to pre-req openwhisk repo. for subprojects that do not require an complete OW platform installed (perhaps already using bmix?).","created_at":"2017-03-15T21:25:39Z","updated_at":"2017-03-15T21:25:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openwhisk/openwhisk/pulls/2030/commits","review_comments_url":"https://api.github.com/repos/openwhisk/openwhisk/pulls/2030/comments","review_comment_url":"https://api.github.com/repos/openwhisk/openwhisk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openwhisk/openwhisk/issues/2030/comments","statuses_url":"https://api.github.com/repos/openwhisk/openwhisk/statuses/53a1f8251318d18757e7fc1c98b53f924509ab89","head":{"label":"mrutkows:scancode-configurable","ref":"scancode-configurable","sha":"53a1f8251318d18757e7fc1c98b53f924509ab89","user":{"login":"mrutkows","id":7816715,"avatar_url":"https://avatars0.githubusercontent.com/u/7816715?v=3","gravatar_id":"","url":"https://api.github.com/users/mrutkows","html_url":"https://github.com/mrutkows","followers_url":"https://api.github.com/users/mrutkows/followers","following_url":"https://api.github.com/users/mrutkows/following{/other_user}","gists_url":"https://api.github.com/users/mrutkows/gists{/gist_id}","starred_url":"https://api.github.com/users/mrutkows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrutkows/subscriptions","organizations_url":"https://api.github.com/users/mrutkows/orgs","repos_url":"https://api.github.com/users/mrutkows/repos","events_url":"https://api.github.com/users/mrutkows/events{/privacy}","received_events_url":"https://api.github.com/users/mrutkows/received_events","type":"User","site_admin":false},"repo":{"id":85121183,"name":"openwhisk","full_name":"mrutkows/openwhisk","owner":{"login":"mrutkows","id":7816715,"avatar_url":"https://avatars0.githubusercontent.com/u/7816715?v=3","gravatar_id":"","url":"https://api.github.com/users/mrutkows","html_url":"https://github.com/mrutkows","followers_url":"https://api.github.com/users/mrutkows/followers","following_url":"https://api.github.com/users/mrutkows/following{/other_user}","gists_url":"https://api.github.com/users/mrutkows/gists{/gist_id}","starred_url":"https://api.github.com/users/mrutkows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrutkows/subscriptions","organizations_url":"https://api.github.com/users/mrutkows/orgs","repos_url":"https://api.github.com/users/mrutkows/repos","events_url":"https://api.github.com/users/mrutkows/events{/privacy}","received_events_url":"https://api.github.com/users/mrutkows/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mrutkows/openwhisk","description":"Apache OpenWhisk is a serverless event-based programming service and an Apache Incubator project","fork":true,"url":"https://api.github.com/repos/mrutkows/openwhisk","forks_url":"https://api.github.com/repos/mrutkows/openwhisk/forks","keys_url":"https://api.github.com/repos/mrutkows/openwhisk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mrutkows/openwhisk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mrutkows/openwhisk/teams","hooks_url":"https://api.github.com/repos/mrutkows/openwhisk/hooks","issue_events_url":"https://api.github.com/repos/mrutkows/openwhisk/issues/events{/number}","events_url":"https://api.github.com/repos/mrutkows/openwhisk/events","assignees_url":"https://api.github.com/repos/mrutkows/openwhisk/assignees{/user}","branches_url":"https://api.github.com/repos/mrutkows/openwhisk/branches{/branch}","tags_url":"https://api.github.com/repos/mrutkows/openwhisk/tags","blobs_url":"https://api.github.com/repos/mrutkows/openwhisk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mrutkows/openwhisk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mrutkows/openwhisk/git/refs{/sha}","trees_url":"https://api.github.com/repos/mrutkows/openwhisk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mrutkows/openwhisk/statuses/{sha}","languages_url":"https://api.github.com/repos/mrutkows/openwhisk/languages","stargazers_url":"https://api.github.com/repos/mrutkows/openwhisk/stargazers","contributors_url":"https://api.github.com/repos/mrutkows/openwhisk/contributors","subscribers_url":"https://api.github.com/repos/mrutkows/openwhisk/subscribers","subscription_url":"https://api.github.com/repos/mrutkows/openwhisk/subscription","commits_url":"https://api.github.com/repos/mrutkows/openwhisk/commits{/sha}","git_commits_url":"https://api.github.com/repos/mrutkows/openwhisk/git/commits{/sha}","comments_url":"https://api.github.com/repos/mrutkows/openwhisk/comments{/number}","issue_comment_url":"https://api.github.com/repos/mrutkows/openwhisk/issues/comments{/number}","contents_url":"https://api.github.com/repos/mrutkows/openwhisk/contents/{+path}","compare_url":"https://api.github.com/repos/mrutkows/openwhisk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mrutkows/openwhisk/merges","archive_url":"https://api.github.com/repos/mrutkows/openwhisk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mrutkows/openwhisk/downloads","issues_url":"https://api.github.com/repos/mrutkows/openwhisk/issues{/number}","pulls_url":"https://api.github.com/repos/mrutkows/openwhisk/pulls{/number}","milestones_url":"https://api.github.com/repos/mrutkows/openwhisk/milestones{/number}","notifications_url":"https://api.github.com/repos/mrutkows/openwhisk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mrutkows/openwhisk/labels{/name}","releases_url":"https://api.github.com/repos/mrutkows/openwhisk/releases{/id}","deployments_url":"https://api.github.com/repos/mrutkows/openwhisk/deployments","created_at":"2017-03-15T21:09:05Z","updated_at":"2017-03-15T21:09:07Z","pushed_at":"2017-03-15T21:13:57Z","git_url":"git://github.com/mrutkows/openwhisk.git","ssh_url":"git@github.com:mrutkows/openwhisk.git","clone_url":"https://github.com/mrutkows/openwhisk.git","svn_url":"https://github.com/mrutkows/openwhisk","homepage":"http://openwhisk.org","size":46039,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openwhisk:master","ref":"master","sha":"e5926ccb517cf8ee0361de419570e45db70fd115","user":{"login":"openwhisk","id":16900235,"avatar_url":"https://avatars2.githubusercontent.com/u/16900235?v=3","gravatar_id":"","url":"https://api.github.com/users/openwhisk","html_url":"https://github.com/openwhisk","followers_url":"https://api.github.com/users/openwhisk/followers","following_url":"https://api.github.com/users/openwhisk/following{/other_user}","gists_url":"https://api.github.com/users/openwhisk/gists{/gist_id}","starred_url":"https://api.github.com/users/openwhisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openwhisk/subscriptions","organizations_url":"https://api.github.com/users/openwhisk/orgs","repos_url":"https://api.github.com/users/openwhisk/repos","events_url":"https://api.github.com/users/openwhisk/events{/privacy}","received_events_url":"https://api.github.com/users/openwhisk/received_events","type":"Organization","site_admin":false},"repo":{"id":52039373,"name":"openwhisk","full_name":"openwhisk/openwhisk","owner":{"login":"openwhisk","id":16900235,"avatar_url":"https://avatars2.githubusercontent.com/u/16900235?v=3","gravatar_id":"","url":"https://api.github.com/users/openwhisk","html_url":"https://github.com/openwhisk","followers_url":"https://api.github.com/users/openwhisk/followers","following_url":"https://api.github.com/users/openwhisk/following{/other_user}","gists_url":"https://api.github.com/users/openwhisk/gists{/gist_id}","starred_url":"https://api.github.com/users/openwhisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openwhisk/subscriptions","organizations_url":"https://api.github.com/users/openwhisk/orgs","repos_url":"https://api.github.com/users/openwhisk/repos","events_url":"https://api.github.com/users/openwhisk/events{/privacy}","received_events_url":"https://api.github.com/users/openwhisk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openwhisk/openwhisk","description":"Apache OpenWhisk is a serverless event-based programming service and an Apache Incubator project","fork":false,"url":"https://api.github.com/repos/openwhisk/openwhisk","forks_url":"https://api.github.com/repos/openwhisk/openwhisk/forks","keys_url":"https://api.github.com/repos/openwhisk/openwhisk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openwhisk/openwhisk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openwhisk/openwhisk/teams","hooks_url":"https://api.github.com/repos/openwhisk/openwhisk/hooks","issue_events_url":"https://api.github.com/repos/openwhisk/openwhisk/issues/events{/number}","events_url":"https://api.github.com/repos/openwhisk/openwhisk/events","assignees_url":"https://api.github.com/repos/openwhisk/openwhisk/assignees{/user}","branches_url":"https://api.github.com/repos/openwhisk/openwhisk/branches{/branch}","tags_url":"https://api.github.com/repos/openwhisk/openwhisk/tags","blobs_url":"https://api.github.com/repos/openwhisk/openwhisk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openwhisk/openwhisk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openwhisk/openwhisk/git/refs{/sha}","trees_url":"https://api.github.com/repos/openwhisk/openwhisk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openwhisk/openwhisk/statuses/{sha}","languages_url":"https://api.github.com/repos/openwhisk/openwhisk/languages","stargazers_url":"https://api.github.com/repos/openwhisk/openwhisk/stargazers","contributors_url":"https://api.github.com/repos/openwhisk/openwhisk/contributors","subscribers_url":"https://api.github.com/repos/openwhisk/openwhisk/subscribers","subscription_url":"https://api.github.com/repos/openwhisk/openwhisk/subscription","commits_url":"https://api.github.com/repos/openwhisk/openwhisk/commits{/sha}","git_commits_url":"https://api.github.com/repos/openwhisk/openwhisk/git/commits{/sha}","comments_url":"https://api.github.com/repos/openwhisk/openwhisk/comments{/number}","issue_comment_url":"https://api.github.com/repos/openwhisk/openwhisk/issues/comments{/number}","contents_url":"https://api.github.com/repos/openwhisk/openwhisk/contents/{+path}","compare_url":"https://api.github.com/repos/openwhisk/openwhisk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openwhisk/openwhisk/merges","archive_url":"https://api.github.com/repos/openwhisk/openwhisk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openwhisk/openwhisk/downloads","issues_url":"https://api.github.com/repos/openwhisk/openwhisk/issues{/number}","pulls_url":"https://api.github.com/repos/openwhisk/openwhisk/pulls{/number}","milestones_url":"https://api.github.com/repos/openwhisk/openwhisk/milestones{/number}","notifications_url":"https://api.github.com/repos/openwhisk/openwhisk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openwhisk/openwhisk/labels{/name}","releases_url":"https://api.github.com/repos/openwhisk/openwhisk/releases{/id}","deployments_url":"https://api.github.com/repos/openwhisk/openwhisk/deployments","created_at":"2016-02-18T21:16:19Z","updated_at":"2017-03-15T16:24:38Z","pushed_at":"2017-03-15T21:20:39Z","git_url":"git://github.com/openwhisk/openwhisk.git","ssh_url":"git@github.com:openwhisk/openwhisk.git","clone_url":"https://github.com/openwhisk/openwhisk.git","svn_url":"https://github.com/openwhisk/openwhisk","homepage":"http://openwhisk.org","size":46039,"stargazers_count":1198,"watchers_count":1198,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":241,"mirror_url":null,"open_issues_count":281,"forks":241,"open_issues":281,"watchers":1198,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openwhisk/openwhisk/pulls/2030"},"html":{"href":"https://github.com/openwhisk/openwhisk/pull/2030"},"issue":{"href":"https://api.github.com/repos/openwhisk/openwhisk/issues/2030"},"comments":{"href":"https://api.github.com/repos/openwhisk/openwhisk/issues/2030/comments"},"review_comments":{"href":"https://api.github.com/repos/openwhisk/openwhisk/pulls/2030/comments"},"review_comment":{"href":"https://api.github.com/repos/openwhisk/openwhisk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openwhisk/openwhisk/pulls/2030/commits"},"statuses":{"href":"https://api.github.com/repos/openwhisk/openwhisk/statuses/53a1f8251318d18757e7fc1c98b53f924509ab89"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":368,"deletions":139,"changed_files":1}}
{"actor":{"display_login":"mrutkows"}}