Commit Graph

428 Commits

Author SHA1 Message Date
Mike Linksvayer b04f6583af
rubocop 2024-09-01 21:19:47 -07:00
Mike Linksvayer 06ea4f4556
replace test for http: substitution 2024-07-08 02:39:08 +00:00
benbalter 659544af27 Update vendored licenses and SPDX 2024-06-23 00:55:30 +00:00
Jarryd Lee 5897e2a987 Update ref tests
Refactored the ref tests to correctly use subject over instance. Also
moved the tests into a better context that fits better.
2024-03-11 14:53:40 -07:00
Jarryd Lee d9bf478fde
Merge branch 'main' into 664-detect-license-at-ref 2024-03-09 21:09:39 -08:00
Jarryd Lee d432dee303 Implement ability to fetch license for ref via github 2024-03-09 20:52:52 -08:00
Mike Linksvayer 4ffabbb3a2
update license counts 2024-02-25 04:34:38 +00:00
benbalter f1c36c595c Update vendored licenses and SPDX 2024-02-25 00:49:29 +00:00
Mike Linksvayer aefee6e134
update license counts 2024-02-19 19:16:13 +00:00
benbalter faff70ce13 Update vendored licenses and SPDX 2024-02-18 00:48:53 +00:00
Mike Linksvayer e561ac1149
Style/YAMLFileRead 2023-12-18 02:02:30 +00:00
Mike Linksvayer d8d7c2cb0b
rm support for ruby 2.7 (eol) 2023-12-18 01:56:16 +00:00
Mike Linksvayer ce776a6498
whoops use : to replace to_sym 2023-12-04 09:10:44 -03:00
Mike Linksvayer 70306c1c98
Lint/SymbolConversion: Unnecessary symbol conversion; use :"#{f}?" instead 2023-12-04 08:57:15 -03:00
bmarjanovic 33fddd6115
License-path command
Fixes #667
2023-11-17 13:52:33 +01:00
benbalter 4a8982ed4f Update vendored licenses and SPDX 2023-11-05 00:50:00 +00:00
Mike Linksvayer de55a3aabd
RSpec/FilePath 2023-10-09 00:20:28 +00:00
Mike Linksvayer 4a3bcdb437
rm ruby 2.6 2023-09-10 01:22:38 +00:00
benbalter 7b089c99e7 Update vendored licenses and SPDX 2023-08-06 00:48:45 +00:00
Mike Linksvayer a04dc4cc06
rm unused lets in cran spec
Saw due to silly new https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecindexedlet turns out the offending lets weren't used, so removed!
2023-05-06 11:22:16 -07:00
Mike Linksvayer 000d776d15
rubocop 2023-02-12 19:25:45 -08:00
Ben Balter e1b74e3c55
update hashes 2022-12-31 15:20:28 -05:00
Ben Balter ad28dd4674
update fixtures 2022-12-31 15:18:57 -05:00
Ben Balter e7e588e559
Merge branch 'master' into equivalentwords 2022-12-31 15:18:37 -05:00
Ben Balter cfb993cf42
update fixtures 2022-12-31 15:16:53 -05:00
Ben Balter 568e2fa067
update fixtures 2022-12-31 15:16:22 -05:00
Ben Balter 056338411f
Merge branch 'master' into lgpl3-md 2022-12-31 15:15:24 -05:00
Ben Balter 79c4b5975d
Merge branch 'master' into lgpl3-md 2022-12-31 15:13:35 -05:00
Ben Balter fd5cb51978
Merge branch 'master' into dashacrosslines 2022-12-31 15:13:13 -05:00
Ben Balter a2577d7d6d
Merge branch 'master' into equivalentwords 2022-12-31 15:13:10 -05:00
Ben Balter 36cc16b23b
Merge branch 'master' into dashacrosslines 2022-12-31 15:12:16 -05:00
Ben Balter 32d134bc36
Merge branch 'master' into equivalentwords 2022-12-31 15:11:40 -05:00
Ben Balter 00164d52e5
Merge branch 'master' into modifiedbsd 2022-12-31 15:11:13 -05:00
Mike Linksvayer 1bbb2184cd
add fixtures for various markdown licenses that already pass
extraced from #578

rename a couple existing markdown fixtures for consistency too
2022-12-30 20:48:02 -08:00
Mike Linksvayer 4c4abdc1f3
normalize double bullets/spans added for formatting
eg

```
* **e)** don't
* **f)** do
```

when the plain text license is just

```
e) don't
f) do
```

without this `e` and `f` will be unexpected and can push candidate
below threshold for positive detection
2022-12-30 20:19:41 -08:00
Mike Linksvayer a53e50c61e
detect bsd-3-clause with "Modified BSD" title 2022-12-30 17:22:24 -08:00
Mike Linksvayer 9cf4ee1541
match https://spdx.org/licenses/equivalentwords.txt more precisely
It could make sense to vendor list from
https://github.com/spdx/license-list-XML/blob/main/equivalentwords.txt
but sub-license on both sides would require some handling
2022-12-29 19:56:55 -08:00
Mike Linksvayer d06911abaa
normalize word- at end of line becomes word-firstwordonnextline
CC licenses include CC-\nlicensed but can be CC-licensed
2022-12-29 19:06:50 -08:00
Mike Linksvayer 5b53bc72b3
Merge branch 'master' into exitcode 2022-12-27 08:27:37 -08:00
Mike Linksvayer becffbfab7
add test for 0 when potential licenses exist but aren't positively identified 2022-12-26 22:22:54 -08:00
Mike Linksvayer 3e06d7e5c8
nonzero exit on unexpected failure
Old bad behavior now obtains warning, fix behavior and warning, see https://github.com/rails/thor/issues/244
2022-12-26 21:44:16 -08:00
Mike Linksvayer 297f84234e
Reference Matcher: license minor version optional if 0
eg Apache v2 checks as Apache v2.0

Fixes #611
2022-12-26 20:03:14 -08:00
Mike Linksvayer 3d8ec586b4
Merge branch 'master' into rm25 2022-12-19 09:50:31 -08:00
Mike Linksvayer d4f1a29275
slightly bump adjustment for alt segments in spdx template 2022-12-18 19:18:55 -08:00
Mike Linksvayer 28c20bc7c6
add test for BSD-2-Clause version specified by https://www.freebsd.org/internal/software-license/
reported in https://github.com/licensee/licensee/issues/613
2022-12-18 19:14:03 -08:00
Mike Linksvayer a26a408353
drop support for ruby 2.5
EOL since 2021-04-25 https://www.ruby-lang.org/en/downloads/branches/
2022-12-18 18:29:52 -08:00
benbalter f4f56e6f70 Update vendored licenses and SPDX 2022-12-04 00:57:07 +00:00
Mike Linksvayer 2c4236720a
Remove licensee.gemspec contents from dump test to avoid dependency bump automatically causing failure
Fixes #599
2022-11-26 17:48:43 -08:00
Mike Linksvayer 257b5785b3
license counts 2022-10-01 19:12:10 -07:00
benbalter 4a797c45b9 Update vendored licenses and SPDX 2022-10-02 01:25:43 +00:00