INFO: Java 1.8.0_322 Amazon.com Inc. (64-bit)
INFO: Linux 4.4.0-1128-aws amd64
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-core-2.17.0.899.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-cli-2.1.0.566.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
INFO: Index files
INFO: 25 files indexed
INFO: 9 source files to be analyzed
ERROR: Unable to parse file: /code/src/CsvReader.php
ERROR: Parse error at line 97 column 13:
87: /**
88: * @param integer $skipLines
89: * @throws InvalidArgumentException
90: */
91: protected function validateSkipLines($skipLines)
92: {
93: if (!is_int($skipLines) || $skipLines < 0) {
94: throw new InvalidArgumentException(
95: "Number of lines to skip must be a positive integer. \"$skipLines\" received.",
96: Exception::INVALID_PARAM,
97: );
^
98: }
99: }
100:
101: /**
102: * @param $fileName
103: * @throws Exception
104: */
105: protected function openCsvFile($fileName)
106: {
107: if (!is_file($fileName)) {
ERROR: Unable to parse file: /code/src/CsvOptions.php
ERROR: Parse error at line 54 column 13:
44: /**
45: * @param string $enclosure
46: * @throws InvalidArgumentException
47: */
48: protected function validateEnclosure($enclosure)
49: {
50: if (strlen($enclosure) > 1) {
51: throw new InvalidArgumentException(
52: 'Enclosure must be a single character. ' . json_encode($enclosure) . ' received',
53: Exception::INVALID_PARAM,
54: );
^
55: }
56: }
57:
58: /**
59: * @param string $delimiter
60: * @throws InvalidArgumentException
61: */
62: protected function validateDelimiter($delimiter)
63: {
64: if (strlen($delimiter) > 1) {
ERROR: Unable to parse file: /code/src/CsvWriter.php
ERROR: Parse error at line 59 column 13:
49: $allowedLineBreaks = [
50: "\r\n", // win
51: "\r", // mac
52: "\n", // unix
53: ];
54: if (!in_array($lineBreak, $allowedLineBreaks)) {
55: throw new Exception(
56: 'Invalid line break: ' . json_encode($lineBreak) .
57: ' allowed line breaks: ' . json_encode($allowedLineBreaks),
58: Exception::INVALID_PARAM,
59: );
^
60: }
61: }
62:
63: /**
64: * @param string $fileName
65: * @throws Exception
66: */
67: protected function openCsvFile($fileName)
68: {
69: try {
INFO: 9/9 source files have been analyzed
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 0.651s
INFO: Final Memory: 7M/96M
INFO: ------------------------------------------------------------------------
|