diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-09-03 15:18:56 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-09-03 15:20:48 -0400 |
commit | c8be9e6f437332375ff13c580f8a8d72be4318d7 (patch) | |
tree | 507f9939f39831573b504cdc674a657602aa54e0 | |
parent | ba20d8391f21dee9539d3f108383c3d049a1d084 (diff) | |
download | conf-c8be9e6f437332375ff13c580f8a8d72be4318d7.tar.gz conf-c8be9e6f437332375ff13c580f8a8d72be4318d7.zip |
a couple more lint checks
-rwxr-xr-x | bin/lint-dist | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/lint-dist b/bin/lint-dist index e4b0f47..9ee4d53 100755 --- a/bin/lint-dist +++ b/bin/lint-dist @@ -92,6 +92,11 @@ my @checks = ( ], [ sub { $_[0]->meta }, + sub { !$_[0]->meta->{resources}{homepage} }, + "no homepage set" + ], + [ + sub { $_[0]->meta }, sub { my ($author) = grep { /Jesse Luehrs/ } @{ $_[0]->meta->{author} }; $author && $author !~ /<doy\@tozt\.net>/ @@ -243,6 +248,15 @@ my @checks = ( ], [ sub { $_[0]->has_github_data }, + sub { + my $meta_site = $_[0]->meta->{resources}{homepage} // ''; + my $gh_site = $_[0]->github_data->{homepage} // ''; + $meta_site ne $gh_site; + }, + sub { "github homepage doesn't match meta homepage" } + ], + [ + sub { $_[0]->has_github_data }, sub { !$_[0]->repo_has_file('.gitignore') }, sub { "repository doesn't contain .gitignore" } ], |