Skip to content

Commit 68b82cf

Browse files
committed
removed automatic renaming of path
Signed-off-by: Srthkdb <[email protected]>
1 parent 5007d12 commit 68b82cf

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

.vscode/settings.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/attributecode/transform.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,6 @@ def transform_json(data, transformer):
132132
if(data["headers"][0]["tool_name"] == "scancode-toolkit"):
133133
#only takes data inside "files"
134134
data = data["files"]
135-
#automatically renames path to about_resource
136-
if("path" not in renamings.keys()):
137-
renamings["path"] = "about_resource"
138135
except:
139136
pass
140137
if isinstance(data, list):

tests/testdata/test_transform/configuration_scancode

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
field_renamings:
22
extension : new_extension
3+
path : about_resource
34
field_filters:
45
- name
56
- new_extension

0 commit comments

Comments
 (0)