[Rt-commit] rt branch 5.0/fix-broken-pod-in-rt-validator created. rt-5.0.3-199-gbf6d43a9a8

BPS Git Server git at git.bestpractical.com
Fri Dec 9 13:52:41 UTC 2022


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".

The branch, 5.0/fix-broken-pod-in-rt-validator has been created
        at  bf6d43a9a8b3c53b87c91eca9a75e9b4816fa28e (commit)

- Log -----------------------------------------------------------------
commit bf6d43a9a8b3c53b87c91eca9a75e9b4816fa28e
Author: Jason Crome <jcrome at bestpractical.com>
Date:   Fri Dec 9 08:52:26 2022 -0500

    Remove trailing whitespace

diff --git a/sbin/rt-validator.in b/sbin/rt-validator.in
index c34ab8d172..7b25f439c4 100644
--- a/sbin/rt-validator.in
+++ b/sbin/rt-validator.in
@@ -559,7 +559,7 @@ push @CHECKS, 'CGM vs. GM' => sub {
     );
 
     # for every CGM where ImmediateParentId != GroupId there should be
-    # matching parent record (first level) 
+    # matching parent record (first level)
     $res *= check_integrity(
         CachedGroupMembers => ['ImmediateParentId', 'MemberId'],
         CachedGroupMembers => ['GroupId', 'MemberId'],
@@ -1611,7 +1611,7 @@ rt-validator - check and correct validity of records in RT's database
 
 =head1 SYNOPSIS
 
-    rt-validator --check 
+    rt-validator --check
     rt-validator --check --verbose
     rt-validator --check --verbose --resolve
     rt-validator --check --verbose --resolve --force
@@ -1628,7 +1628,7 @@ records or ressurect accidentally deleted.
 =item check
 
     mandatory.
-    
+
     it's equal to -c
 
 =item verbose
@@ -1644,7 +1644,7 @@ records or ressurect accidentally deleted.
 
     resolve without asking questions
 
-=item links-only 
+=item links-only
 
     only run the Link validation routines, useful if you changed your Organization
 

commit 6175aab4304fd89ab63a01220b44b19253b6bd73
Author: Jason Crome <jcrome at bestpractical.com>
Date:   Fri Dec 9 08:48:59 2022 -0500

    Fix broken Pod in rt-validator
    
    The Pod for check_integrity appears between the table of contents and
    NAME directive in the Pod when rendered to HTML (with the link to the
    function appearing first in the TOC), and rendering to text is similarly
    broken.
    
    Assuming this should have been documented in Pod at all, this puts
    things back in their proper places.

diff --git a/sbin/rt-validator.in b/sbin/rt-validator.in
index ba67577e23..c34ab8d172 100644
--- a/sbin/rt-validator.in
+++ b/sbin/rt-validator.in
@@ -1339,17 +1339,6 @@ while ( my $check = shift @do_check ) {
 exit 1 unless $status;
 exit 0;
 
-=head2 check_integrity
-
-Takes two (table name, column(s)) pairs. First pair
-is reference we check and second is destination that
-must exist. Array reference can be used for multiple
-columns.
-
-Returns 0 if a record is missing or 1 otherwise.
-
-=cut
-
 sub check_integrity {
     my ($stable, @scols) = (shift, shift);
     my ($ttable, @tcols) = (shift, shift);
@@ -1661,3 +1650,14 @@ records or ressurect accidentally deleted.
 
 =back
 
+=head1 FUNCTIONS
+
+=head2 check_integrity
+
+Takes two (table name, column(s)) pairs. First pair
+is reference we check and second is destination that
+must exist. Array reference can be used for multiple
+columns.
+
+Returns 0 if a record is missing or 1 otherwise.
+

-----------------------------------------------------------------------


hooks/post-receive
-- 
rt


More information about the rt-commit mailing list