Skip to content

Commit

Permalink
refactor(helper): replace literal line breaks with heredoc
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptprivate authored Aug 25, 2024
1 parent 174276c commit dc77e68
Showing 1 changed file with 22 additions and 19 deletions.
41 changes: 22 additions & 19 deletions lib/SecurityGate/Utils/Helper.pm
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
package SecurityGate::Utils::Helper {
use strict;
use warnings;
use warnings;

sub new {
return "
\rSecurity Gate v0.1.0
\rCore Commands
\r====================
\r\tCommand Description
\r\t------- -----------
\r\t-t, --token GitHub token
\r\t-r, --repo GitHub repository, organization/repository-name
\r\t-c, --critical Critical severity limit
\r\t-h, --high High severity limit
\r\t-m, --medium Medium severity limit
\r\t-l, --low Low severity limit
\r\t--dependency-alerts Check dependency alerts
\r\t--secret-alerts Check secret scanning alerts
\r\t--code-alerts Check code scanning alerts\n\n";
}
sub new {
return <<"EOT";
Security Gate v0.0.3
Core Commands
==============
Command Description
------- -----------
-t, --token GitHub token
-r, --repo GitHub repository
-c, --critical Critical severity limit
-h, --high High severity limit
-m, --medium Medium severity limit
-l, --low Low severity limit
--dependency-alerts Check for dependency alerts
--secret-scanning-alerts Check for secret scanning alerts
--code-scanning-alerts Check for code scanning alerts
EOT
}
}

1;
1;

0 comments on commit dc77e68

Please sign in to comment.