Skip to content

Commit 82577b2

Browse files
committed
Fix typo in summary: ambigous->ambiguous
Reported-by: Thomas Druez <tdruez@nexb.com> Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent 2c9b4ab commit 82577b2

16 files changed

+18
-18
lines changed

src/summarycode/score.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def compute_license_score(codebase):
179179
declared_license_expression = str(
180180
Licensing().parse(combined_declared_license_expression).simplify()
181181
)
182-
scoring_elements.ambigous_compound_licensing = True
182+
scoring_elements.ambiguous_compound_licensing = True
183183
if scoring_elements.score > 0:
184184
scoring_elements.score -= 10
185185

@@ -207,7 +207,7 @@ class ScoringElements:
207207
has_license_text = attr.ib(default=False)
208208
declared_copyrights = attr.ib(default=False)
209209
conflicting_license_categories = attr.ib(default=False)
210-
ambigous_compound_licensing = attr.ib(default=False)
210+
ambiguous_compound_licensing = attr.ib(default=False)
211211

212212
def to_dict(self):
213213
return {
@@ -217,7 +217,7 @@ def to_dict(self):
217217
'has_license_text': self.has_license_text,
218218
'declared_copyrights': self.declared_copyrights,
219219
'conflicting_license_categories': self.conflicting_license_categories,
220-
'ambigous_compound_licensing': self.ambigous_compound_licensing,
220+
'ambiguous_compound_licensing': self.ambiguous_compound_licensing,
221221
}
222222

223223

tests/summarycode/data/score/basic-expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"has_license_text": true,
3232
"declared_copyrights": true,
3333
"conflicting_license_categories": false,
34-
"ambigous_compound_licensing": false
34+
"ambiguous_compound_licensing": false
3535
}
3636
},
3737
"files": [

tests/summarycode/data/score/inconsistent_licenses_copyleft-expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"has_license_text": true,
3232
"declared_copyrights": true,
3333
"conflicting_license_categories": true,
34-
"ambigous_compound_licensing": false
34+
"ambiguous_compound_licensing": false
3535
}
3636
},
3737
"files": [

tests/summarycode/data/score/no_license_ambiguity-expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"has_license_text": true,
3232
"declared_copyrights": true,
3333
"conflicting_license_categories": false,
34-
"ambigous_compound_licensing": false
34+
"ambiguous_compound_licensing": false
3535
}
3636
},
3737
"files": [

tests/summarycode/data/score/no_license_or_copyright-expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"has_license_text": false,
3232
"declared_copyrights": false,
3333
"conflicting_license_categories": false,
34-
"ambigous_compound_licensing": true
34+
"ambiguous_compound_licensing": true
3535
}
3636
},
3737
"files": [

tests/summarycode/data/score/no_license_text-expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"has_license_text": false,
3232
"declared_copyrights": true,
3333
"conflicting_license_categories": false,
34-
"ambigous_compound_licensing": false
34+
"ambiguous_compound_licensing": false
3535
}
3636
},
3737
"files": [

tests/summarycode/data/summary/conflicting_license_categories/conflicting_license_categories.expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"has_license_text": true,
3535
"declared_copyrights": true,
3636
"conflicting_license_categories": true,
37-
"ambigous_compound_licensing": true
37+
"ambiguous_compound_licensing": true
3838
},
3939
"declared_holder": "Example Corp.",
4040
"primary_language": "Python",

tests/summarycode/data/summary/end-2-end/bug-1141.expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"has_license_text": true,
3535
"declared_copyrights": false,
3636
"conflicting_license_categories": false,
37-
"ambigous_compound_licensing": false
37+
"ambiguous_compound_licensing": false
3838
},
3939
"declared_holder": "",
4040
"primary_language": "C",

tests/summarycode/data/summary/holders/clear_holder.expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"has_license_text": true,
3535
"declared_copyrights": true,
3636
"conflicting_license_categories": false,
37-
"ambigous_compound_licensing": false
37+
"ambiguous_compound_licensing": false
3838
},
3939
"declared_holder": "Example Corp.",
4040
"primary_language": "Python",

tests/summarycode/data/summary/holders/combined_holders.expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"has_license_text": true,
3535
"declared_copyrights": true,
3636
"conflicting_license_categories": false,
37-
"ambigous_compound_licensing": false
37+
"ambiguous_compound_licensing": false
3838
},
3939
"declared_holder": "Example Corp., Demo Corp.",
4040
"primary_language": "Python",

0 commit comments

Comments
 (0)