Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use codemirror instead of perl::tidy #82

Merged
merged 1 commit into from
Nov 29, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ testrun-cron
testrun-manual
archive
backlog
perl
video
*.swp
www/htdocs/includes/knownissues.html
Expand Down
24 changes: 0 additions & 24 deletions lib/OpenQA/Helpers.pm
Original file line number Diff line number Diff line change
Expand Up @@ -44,30 +44,6 @@ sub register {
}
);

$app->helper(
syntax_highlight => sub {
my $c=shift;
my $script=shift;
$script=~s{^sub is_applicable}{# this function decides if the test shall run\n$&}m;
$script=~s{^sub run}{# this part contains the steps to run this test\n$&}m;
$script=~s{^sub checklist}{# this part contains known hash values of good or bad results\n$&}m;
eval "require Perl::Tidy;" or return "<pre>$script</pre>";
my @out;
{
local @ARGV;
push(@ARGV,"-html", "-pre", "-css=/dev/null", "-q", "-se");
Perl::Tidy::perltidy(
source => \$script,
destination => \@out,
logfile => "/dev/null",
errorfile => "/dev/null"
);
}
my $out=join("",@out);
return $out;
}
);

# Breadcrumbs generation can be centralized, since it's really simple
$app->helper(
breadcrumbs => sub {
Expand Down
Loading