You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`--weak-compatible`|`-w`| Treat weak-compatible licenses as compatible during checks. Use with caution and manually confirm the usage conditions for such licenses are met. |
696
+
|`--fsf-free`|`-f`| Only consider licenses marked as FSF Free/Libre when determining compatibility. Non‑FSF‑free licenses are treated as incompatible. |
697
+
|`--osi-approved`|`-o`| Only consider OSI‑approved licenses when determining compatibility. Non‑OSI‑approved licenses are treated as incompatible. |
698
+
699
+
Example using weak-compatible mode:
700
+
701
+
```bash
702
+
license-eye -c test/testdata/.licenserc_for_test_check.yaml dep check -w
703
+
```
704
+
675
705
<details>
676
706
<summary>Dependency Check Result</summary>
677
707
@@ -779,6 +809,8 @@ dependency: # <16>
779
809
version: dependency-version # <20>
780
810
license: Apache-2.0 # <21>
781
811
threshold: 75# <22>
812
+
require_fsf_free: false # <26>
813
+
require_osi_approved: false # <27>
782
814
excludes: # <23>
783
815
- name: dependency-name # the same format as <19>
784
816
version: dependency-version # the same format as <20>
@@ -819,6 +851,8 @@ header:
819
851
23. The dependencies that should be excluded when analyzing the licenses, this is useful when you declare the dependencies in `pom.xml` with `compile` scope but don't distribute them in package. (Note that non-`compile` scope dependencies are automatically excluded so you don't need to put them here).
820
852
24. The transitive dependencies brought by <23> should be recursively excluded when analyzing the licenses, currently only maven project supports this.
821
853
25. The copyright year of the work, if it's empty, it will be set to the current year. If you don't want to update the license year anually, you can set this to the year of the first publication of your work, such as `1994`, or `1994-2023`.
854
+
26. When `require_fsf_free` is true, only dependency licenses marked as FSF Free/Libre in the built-in compatibility matrices are considered compatible. Licenses not marked FSF-free will be treated as incompatible even if otherwise listed as compatible. This can also be enabled via the CLI flag `--fsf-free` (`-f`).
855
+
27. When `require_osi_approved` is true, only dependency licenses marked as OSI-approved in the built-in compatibility matrices are considered compatible. Licenses not marked OSI-approved will be treated as incompatible even if otherwise listed as compatible. This can also be enabled via the CLI flag `--osi-approved` (`-o`).
822
856
823
857
**NOTE**: When the `SPDX-ID` is Apache-2.0 and the owner is Apache Software foundation, the content would be [a dedicated license](https://www.apache.org/legal/src-headers.html#headers) specified by the ASF, otherwise, the license would be [the standard one](https://www.apache.org/foundation/license-faq.html#Apply-My-Software).
0 commit comments