App-Licensecheck

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

 - resolve license fulltext last, to leave room for shadowing with
   -or-newer grant
 - tests: declare "use utf8" and "use feature 'unicode_strings'" in
   encode.t

 [ Documentation ]
 - update TODOs

 [ Test Suite ]
 - drop unused function is_licensed_like_scancode
 - tighten encode.t (still fails with non-UTF-8 locales)
 - update author tests related to ZPL since Regexp::Pattern::License
   v3.1.102
 - update tests
 - use List::SomeUtils (not List::MoreUtils)
 - use Test2::V0

 [ Packaging ]
 - relax to require strictures unversioned
 - require Encode::Locale Encode
 - require MooX::Struct

Changes  view on Meta::CPAN


v3.0.38	2020-01-03

 [ REGRESSIONS ]
 - misdetects some GNU fulltext licenses as also maybe LGPL

 [ Bug Fixes ]
 - Add missing newline when no arguments
 - fix: detect creative commons dual-version-licensing (not misdetect as
   same version twice)
 - support non-utf8 locale

 [ Test Suite ]
 - Isolate and extend encoding tests.
 - adapt author testsuite for improved detection (and few minor
   regressions) since Regexp::Pattern::License v3.1.95
 - silence warnings in handling utf8 content

 [ Packaging ]
 - use more recent Regexp::Pattern::License

bin/licensecheck  view on Meta::CPAN

#!perl

use v5.12;
use utf8;
use open qw(:locale);
use warnings;
use autodie;

=head1 NAME

licensecheck - simple license checker for source files

=head1 VERSION

Version v3.3.10

doap.ttl  view on Meta::CPAN

			a doap-changeset:Tests;
			rdfs:label "Isolate and extend encoding tests.";
		], [
			a doap-changeset:Change;
			rdfs:label "Move encoding loop from executable to library.";
		], [
			a doap-changeset:Change;
			rdfs:label "define local regexes in sub licensepatterns (not sub parse_license)";
		], [
			a doap-changeset:Bugfix;
			rdfs:label "support non-utf8 locale";
		], [
			a doap-changeset:Change;
			rdfs:label "Streamline detection of well-formed grants.";
		], [
			a doap-changeset:Tests;
			rdfs:label "adapt author testsuite for improved detection (and few minor regressions) since Regexp::Pattern::License v3.1.95";
		], [
			a doap-changeset:Change;
			rdfs:label "Tighten and improve detection of Artistic licenses.";
		], [

doap.ttl  view on Meta::CPAN

<http://purl.org/NET/cpan-uri/dist/App-Licensecheck/v_v3-0-43>
	a                    doap:Version;
	dc:identifier        "App-Licensecheck-v3.0.43"^^xsd:string;
	dc:issued            "2020-02-10"^^xsd:date;
	doap-changeset:changeset [
		doap-changeset:item [
			a doap-changeset:Bugfix;
			rdfs:label "tests: declare \"use utf8\" and \"use feature 'unicode_strings'\" in encode.t";
		], [
			a doap-changeset:Tests;
			rdfs:label "tighten encode.t (still fails with non-UTF-8 locales)";
		], [
			a doap-changeset:Packaging;
			rdfs:label "require Encode::Locale Encode";
		], [
			a doap-changeset:Packaging;
			rdfs:label "stop test-require UNIVERSAL::require (unused since v3.0.2)";
		], [
			a doap-changeset:Tests;
			rdfs:label "use List::SomeUtils (not List::MoreUtils)";
		], [

t/20-script-encoding.t  view on Meta::CPAN


use warnings;
use strict;

use Encode::Locale;
use Encode 2.12 qw(decode encode);
use Path::Tiny 0.053;

if ( $Encode::Locale::ENCODING_LOCALE ne 'UTF-8' ) {
	skip_all
		"locale encoding is $Encode::Locale::ENCODING_LOCALE - we need UTF-8";
}

plan 13;

diag 'locale encoding: ', $Encode::Locale::ENCODING_LOCALE;

local @Test2::Tools::Command::command = ( $^X, 'bin/licensecheck' );
if ( $ENV{'LICENSECHECK'} ) {
	@Test2::Tools::Command::command = ( $ENV{'LICENSECHECK'} );
}
elsif ( path('blib')->exists ) {
	@Test2::Tools::Command::command = ('blib/script/licensecheck');
}
push @Test2::Tools::Command::command, qw(--machine --debug --copyright);



( run in 0.754 second using v1.01-cache-2.11-cpan-ceb78f64989 )