-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
264 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
*.pm linguist-language=Perl | ||
*.t linguist-language=Perl | ||
*.h linguist-language=C | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
name: linux | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
tags-ignore: | ||
- '*' | ||
pull_request: | ||
|
||
jobs: | ||
perl: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
cip_tag: | ||
- "5.37" | ||
- "5.36" | ||
- "5.34" | ||
- "5.32" | ||
- "5.30" | ||
- "5.28" | ||
- "5.26" | ||
- "5.24" | ||
- "5.22" | ||
- "5.20" | ||
- "5.18" | ||
- "5.16" | ||
- "5.14" | ||
- "5.12" | ||
- "5.10" | ||
- "5.8" | ||
|
||
env: | ||
CIP_TAG: ${{ matrix.cip_tag }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Bootstrap CIP | ||
run: | | ||
curl -L https://raw.githubusercontent.com/uperl/cip/main/bin/github-bootstrap | bash | ||
- name: Cache-Key | ||
id: cache-key | ||
run: | | ||
echo -n '::set-output name=key::' | ||
cip cache-key | ||
- name: Cache CPAN modules | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cip | ||
key: ${{ runner.os }}-build-${{ steps.cache-key.outputs.key }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ steps.cache-key.outputs.key }} | ||
- name: Start-Container | ||
run: | | ||
cip start | ||
- name: Diagnostics | ||
run: | | ||
cip diag | ||
- name: Install-Dependencies | ||
run: | | ||
cip install | ||
- name: Build + Test | ||
run: | | ||
cip script | ||
- name: CPAN log | ||
if: ${{ failure() }} | ||
run: | | ||
cip exec bash -c 'cat $HOME/.cpanm/latest-build/build.log' | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: static | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
tags-ignore: | ||
- '*' | ||
pull_request: | ||
|
||
jobs: | ||
perl: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
env: | ||
CIP_TAG: static | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Bootstrap CIP | ||
run: | | ||
curl -L https://raw.githubusercontent.com/uperl/cip/main/bin/github-bootstrap | bash | ||
- name: Build + Test | ||
run: | | ||
cip script | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Test2-Tools-PerlCritic-Role-Progressive-* | ||
/.build/ | ||
*.swp | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Revision history for {{$dist->name}} | ||
|
||
{{$NEXT}} | ||
- initial version | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
pod_spelling_system: | ||
skip: 0 | ||
# list of words that are spelled correctly | ||
# (regardless of what spell check thinks) | ||
# or stuff that I like to spell incorrectly | ||
# intentionally | ||
stopwords: [] | ||
|
||
pod_coverage: | ||
skip: 0 | ||
# format is "Class#method" or "Class",regex allowed | ||
# for either Class or method. | ||
private: [] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name = Test2-Tools-PerlCritic-Role-Progressive | ||
author = Graham Ollis <plicease@cpan.org> | ||
license = Perl_5 | ||
copyright_holder = Graham Ollis | ||
copyright_year = 2024 | ||
version = 0.01 | ||
|
||
[@Author::Plicease] | ||
:version = 2.75 | ||
release_tests = 1 | ||
installer = Author::Plicease::MakeMaker | ||
github_user = uperl | ||
default_branch = main | ||
test2_v0 = 1 | ||
workflow = static | ||
workflow = linux | ||
version_plugin = PkgVersion::Block | ||
|
||
[Author::Plicease::Core] | ||
|
||
[Author::Plicease::Upload] | ||
cpan = 0 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
use warnings; | ||
use 5.020; | ||
use experimental qw( postderef signatures ); | ||
|
||
package Test2::Tools::PerlCritic::Role::Progressive { | ||
|
||
# ABSTRACT: Role to progressively critique Perl code | ||
} | ||
|
||
1; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
severity = 1 | ||
only = 1 | ||
|
||
[Community::ArrayAssignAref] | ||
[Community::BarewordFilehandles] | ||
[Community::ConditionalDeclarations] | ||
[Community::ConditionalImplicitReturn] | ||
[Community::DeprecatedFeatures] | ||
[Community::DiscouragedModules] | ||
[Community::DollarAB] | ||
[Community::Each] | ||
[Community::EmptyReturn] | ||
[Community::IndirectObjectNotation] | ||
[Community::LexicalForeachIterator] | ||
[Community::LoopOnHash] | ||
[Community::ModPerl] | ||
[Community::OpenArgs] | ||
[Community::OverloadOptions] | ||
[Community::POSIXImports] | ||
[Community::PackageMatchesFilename] | ||
[Community::PreferredAlternatives] | ||
[Community::StrictWarnings] | ||
extra_importers = Test2::V0 | ||
[Community::Threads] | ||
[Community::Wantarray] | ||
[Community::WarningsSwitch] | ||
[Community::WhileDiamondDefaultAssignment] | ||
|
||
[BuiltinFunctions::ProhibitBooleanGrep] | ||
[BuiltinFunctions::ProhibitStringyEval] | ||
[BuiltinFunctions::ProhibitStringySplit] | ||
[BuiltinFunctions::ProhibitVoidGrep] | ||
[BuiltinFunctions::ProhibitVoidMap] | ||
[ClassHierarchies::ProhibitExplicitISA] | ||
[ClassHierarchies::ProhibitOneArgBless] | ||
[CodeLayout::ProhibitHardTabs] | ||
allow_leading_tabs = 0 | ||
[CodeLayout::ProhibitTrailingWhitespace] | ||
[CodeLayout::RequireConsistentNewlines] | ||
[ControlStructures::ProhibitLabelsWithSpecialBlockNames] | ||
[ControlStructures::ProhibitMutatingListFunctions] | ||
[ControlStructures::ProhibitUnreachableCode] | ||
[InputOutput::ProhibitBarewordFileHandles] | ||
[InputOutput::ProhibitJoinedReadline] | ||
[InputOutput::ProhibitTwoArgOpen] | ||
[Miscellanea::ProhibitFormats] | ||
[Miscellanea::ProhibitUselessNoCritic] | ||
[Modules::ProhibitConditionalUseStatements] | ||
;[Modules::RequireEndWithOne] | ||
[Modules::RequireNoMatchVarsWithUseEnglish] | ||
[Objects::ProhibitIndirectSyntax] | ||
[RegularExpressions::ProhibitUselessTopic] | ||
[Subroutines::ProhibitNestedSubs] | ||
[ValuesAndExpressions::ProhibitLeadingZeros] | ||
[ValuesAndExpressions::ProhibitMixedBooleanOperators] | ||
[ValuesAndExpressions::ProhibitSpecialLiteralHeredocTerminator] | ||
[ValuesAndExpressions::RequireUpperCaseHeredocTerminator] | ||
[Variables::ProhibitPerl4PackageNames] | ||
[Variables::ProhibitUnusedVariables] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
use Test2::V0 -no_srand => 1; | ||
use Test2::Tools::PerlCritic::Role::Progressive; | ||
|
||
ok 1, 'todo'; | ||
|
||
done_testing; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
use Test2::Require::Module 'Test2::Tools::PerlCritic'; | ||
use Test2::Require::Module 'Perl::Critic'; | ||
use Test2::Require::Module 'Perl::Critic::Community'; | ||
use Test2::V0; | ||
use Perl::Critic; | ||
use Test2::Tools::PerlCritic; | ||
|
||
my $critic = Perl::Critic->new( | ||
-profile => 'perlcriticrc', | ||
); | ||
|
||
perl_critic_ok ['lib','t'], $critic; | ||
|
||
done_testing; | ||
|
||
|