Permalink
Browse files

Add some sort() to be more predictable

  • Loading branch information...
1 parent c9aec66 commit 8537da03f3b46d65486d700a5222c00c0414f2d1 Steven Haryanto (on Asus Zenbook) committed Nov 26, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/Dist/Zilla/Plugin/Rinci/Validate.pm
@@ -96,7 +96,8 @@ sub munge_file {
}
if (keys %unvalidated) {
$self->log("NOTICE: $fname: Some argument(s) not validated ".
- "for sub $sub_name: ".join(", ", keys %unvalidated));
+ "for sub $sub_name: ".
+ join(", ", sort keys %unvalidated));
} elsif ((grep {$_==1} values %vargs) &&
!defined($meta->{"_perinci.sub.wrapper.validate_args"})) {
$self->log(
@@ -154,7 +155,7 @@ sub munge_file {
my $gen_args = sub {
my @code;
- for my $arg (keys %{ $meta->{args} }) {
+ for my $arg (sort keys %{ $meta->{args} }) {
my $as = $meta->{args}{$arg};
my $s = $meta->{args}{$arg}{schema};
my $sn;

0 comments on commit 8537da0

Please sign in to comment.