Skip to content

Conversation

@ReginaldWang
Copy link
Contributor

@ReginaldWang ReginaldWang commented Jan 23, 2026

Setup Perl Tidy and Action

Problem and Scope

Similar to Perl Critic, clean up the URCA Perl code

Description

Automatically formats the Perl code

Gotchas and Limitations

Includes some minor bugfixes to URCA code

Testing

  • HOOTL testing
  • HITL testing
  • Human tested

Testing Details

Works still

Larger Impact

Easier to maintain

Additional Context and Ticket

See #173, related to #174

@ReginaldWang ReginaldWang changed the title Perl tidy PerlTidy Jan 23, 2026
@ReginaldWang ReginaldWang changed the title PerlTidy PerlTidy for URCA Jan 23, 2026
@ReginaldWang ReginaldWang marked this pull request as draft January 23, 2026 05:03
@dchansen06
Copy link
Contributor

Updating with rebase

@dchansen06 dchansen06 added Documentation Improvements or additions to documentation Enhancement New feature or request GitHub Meta, anything related to or dealing with GitHub HOOTL Testing Having to do with or interacting with HOOTL testing 2 PRIORITY Important and a priority, but less than URGENT Small Fry Something that is small, could include bug fixes or smaller changes labels Jan 23, 2026
@dchansen06 dchansen06 linked an issue Jan 23, 2026 that may be closed by this pull request
@dchansen06
Copy link
Contributor

Updating with rebase

Signed-off-by: ReginaldWang <114448545+ReginaldWang@users.noreply.github.com>
Signed-off-by: ReginaldWang <114448545+ReginaldWang@users.noreply.github.com>
Signed-off-by: ReginaldWang <114448545+ReginaldWang@users.noreply.github.com>
@dchansen06 dchansen06 added 1 URGENT Urgent issue that needs a quick action and resolution and removed 2 PRIORITY Important and a priority, but less than URGENT labels Jan 23, 2026
@dchansen06 dchansen06 changed the title PerlTidy for URCA Perl::Tidy for URCA Perl Files Jan 24, 2026
@dchansen06
Copy link
Contributor

Also had to optimize a bit of how Gersemi (CMake formatter) works, sadly it is in this PR but it is small enough and on-topic enough I will keep it in for now

@dchansen06 dchansen06 marked this pull request as ready for review January 24, 2026 11:02
@dchansen06 dchansen06 merged commit 5c69173 into Base_Urca Jan 24, 2026
1 check passed
@dchansen06 dchansen06 deleted the PerlTidy branch January 24, 2026 11:04
@dchansen06 dchansen06 mentioned this pull request Feb 1, 2026
3 tasks
@dchansen06 dchansen06 restored the PerlTidy branch February 1, 2026 06:31
@dchansen06 dchansen06 deleted the PerlTidy branch February 1, 2026 06:34
dchansen06 added a commit that referenced this pull request Feb 1, 2026
dchansen06 added a commit that referenced this pull request Feb 1, 2026
# Copy `Perl::Tidy` Into `main`

## Problem and Scope
During some confusion #185 got changed inside of #176 which broke
functionality

## Description
This adds it to `main` so that it can be pulled in and future changes
can be noted explicitely

## Gotchas and Limitations
None

## Testing

- [x] HOOTL testing
- [ ] HITL testing
- [x] Human tested

### Testing Details
Already tested in #185

## Larger Impact
None

## Additional Context and Ticket
Direct copy of #185
dchansen06 added a commit that referenced this pull request Feb 1, 2026
dchansen06 added a commit that referenced this pull request Feb 1, 2026
# Implement Perl Critic

## Problem and Scope
Trying to resolve issue #174 for CAN URCA, who are writing in Perl. A
Perl::Critic implementation was desired for verifying commits.

## Description
Added a minimal Perl::Critic file with an appropriate GitHub Action in a
.yml file, which is named similarly.

Outputs to `$GITHUB_STEP_SUMMARY` and as GitHub annotations within the
PR context

## Gotchas and Limitations
A .perlcritic file allows for a range of harshness when it comes to
checking, as well as how descriptive it is in describing errors. This
ranges from 1-5 and 1-11, respectively.

## Testing

- [x] HOOTL testing
- [ ] HITL testing
- [x] Human tested

### Testing Details
Tested by copying current Perl code in and checking output of action by
hand

## Larger Impact
Will help Perl code be nicely written

## Additional Context and Ticket
Resolves #174 
Helps #176 
Parallel to #185

---------

Co-authored-by: Daniel Hansen <dchansen06@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1 URGENT Urgent issue that needs a quick action and resolution Documentation Improvements or additions to documentation Enhancement New feature or request GitHub Meta, anything related to or dealing with GitHub HOOTL Testing Having to do with or interacting with HOOTL testing Small Fry Something that is small, could include bug fixes or smaller changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

URCA Perl Formatting Tool

2 participants