Skip to content

Commit

Permalink
Merge pull request #2922 from nexB/ambigous-typo
Browse files Browse the repository at this point in the history
Fix typo in summary: ambigous->ambiguous
  • Loading branch information
pombredanne authored Apr 26, 2022
2 parents 2c9b4ab + 82577b2 commit da33cea
Show file tree
Hide file tree
Showing 16 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions src/summarycode/score.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def compute_license_score(codebase):
declared_license_expression = str(
Licensing().parse(combined_declared_license_expression).simplify()
)
scoring_elements.ambigous_compound_licensing = True
scoring_elements.ambiguous_compound_licensing = True
if scoring_elements.score > 0:
scoring_elements.score -= 10

Expand Down Expand Up @@ -207,7 +207,7 @@ class ScoringElements:
has_license_text = attr.ib(default=False)
declared_copyrights = attr.ib(default=False)
conflicting_license_categories = attr.ib(default=False)
ambigous_compound_licensing = attr.ib(default=False)
ambiguous_compound_licensing = attr.ib(default=False)

def to_dict(self):
return {
Expand All @@ -217,7 +217,7 @@ def to_dict(self):
'has_license_text': self.has_license_text,
'declared_copyrights': self.declared_copyrights,
'conflicting_license_categories': self.conflicting_license_categories,
'ambigous_compound_licensing': self.ambigous_compound_licensing,
'ambiguous_compound_licensing': self.ambiguous_compound_licensing,
}


Expand Down
2 changes: 1 addition & 1 deletion tests/summarycode/data/score/basic-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"has_license_text": true,
"declared_copyrights": true,
"conflicting_license_categories": false,
"ambigous_compound_licensing": false
"ambiguous_compound_licensing": false
}
},
"files": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"has_license_text": true,
"declared_copyrights": true,
"conflicting_license_categories": true,
"ambigous_compound_licensing": false
"ambiguous_compound_licensing": false
}
},
"files": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"has_license_text": true,
"declared_copyrights": true,
"conflicting_license_categories": false,
"ambigous_compound_licensing": false
"ambiguous_compound_licensing": false
}
},
"files": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"has_license_text": false,
"declared_copyrights": false,
"conflicting_license_categories": false,
"ambigous_compound_licensing": true
"ambiguous_compound_licensing": true
}
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion tests/summarycode/data/score/no_license_text-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"has_license_text": false,
"declared_copyrights": true,
"conflicting_license_categories": false,
"ambigous_compound_licensing": false
"ambiguous_compound_licensing": false
}
},
"files": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"has_license_text": true,
"declared_copyrights": true,
"conflicting_license_categories": true,
"ambigous_compound_licensing": true
"ambiguous_compound_licensing": true
},
"declared_holder": "Example Corp.",
"primary_language": "Python",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"has_license_text": true,
"declared_copyrights": false,
"conflicting_license_categories": false,
"ambigous_compound_licensing": false
"ambiguous_compound_licensing": false
},
"declared_holder": "",
"primary_language": "C",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"has_license_text": true,
"declared_copyrights": true,
"conflicting_license_categories": false,
"ambigous_compound_licensing": false
"ambiguous_compound_licensing": false
},
"declared_holder": "Example Corp.",
"primary_language": "Python",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"has_license_text": true,
"declared_copyrights": true,
"conflicting_license_categories": false,
"ambigous_compound_licensing": false
"ambiguous_compound_licensing": false
},
"declared_holder": "Example Corp., Demo Corp.",
"primary_language": "Python",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"has_license_text": true,
"declared_copyrights": true,
"conflicting_license_categories": false,
"ambigous_compound_licensing": true
"ambiguous_compound_licensing": true
},
"declared_holder": "Example Corp.",
"primary_language": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"has_license_text": true,
"declared_copyrights": true,
"conflicting_license_categories": false,
"ambigous_compound_licensing": false
"ambiguous_compound_licensing": false
},
"declared_holder": "Example Corp.",
"primary_language": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"has_license_text": true,
"declared_copyrights": true,
"conflicting_license_categories": false,
"ambigous_compound_licensing": false
"ambiguous_compound_licensing": false
},
"declared_holder": "Demo Corporation, Example Corp.",
"primary_language": "Python",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"has_license_text": true,
"declared_copyrights": true,
"conflicting_license_categories": false,
"ambigous_compound_licensing": false
"ambiguous_compound_licensing": false
},
"declared_holder": "Mort Bay Consulting Pty. Ltd. (Australia) and others, Sun Microsystems, Inc.",
"primary_language": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"has_license_text": true,
"declared_copyrights": true,
"conflicting_license_categories": false,
"ambigous_compound_licensing": false
"ambiguous_compound_licensing": false
},
"declared_holder": "Example Corp.",
"primary_language": "Python",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"has_license_text": true,
"declared_copyrights": true,
"conflicting_license_categories": false,
"ambigous_compound_licensing": false
"ambiguous_compound_licensing": false
},
"declared_holder": "Example Corp.",
"primary_language": "",
Expand Down

0 comments on commit da33cea

Please sign in to comment.