File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ set -e
2
3
3
4
RULESET=$1
4
5
TEST_FILE=$2
@@ -13,7 +14,11 @@ if [ ! -f "$TEST_FILE" ]; then
13
14
exit 1
14
15
fi
15
16
16
- echo " Running test: $TEST_FILE with ruleset: $RULESET "
17
+ TEST_NAME=$( sed -n ' 3s/ \* //p' " $TEST_FILE " )
18
+
19
+ echo " "
20
+ echo " Running test: $TEST_NAME with ruleset: $RULESET "
21
+ echo " $TEST_FILE "
17
22
18
23
# Use --basepath=. to ensure relative paths in the report.
19
24
JSON_REPORT=$( phpcs --standard=" ./$RULESET /ruleset.xml" --report=json --basepath=. " $TEST_FILE " 2> /dev/null | sed -n ' /{/,$p' )
Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
- * Disallow usage of multiline slash comments .
3
+ * Multiline comments should use /* syntax .
4
4
*
5
5
* @expectedWarning[Pantheon-WP-Minimum] Pantheon_WP_Minimum.Commenting.DisallowMultilineSlashComment.Found
6
6
* @expectedError[Pantheon-WP] Pantheon_WP.Commenting.DisallowMultilineSlashComment.Found
Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
- * DisallowRenameFunctionTest.inc
3
+ * Disallow usage of the rename() function.
4
4
*
5
5
* @expectedError[Pantheon-WP-Minimum] Pantheon_WP_Minimum.Files.DisallowRenameFunction.RenameFunctionDisallowed
6
6
* @expectedError[Pantheon-WP] Pantheon_WP_Minimum.Files.DisallowRenameFunction.RenameFunctionDisallowed
You can’t perform that action at this time.
0 commit comments