Skip to content

Commit 7e50e17

Browse files
Move detection log after matches in LicenseDetection
Reference: #3266 Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
1 parent fca7b72 commit 7e50e17

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/licensedcode/detection.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -159,19 +159,19 @@ class LicenseDetection:
159159
'using the SPDX license expression syntax and ScanCode license keys.')
160160
)
161161

162-
detection_log = attr.ib(
163-
repr=False,
162+
matches = attr.ib(
164163
default=attr.Factory(list),
165164
metadata=dict(
166-
help='A list of detection DetectionRule explaining how '
167-
'this detection was created.'
165+
help='List of license matches combined in this detection.'
168166
)
169167
)
170168

171-
matches = attr.ib(
169+
detection_log = attr.ib(
170+
repr=False,
172171
default=attr.Factory(list),
173172
metadata=dict(
174-
help='List of license matches combined in this detection.'
173+
help='A list of detection DetectionRule explaining how '
174+
'this detection was created.'
175175
)
176176
)
177177

@@ -585,8 +585,8 @@ class UniqueDetection:
585585
identifier = attr.ib(default=None)
586586
license_expression = attr.ib(default=None)
587587
count = attr.ib(default=None)
588-
detection_log = attr.ib(default=attr.Factory(list))
589588
matches = attr.ib(default=attr.Factory(list))
589+
detection_log = attr.ib(default=attr.Factory(list))
590590
files = attr.ib(factory=list)
591591

592592
@classmethod

0 commit comments

Comments
 (0)