From 82577b2490068e4f63d4d658546f3578ffa07ee6 Mon Sep 17 00:00:00 2001 From: Philippe Ombredanne Date: Mon, 25 Apr 2022 17:03:35 +0200 Subject: [PATCH] Fix typo in summary: ambigous->ambiguous Reported-by: Thomas Druez Signed-off-by: Philippe Ombredanne --- src/summarycode/score.py | 6 +++--- tests/summarycode/data/score/basic-expected.json | 2 +- .../data/score/inconsistent_licenses_copyleft-expected.json | 2 +- .../data/score/no_license_ambiguity-expected.json | 2 +- .../data/score/no_license_or_copyright-expected.json | 2 +- tests/summarycode/data/score/no_license_text-expected.json | 2 +- .../conflicting_license_categories.expected.json | 2 +- .../data/summary/end-2-end/bug-1141.expected.json | 2 +- .../data/summary/holders/clear_holder.expected.json | 2 +- .../data/summary/holders/combined_holders.expected.json | 2 +- .../data/summary/license_ambiguity/ambiguous.expected.json | 2 +- .../summary/license_ambiguity/unambiguous.expected.json | 2 +- .../multiple_package_data.expected.json | 2 +- .../data/summary/single_file/single_file.expected.json | 2 +- .../with_package_data/with_package_data.expected.json | 2 +- .../without_package_data/without_package_data.expected.json | 2 +- 16 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/summarycode/score.py b/src/summarycode/score.py index f65a7a3dfa3..bb4f701cc03 100644 --- a/src/summarycode/score.py +++ b/src/summarycode/score.py @@ -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 @@ -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 { @@ -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, } diff --git a/tests/summarycode/data/score/basic-expected.json b/tests/summarycode/data/score/basic-expected.json index 148478d8ec0..c4c835df413 100644 --- a/tests/summarycode/data/score/basic-expected.json +++ b/tests/summarycode/data/score/basic-expected.json @@ -31,7 +31,7 @@ "has_license_text": true, "declared_copyrights": true, "conflicting_license_categories": false, - "ambigous_compound_licensing": false + "ambiguous_compound_licensing": false } }, "files": [ diff --git a/tests/summarycode/data/score/inconsistent_licenses_copyleft-expected.json b/tests/summarycode/data/score/inconsistent_licenses_copyleft-expected.json index c8f357ff333..2e0e0e507b9 100644 --- a/tests/summarycode/data/score/inconsistent_licenses_copyleft-expected.json +++ b/tests/summarycode/data/score/inconsistent_licenses_copyleft-expected.json @@ -31,7 +31,7 @@ "has_license_text": true, "declared_copyrights": true, "conflicting_license_categories": true, - "ambigous_compound_licensing": false + "ambiguous_compound_licensing": false } }, "files": [ diff --git a/tests/summarycode/data/score/no_license_ambiguity-expected.json b/tests/summarycode/data/score/no_license_ambiguity-expected.json index 4f117c5e09b..13d168fb559 100644 --- a/tests/summarycode/data/score/no_license_ambiguity-expected.json +++ b/tests/summarycode/data/score/no_license_ambiguity-expected.json @@ -31,7 +31,7 @@ "has_license_text": true, "declared_copyrights": true, "conflicting_license_categories": false, - "ambigous_compound_licensing": false + "ambiguous_compound_licensing": false } }, "files": [ diff --git a/tests/summarycode/data/score/no_license_or_copyright-expected.json b/tests/summarycode/data/score/no_license_or_copyright-expected.json index 57338166ba4..560109def65 100644 --- a/tests/summarycode/data/score/no_license_or_copyright-expected.json +++ b/tests/summarycode/data/score/no_license_or_copyright-expected.json @@ -31,7 +31,7 @@ "has_license_text": false, "declared_copyrights": false, "conflicting_license_categories": false, - "ambigous_compound_licensing": true + "ambiguous_compound_licensing": true } }, "files": [ diff --git a/tests/summarycode/data/score/no_license_text-expected.json b/tests/summarycode/data/score/no_license_text-expected.json index c9f3a78d0ed..dd9fbf76aff 100644 --- a/tests/summarycode/data/score/no_license_text-expected.json +++ b/tests/summarycode/data/score/no_license_text-expected.json @@ -31,7 +31,7 @@ "has_license_text": false, "declared_copyrights": true, "conflicting_license_categories": false, - "ambigous_compound_licensing": false + "ambiguous_compound_licensing": false } }, "files": [ diff --git a/tests/summarycode/data/summary/conflicting_license_categories/conflicting_license_categories.expected.json b/tests/summarycode/data/summary/conflicting_license_categories/conflicting_license_categories.expected.json index 3ebb11f1b09..594a8fca4c5 100644 --- a/tests/summarycode/data/summary/conflicting_license_categories/conflicting_license_categories.expected.json +++ b/tests/summarycode/data/summary/conflicting_license_categories/conflicting_license_categories.expected.json @@ -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", diff --git a/tests/summarycode/data/summary/end-2-end/bug-1141.expected.json b/tests/summarycode/data/summary/end-2-end/bug-1141.expected.json index c3e21a367fb..ac71891648b 100644 --- a/tests/summarycode/data/summary/end-2-end/bug-1141.expected.json +++ b/tests/summarycode/data/summary/end-2-end/bug-1141.expected.json @@ -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", diff --git a/tests/summarycode/data/summary/holders/clear_holder.expected.json b/tests/summarycode/data/summary/holders/clear_holder.expected.json index cbed2c61f3f..34ff47d3270 100644 --- a/tests/summarycode/data/summary/holders/clear_holder.expected.json +++ b/tests/summarycode/data/summary/holders/clear_holder.expected.json @@ -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", diff --git a/tests/summarycode/data/summary/holders/combined_holders.expected.json b/tests/summarycode/data/summary/holders/combined_holders.expected.json index bdcbe263977..aee6b006901 100644 --- a/tests/summarycode/data/summary/holders/combined_holders.expected.json +++ b/tests/summarycode/data/summary/holders/combined_holders.expected.json @@ -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", diff --git a/tests/summarycode/data/summary/license_ambiguity/ambiguous.expected.json b/tests/summarycode/data/summary/license_ambiguity/ambiguous.expected.json index e36bea23be1..e689b3be2f6 100644 --- a/tests/summarycode/data/summary/license_ambiguity/ambiguous.expected.json +++ b/tests/summarycode/data/summary/license_ambiguity/ambiguous.expected.json @@ -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": "", diff --git a/tests/summarycode/data/summary/license_ambiguity/unambiguous.expected.json b/tests/summarycode/data/summary/license_ambiguity/unambiguous.expected.json index cd093481ef4..5d0bcfdd2c0 100644 --- a/tests/summarycode/data/summary/license_ambiguity/unambiguous.expected.json +++ b/tests/summarycode/data/summary/license_ambiguity/unambiguous.expected.json @@ -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": "", diff --git a/tests/summarycode/data/summary/multiple_package_data/multiple_package_data.expected.json b/tests/summarycode/data/summary/multiple_package_data/multiple_package_data.expected.json index c2ab5cc8638..f52a46ffd82 100644 --- a/tests/summarycode/data/summary/multiple_package_data/multiple_package_data.expected.json +++ b/tests/summarycode/data/summary/multiple_package_data/multiple_package_data.expected.json @@ -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", diff --git a/tests/summarycode/data/summary/single_file/single_file.expected.json b/tests/summarycode/data/summary/single_file/single_file.expected.json index 9b720d72256..f98c177942a 100644 --- a/tests/summarycode/data/summary/single_file/single_file.expected.json +++ b/tests/summarycode/data/summary/single_file/single_file.expected.json @@ -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": "", diff --git a/tests/summarycode/data/summary/with_package_data/with_package_data.expected.json b/tests/summarycode/data/summary/with_package_data/with_package_data.expected.json index 233011cc881..6a4cf5bdb4f 100644 --- a/tests/summarycode/data/summary/with_package_data/with_package_data.expected.json +++ b/tests/summarycode/data/summary/with_package_data/with_package_data.expected.json @@ -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", diff --git a/tests/summarycode/data/summary/without_package_data/without_package_data.expected.json b/tests/summarycode/data/summary/without_package_data/without_package_data.expected.json index f68cec60974..f56ad1bdd4f 100644 --- a/tests/summarycode/data/summary/without_package_data/without_package_data.expected.json +++ b/tests/summarycode/data/summary/without_package_data/without_package_data.expected.json @@ -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": "",