Skip to content
This repository has been archived by the owner on Jun 9, 2021. It is now read-only.

Commit

Permalink
PerlCritic and XMLLint
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed Mar 6, 2016
1 parent 2e00e0f commit 098e30f
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -6,8 +6,10 @@ jdk:
- oraclejdk7
before_install:
- sudo apt-get install cppcheck
- sudo apt-get install libperl-critic-perl
- sudo pip install flake8
- sudo pip install cpplint
- sudo apt-get install libxml2-utils #xmllint
before_script:
- npm install
script:
Expand Down
8 changes: 8 additions & 0 deletions build.sh
Expand Up @@ -18,5 +18,13 @@ mkdir -p build/reports/lint
mkdir -p build/reports/cpplint
cpplint cpp/test.cpp > build/reports/cpplint/cpplint.txt 2>&1

#xmllint
mkdir -p build/reports/xmllint
xmllint xml/myxml.xml xml/* > build/reports/xmllint/xmllint.txt 2>&1

#Flake8
flake8 python/project/file.py > build/flake8_2.txt

#PerlCritic
mkdir -p build/reports/perlcritic
perlcritic --verbose 5 perl/example.pl --brutal > build/reports/perlcritic/perlcritic.txt 2>&1
9 changes: 9 additions & 0 deletions perl/example.pl
@@ -0,0 +1,9 @@
use strict;
use warnings;

while (my $file = $dir->next) {
thisisnotused = 2;
asdasdasdasd
next if $file->is_dir();
print $file->stringify . "\n";
}
3 changes: 3 additions & 0 deletions xml/myxml.xml
@@ -0,0 +1,3 @@
<start>
<noend/>
</start>
6 changes: 6 additions & 0 deletions xml/other.xml
@@ -0,0 +1,6 @@
<html>
<head></head>
<body>
<font>
</body>
</html>

0 comments on commit 098e30f

Please sign in to comment.