Skip to content

Instantly share code, notes, and snippets.

View jonasbn's full-sized avatar
🐙
conducting sub-optimal multitasking

Jonas Brømsø jonasbn

🐙
conducting sub-optimal multitasking
View GitHub Profile
@jonasbn
jonasbn / changes.t
Created August 2, 2014 20:59
Test::CPAN::Changes test
use strict;
use warnings;
use Test::More;
eval 'use Test::CPAN::Changes';
plan skip_all => 'Test::CPAN::Changes required for this test' if $@;
changes_ok();
@jonasbn
jonasbn / perltidyrc
Last active November 18, 2017 09:40
My Perl::Tidy resourcefile
# REF: http://www.perlmonks.org/?node_id=485885
# PBP .perltidyrc file
-l=78 # Max line width is 78 cols
-i=4 # Indent level is 4 cols
-ci=4 # Continuation indent is 4 cols
-ce # Cuddled elses
#-st # Output to STDOUT
-se # Errors to STDERR
-vt=2 # Maximal vertical tightness
@jonasbn
jonasbn / Module-Build.sublime-build
Created August 1, 2014 08:28
Module::Build build system for SublimeText
{
"build_systems":
[
{
"name": "Module::Build",
"cmd": ["perl Build.PL --verbose=1 ; ./Build"],
"working_dir": "${project_path:${folder}}",
"selector": "source.perl",
"shell": true,
@jonasbn
jonasbn / pod-syntax.t
Last active August 29, 2015 14:04
Test::Pod test (pod syntax test)
use Test::More;
eval "use Test::Pod 1.14";
plan skip_all => 'Test::Pod 1.14 required' if $@;
plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
all_pod_files_ok();
@jonasbn
jonasbn / pod-coverage.t
Created July 31, 2014 14:28
Pod::Coverage tests
#pod test courtesy of petdance
#http://use.perl.org/~petdance/journal/17412
use Test::More;
eval "use Test::Pod::Coverage 0.08";
plan skip_all => "Test::Pod::Coverage 0.08 required for testing POD coverage" if $@;
all_pod_coverage_ok();
@jonasbn
jonasbn / kwalitee.t
Created July 31, 2014 14:26
Test::Kwalitee tests
use strict;
use warnings;
BEGIN {
unless ( $ENV{RELEASE_TESTING} ) {
use Test::More;
plan( skip_all => 'these tests are for release candidate testing' );
}
}
@jonasbn
jonasbn / critic.t
Last active August 29, 2015 14:04
Perl::Critic tests
# Courtesy of Jeffrey Ryan Thalhammer
# http://search.cpan.org/~thaljef/Test-Perl-Critic/lib/Test/Perl/Critic.pm
use strict;
use warnings;
use File::Spec;
use Test::More;
use English qw(-no_match_vars);
if ( not $ENV{TEST_CRITIC} ) {
@jonasbn
jonasbn / 00-compile.t
Created July 31, 2014 14:23
Perl test to compile contents of lib/
#!/usr/bin/env perl
#Courtesy of Ovid
#Ref: http://use.perl.org/~Ovid/journal/37797
use strict;
use warnings;
use File::Find;
use File::Spec;
@jonasbn
jonasbn / file.pl
Created July 31, 2014 13:55
Perl script
#!/usr/bin/env perl
use strict;
use warnings;
exit 0;
@jonasbn
jonasbn / package.pod
Created July 29, 2014 12:17
My Perl package POD template

NAME

<package name> - <package abstract>

SYNOPSIS

VERSION