From 3772bb9a03083cc228da3a0e08d6311d158ff02e Mon Sep 17 00:00:00 2001 From: Gabo Date: Mon, 19 Oct 2020 16:15:04 -0500 Subject: [PATCH 1/2] Fix test case workspace_path in build file list --- lib/buildFileList.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/buildFileList.sh b/lib/buildFileList.sh index 9e83ece6..6eab0a9b 100755 --- a/lib/buildFileList.sh +++ b/lib/buildFileList.sh @@ -65,7 +65,7 @@ function BuildFileList() { mapfile -t RAW_FILE_ARRAY < <(git -C "${GITHUB_WORKSPACE}" diff --name-only "${DEFAULT_BRANCH}...${GITHUB_SHA}" --diff-filter=d 2>&1) else WORKSPACE_PATH="${GITHUB_WORKSPACE}" - if [ "${TEST_CASE_RUN}" != "true" ]; then + if [ "${TEST_CASE_RUN}" == "true" ]; then WORKSPACE_PATH="${GITHUB_WORKSPACE}/${TEST_CASE_FOLDER}" fi From ae8b16dac59a1608a2e1a14966191b06f63f6bc2 Mon Sep 17 00:00:00 2001 From: Gabo Date: Mon, 19 Oct 2020 20:46:14 -0500 Subject: [PATCH 2/2] Fix tap test for dynamic tests --- .automation/test/bash/reports/expected-BASH.tap | 4 ++-- .../cloudformation/reports/expected-CLOUDFORMATION.tap | 8 ++++---- .../test/coffeescript/reports/expected-COFFEESCRIPT.tap | 2 +- .automation/test/css/reports/expected-CSS.tap | 2 +- .automation/test/dart/reports/expected-DART.tap | 2 +- .automation/test/env/reports/expected-ENV.tap | 2 +- .../test/javascript_es/reports/expected-JAVASCRIPT_ES.tap | 4 ++-- .../reports/expected-JAVASCRIPT_ES.tap | 4 ++-- .../reports/expected-JAVASCRIPT_STANDARD.tap | 4 ++-- .automation/test/kotlin/reports/expected-KOTLIN.tap | 2 +- .automation/test/markdown/reports/expected-MARKDOWN.tap | 4 ++-- .automation/test/perl/reports/expected-PERL.tap | 2 +- .../test/php_builtin/reports/expected-PHP_BUILTIN.tap | 8 ++++---- .../test/php_phpstan/reports/expected-PHP_PHPSTAN.tap | 4 ++-- .automation/test/protobuf/reports/expected-PROTOBUF.tap | 2 +- .automation/test/raku/reports/expected-RAKU.tap | 2 +- .automation/test/ruby/reports/expected-RUBY.tap | 2 +- .automation/test/terraform/reports/expected-TERRAFORM.tap | 2 +- .../test/typescript_es/reports/expected-TYPESCRIPT_ES.tap | 4 ++-- .../reports/expected-TYPESCRIPT_STANDARD.tap | 4 ++-- .automation/test/xml/reports/expected-XML.tap | 2 +- .automation/test/yaml/reports/expected-YML.tap | 2 +- lib/buildFileList.sh | 6 +++++- 23 files changed, 41 insertions(+), 37 deletions(-) diff --git a/.automation/test/bash/reports/expected-BASH.tap b/.automation/test/bash/reports/expected-BASH.tap index f3bedca8..d03b24f2 100644 --- a/.automation/test/bash/reports/expected-BASH.tap +++ b/.automation/test/bash/reports/expected-BASH.tap @@ -2,6 +2,6 @@ TAP version 13 1..2 not ok 1 - shell_bad_1.sh --- - message: \nIn /tmp/lint/.automation/test/shell/shell_bad_1.sh line 10 \nif [ $ERROR_CODE -ne 0]; then\n^-- SC1009 The mentioned syntax error was in this if expression.\n ^-- SC1073 Couldn't parse this test expression. Fix to allow more checks.\n ^-- SC1020 You need a space before the ].\n ^-- SC1072 Missing space before ]. Fix any mentioned problems and try again.\n\nFor more information \n https //www.shellcheck.net/wiki/SC1020 -- You need a space before the ].\n https //www.shellcheck.net/wiki/SC1072 -- Missing space before ]. Fix any m...\n https //www.shellcheck.net/wiki/SC1073 -- Couldn't parse this test expressi...\n + message: \nIn /tmp/lint/.automation/test/bash/shell_bad_1.sh line 10 \nif [ $ERROR_CODE -ne 0]; then\n^-- SC1009 The mentioned syntax error was in this if expression.\n ^-- SC1073 Couldn't parse this test expression. Fix to allow more checks.\n ^-- SC1020 You need a space before the ].\n ^-- SC1072 Missing space before ]. Fix any mentioned problems and try again.\n\nFor more information \n https //www.shellcheck.net/wiki/SC1020 -- You need a space before the ].\n https //www.shellcheck.net/wiki/SC1072 -- Missing space before ]. Fix any m...\n https //www.shellcheck.net/wiki/SC1073 -- Couldn't parse this test expressi...\n ... -ok 2 - shell_good_1.sh +ok 2 - /tmp/lint/.automation/test/bash/shell_good_1.sh diff --git a/.automation/test/cloudformation/reports/expected-CLOUDFORMATION.tap b/.automation/test/cloudformation/reports/expected-CLOUDFORMATION.tap index a92e9775..882d64eb 100644 --- a/.automation/test/cloudformation/reports/expected-CLOUDFORMATION.tap +++ b/.automation/test/cloudformation/reports/expected-CLOUDFORMATION.tap @@ -16,7 +16,7 @@ not ok 4 - cloudformation_bad_4.yaml --- message: E3002 Invalid Property Resources/myDNSRecord/Properties/Ttl\n/tmp/lint/.automation/test/cloudformation/cloudformation_bad_4.yaml 9 7\n ... -ok 5 - cloudformation_good_1.json -ok 6 - cloudformation_good_2.yaml -ok 7 - cloudformation_good_3.json -ok 8 - cloudformation_good_4.yaml +ok 5 - /tmp/lint/.automation/test/cloudformation/cloudformation_good_1.json +ok 6 - /tmp/lint/.automation/test/cloudformation/cloudformation_good_2.yaml +ok 7 - /tmp/lint/.automation/test/cloudformation/cloudformation_good_3.json +ok 8 - /tmp/lint/.automation/test/cloudformation/cloudformation_good_4.yaml diff --git a/.automation/test/coffeescript/reports/expected-COFFEESCRIPT.tap b/.automation/test/coffeescript/reports/expected-COFFEESCRIPT.tap index 4ce33752..e8efb636 100644 --- a/.automation/test/coffeescript/reports/expected-COFFEESCRIPT.tap +++ b/.automation/test/coffeescript/reports/expected-COFFEESCRIPT.tap @@ -4,4 +4,4 @@ not ok 1 - coffeescript_bad_1.coffee --- message: ✗ /tmp/lint/.automation/test/coffeescript/coffeescript_bad_1.coffee\n ✗ #39 [stdin] 39 29 error unmatched )\nmodule.exports = (robot) -> )\n ^. (coffeescript_error)\n\n✗ Lint! » 1 error and 0 warnings in 1 file\n ... -ok 2 - coffeescript_good_1.coffee +ok 2 - /tmp/lint/.automation/test/coffeescript/coffeescript_good_1.coffee diff --git a/.automation/test/css/reports/expected-CSS.tap b/.automation/test/css/reports/expected-CSS.tap index 98d94702..787146ac 100644 --- a/.automation/test/css/reports/expected-CSS.tap +++ b/.automation/test/css/reports/expected-CSS.tap @@ -4,4 +4,4 @@ not ok 1 - css_bad_01.css --- message: \ncss/css_bad_01.css\n 2 1 ✖ Expected empty line before comment comment-empty-line-before\n 3 1 ✖ Expected empty line before comment comment-empty-line-before\n 5 5 ✖ Expected indentation of 2 spaces indentation \n 5 33 ✖ Expected "#FFFFFF" to be "#ffffff" color-hex-case \n 5 33 ✖ Expected "#FFFFFF" to be "#FFF" color-hex-length \n 6 5 ✖ Expected indentation of 2 spaces indentation \n 7 5 ✖ Expected indentation of 2 spaces indentation \n 8 5 ✖ Expected indentation of 2 spaces indentation \n 8 12 ✖ Expected "#AAAAAA" to be "#aaaaaa" color-hex-case \n 8 12 ✖ Expected "#AAAAAA" to be "#AAA" color-hex-length\n ... -ok 2 - css_good_01.css +ok 2 - /tmp/lint/.automation/test/css/css_good_01.css diff --git a/.automation/test/dart/reports/expected-DART.tap b/.automation/test/dart/reports/expected-DART.tap index 6ca0aa21..1d1deaa2 100644 --- a/.automation/test/dart/reports/expected-DART.tap +++ b/.automation/test/dart/reports/expected-DART.tap @@ -4,4 +4,4 @@ not ok 1 - dart_bad_1.dart --- message: Analyzing /tmp/lint/.automation/test/dart/dart_bad_1.dart...\n lint • Use `;` instead of `{}` for empty constructor bodies. • dart/dart_bad_1.dart 4 25 • empty_constructor_bodies\n1 lint found.\n ... -ok 2 - dart_good_1.dart +ok 2 - /tmp/lint/.automation/test/dart/dart_good_1.dart diff --git a/.automation/test/env/reports/expected-ENV.tap b/.automation/test/env/reports/expected-ENV.tap index 11c263a8..45b585bd 100644 --- a/.automation/test/env/reports/expected-ENV.tap +++ b/.automation/test/env/reports/expected-ENV.tap @@ -4,4 +4,4 @@ not ok 1 - env_bad_1.env --- message: env/env_bad_1.env 1 LeadingCharacter Invalid leading character detected\nenv/env_bad_1.env 2 KeyWithoutValue The MY_ENV key should be with a value or have an equal sign\nenv/env_bad_1.env 3 IncorrectDelimiter The DB-NAME key has incorrect delimiter\nenv/env_bad_1.env 3 UnorderedKey The DB-NAME key should go before the LOGGER_LEVEL key\nenv/env_bad_1.env 4 LowercaseKey The DEbUG_hTTP key should be in uppercase\nenv/env_bad_1.env 4 UnorderedKey The DEbUG_hTTP key should go before the LOGGER_LEVEL key\nenv/env_bad_1.env 5 UnorderedKey The DB_NAME key should go before the DEbUG_hTTP key\n\nFound 7 problems\n ... -ok 2 - env_good_1.env +ok 2 - /tmp/lint/.automation/test/env/env_good_1.env diff --git a/.automation/test/javascript_es/reports/expected-JAVASCRIPT_ES.tap b/.automation/test/javascript_es/reports/expected-JAVASCRIPT_ES.tap index 9e605d09..35018c48 100644 --- a/.automation/test/javascript_es/reports/expected-JAVASCRIPT_ES.tap +++ b/.automation/test/javascript_es/reports/expected-JAVASCRIPT_ES.tap @@ -2,6 +2,6 @@ TAP version 13 1..2 not ok 1 - javascript_bad_1.js --- - message: \n/tmp/lint/.automation/test/javascript/javascript_bad_1.js\n 4 39 error Parsing error Unterminated regular expression literal\n\n✖ 1 problem (1 error, 0 warnings)\n + message: \n/tmp/lint/.automation/test/javascript_es/javascript_bad_1.js\n 4 39 error Parsing error Unterminated regular expression literal\n\n✖ 1 problem (1 error, 0 warnings)\n ... -ok 2 - javascript_good_1.js +ok 2 - /tmp/lint/.automation/test/javascript_es/javascript_good_1.js diff --git a/.automation/test/javascript_standard/reports/expected-JAVASCRIPT_ES.tap b/.automation/test/javascript_standard/reports/expected-JAVASCRIPT_ES.tap index 9e605d09..7f79715b 100644 --- a/.automation/test/javascript_standard/reports/expected-JAVASCRIPT_ES.tap +++ b/.automation/test/javascript_standard/reports/expected-JAVASCRIPT_ES.tap @@ -2,6 +2,6 @@ TAP version 13 1..2 not ok 1 - javascript_bad_1.js --- - message: \n/tmp/lint/.automation/test/javascript/javascript_bad_1.js\n 4 39 error Parsing error Unterminated regular expression literal\n\n✖ 1 problem (1 error, 0 warnings)\n + message: \n/tmp/lint/.automation/test/javascript_es/javascript_bad_1.js\n 4 39 error Parsing error Unterminated regular expression literal\n\n✖ 1 problem (1 error, 0 warnings)\n ... -ok 2 - javascript_good_1.js +ok 2 - /tmp/lint/.automation/test/javascript_es/javascript_good_1.js diff --git a/.automation/test/javascript_standard/reports/expected-JAVASCRIPT_STANDARD.tap b/.automation/test/javascript_standard/reports/expected-JAVASCRIPT_STANDARD.tap index 42d92b34..bee3139e 100644 --- a/.automation/test/javascript_standard/reports/expected-JAVASCRIPT_STANDARD.tap +++ b/.automation/test/javascript_standard/reports/expected-JAVASCRIPT_STANDARD.tap @@ -2,6 +2,6 @@ TAP version 13 1..2 not ok 1 - javascript_bad_1.js --- - message: standard Use JavaScript Standard Style (https //standardjs.com)\n /tmp/lint/.automation/test/javascript/javascript_bad_1.js 4 40 Parsing error Unterminated regular expression\n + message: standard Use JavaScript Standard Style (https //standardjs.com)\n /tmp/lint/.automation/test/javascript_standard/javascript_bad_1.js 4 40 Parsing error Unterminated regular expression\n ... -ok 2 - javascript_good_1.js +ok 2 - /tmp/lint/.automation/test/javascript_standard/javascript_good_1.js diff --git a/.automation/test/kotlin/reports/expected-KOTLIN.tap b/.automation/test/kotlin/reports/expected-KOTLIN.tap index 89c7fbc8..2ea1a98f 100644 --- a/.automation/test/kotlin/reports/expected-KOTLIN.tap +++ b/.automation/test/kotlin/reports/expected-KOTLIN.tap @@ -4,4 +4,4 @@ not ok 1 - kotlin_bad_1.kt --- message: /tmp/lint/.automation/test/kotlin/kotlin_bad_1.kt 1 1 File must end with a newline (\n)\n/tmp/lint/.automation/test/kotlin/kotlin_bad_1.kt 2 20 Unnecessary semicolon\n/tmp/lint/.automation/test/kotlin/kotlin_bad_1.kt 3 16 Redundant curly braces\n/tmp/lint/.automation/test/kotlin/kotlin_bad_1.kt 3 27 Unnecessary semicolon\n/tmp/lint/.automation/test/kotlin/kotlin_bad_1.kt 5 15 Unnecessary semicolon\n ... -ok 2 - kotlint_good_1.kt +ok 2 - /tmp/lint/.automation/test/kotlin/kotlint_good_1.kt diff --git a/.automation/test/markdown/reports/expected-MARKDOWN.tap b/.automation/test/markdown/reports/expected-MARKDOWN.tap index 8960605d..da47ab78 100644 --- a/.automation/test/markdown/reports/expected-MARKDOWN.tap +++ b/.automation/test/markdown/reports/expected-MARKDOWN.tap @@ -1,8 +1,8 @@ TAP version 13 1..3 -ok 1 - README.md +ok 1 - /tmp/lint/.automation/test/markdown/README.md not ok 2 - markdown_bad_1.md --- message: /tmp/lint/.automation/test/markdown/markdown_bad_1.md 1 MD041/first-line-heading/first-line-h1 First line in file should be a top level heading [Context "## Bad Markdown"]\n/tmp/lint/.automation/test/markdown/markdown_bad_1.md 5 MD001/heading-increment/header-increment Heading levels should only increment by one level at a time [Expected h3; Actual h6]\n/tmp/lint/.automation/test/markdown/markdown_bad_1.md 11 1 MD007/ul-indent Unordered list indentation [Expected 4; Actual 6]\n/tmp/lint/.automation/test/markdown/markdown_bad_1.md 13 MD040/fenced-code-language Fenced code blocks should have a language specified [Context "```"]\n/tmp/lint/.automation/test/markdown/markdown_bad_1.md 20 16 MD034/no-bare-urls Bare URL used [Context "https //github.com"]\n ... -ok 3 - markdown_good_1.md +ok 3 - /tmp/lint/.automation/test/markdown/markdown_good_1.md diff --git a/.automation/test/perl/reports/expected-PERL.tap b/.automation/test/perl/reports/expected-PERL.tap index e90e961d..a2e85136 100644 --- a/.automation/test/perl/reports/expected-PERL.tap +++ b/.automation/test/perl/reports/expected-PERL.tap @@ -4,4 +4,4 @@ not ok 1 - perl_bad_1.pl --- message: Code before strictures are enabled at line 14, column 1. See page 429 of PBP. (Severity 5)\n ... -ok 2 - perl_good_1.pl +ok 2 - /tmp/lint/.automation/test/perl/perl_good_1.pl diff --git a/.automation/test/php_builtin/reports/expected-PHP_BUILTIN.tap b/.automation/test/php_builtin/reports/expected-PHP_BUILTIN.tap index beb3656e..88cf2228 100644 --- a/.automation/test/php_builtin/reports/expected-PHP_BUILTIN.tap +++ b/.automation/test/php_builtin/reports/expected-PHP_BUILTIN.tap @@ -2,11 +2,11 @@ TAP version 13 1..4 not ok 1 - php_bad_1.php --- - message: PHP Parse error syntax error, unexpected 'pe98y' (T_STRING) in /tmp/lint/.automation/test/php/php_bad_1.php on line 3\nErrors parsing /tmp/lint/.automation/test/php/php_bad_1.php\n + message: PHP Parse error syntax error, unexpected 'pe98y' (T_STRING) in /tmp/lint/.automation/test/php_builtin/php_bad_1.php on line 3\nErrors parsing /tmp/lint/.automation/test/php_builtin/php_bad_1.php\n ... not ok 2 - php_bad_2.php --- - message: PHP Parse error syntax error, unexpected '}' in /tmp/lint/.automation/test/php/php_bad_2.php on line 15\nErrors parsing /tmp/lint/.automation/test/php/php_bad_2.php\n + message: PHP Parse error syntax error, unexpected '}' in /tmp/lint/.automation/test/php_builtin/php_bad_2.php on line 15\nErrors parsing /tmp/lint/.automation/test/php_builtin/php_bad_2.php\n ... -ok 3 - php_good_1.php -ok 4 - php_good_2.php +ok 3 - /tmp/lint/.automation/test/php_builtin/php_good_1.php +ok 4 - /tmp/lint/.automation/test/php_builtin/php_good_2.php diff --git a/.automation/test/php_phpstan/reports/expected-PHP_PHPSTAN.tap b/.automation/test/php_phpstan/reports/expected-PHP_PHPSTAN.tap index 03f22dd1..255013f0 100644 --- a/.automation/test/php_phpstan/reports/expected-PHP_PHPSTAN.tap +++ b/.automation/test/php_phpstan/reports/expected-PHP_PHPSTAN.tap @@ -8,5 +8,5 @@ not ok 2 - php_bad_2.php --- message: ------ ----------------------------------------- \n Line php_bad_2.php \n ------ ----------------------------------------- \n 15 Syntax error, unexpected '}' on line 15 \n ------ ----------------------------------------- \n\n [ERROR] Found 1 error \n ... -ok 3 - php_good_1.php -ok 4 - php_good_2.php +ok 3 - /tmp/lint/.automation/test/php_phpstan/php_good_1.php +ok 4 - /tmp/lint/.automation/test/php_phpstan/php_good_2.php diff --git a/.automation/test/protobuf/reports/expected-PROTOBUF.tap b/.automation/test/protobuf/reports/expected-PROTOBUF.tap index 14453e36..918a206e 100644 --- a/.automation/test/protobuf/reports/expected-PROTOBUF.tap +++ b/.automation/test/protobuf/reports/expected-PROTOBUF.tap @@ -4,4 +4,4 @@ not ok 1 - protobuf_bad_1.proto --- message: [protobuf/protobuf_bad_1.proto 8 1] The order of Import is invalid. Check if the file is ordered in the correct manner.\n[protobuf/protobuf_bad_1.proto 18 5] Found an incorrect indentation style " ". " " is correct.\n[protobuf/protobuf_bad_1.proto 19 5] Found an incorrect indentation style " ". " " is correct.\n[protobuf/protobuf_bad_1.proto 20 5] Found an incorrect indentation style " ". " " is correct.\n[protobuf/protobuf_bad_1.proto 21 5] Found an incorrect indentation style " ". " " is correct.\n[protobuf/protobuf_bad_1.proto 24 5] Found an incorrect indentation style " ". " " is correct.\n[protobuf/protobuf_bad_1.proto 26 5] Found an incorrect indentation style " ". " " is correct.\n[protobuf/protobuf_bad_1.proto 28 5] Found an incorrect indentation style " ". " " is correct.\n[protobuf/protobuf_bad_1.proto 25 5] Found an incorrect indentation style " ". " " is correct.\n[protobuf/protobuf_bad_1.proto 27 7] Found an incorrect indentation style " ". " " is correct.\n[protobuf/protobuf_bad_1.proto 29 5] Found an incorrect indentation style " ". " " is correct.\n[protobuf/protobuf_bad_1.proto 30 5] Found an incorrect indentation style " ". " " is correct.\n[protobuf/protobuf_bad_1.proto 31 5] Found an incorrect indentation style " ". " " is correct.\n[protobuf/protobuf_bad_1.proto 34 5] Found an incorrect indentation style " ". " " is correct.\n[protobuf/protobuf_bad_1.proto 47 5] Found an incorrect indentation style " ". " " is correct.\n[protobuf/protobuf_bad_1.proto 3 1] The line length is 91, but it must be shorter than 80\n[protobuf/protobuf_bad_1.proto 4 1] Package name "examplePb" must only contains lowercase letters, digits and/or periods.\n[protobuf/protobuf_bad_1.proto 8 1] Imports are not sorted.\n[protobuf/protobuf_bad_1.proto 9 1] Imports are not sorted.\n[protobuf/protobuf_bad_1.proto 14 1] Imports are not sorted.\n[protobuf/protobuf_bad_1.proto 15 1] Imports are not sorted.\n[protobuf/protobuf_bad_1.proto 19 5] EnumField name "UNKNOWN" with zero value should have the suffix "UNSPECIFIED"\n[protobuf/protobuf_bad_1.proto 17 1] Enum name "enumAllowingAlias" must be UpperCamelCase\n[protobuf/protobuf_bad_1.proto 36 3] Field "inner_message" should avoid required for proto3\n[protobuf/protobuf_bad_1.proto 37 3] Group "Result" should be avoided for proto3\n[protobuf/protobuf_bad_1.proto 40 3] Group "Result" should be avoided for proto3\n[protobuf/protobuf_bad_1.proto 43 3] Group "Regular" should be avoided for proto3\n[protobuf/protobuf_bad_1.proto 29 5] Repeated field name "inner_message" must be pluralized name "inner_messages"\n[protobuf/protobuf_bad_1.proto 40 3] Repeated group name "Result" must be pluralized name "Results"\n[protobuf/protobuf_bad_1.proto 42 3] Repeated field name "paper" must be pluralized name "papers"\n[protobuf/protobuf_bad_1.proto 43 3] Repeated group name "Regular" must be pluralized name "Regulars"\n[protobuf/protobuf_bad_1.proto 23 1] Message name "outer" must be UpperCamelCase\n[protobuf/protobuf_bad_1.proto 26 5] Message name "inner" must be UpperCamelCase\n[protobuf/protobuf_bad_1.proto 47 5] RPC name "search" must be UpperCamelCase\n ... -ok 2 - protobuf_good_1.proto +ok 2 - /tmp/lint/.automation/test/protobuf/protobuf_good_1.proto diff --git a/.automation/test/raku/reports/expected-RAKU.tap b/.automation/test/raku/reports/expected-RAKU.tap index 13ce7ff5..e692a0c5 100644 --- a/.automation/test/raku/reports/expected-RAKU.tap +++ b/.automation/test/raku/reports/expected-RAKU.tap @@ -4,4 +4,4 @@ not ok 1 - raku_bad_1.raku --- message: ===SORRY!=== Error while compiling /tmp/lint/.automation/test/raku/raku_bad_1.raku\nVariable '$foo' is not declared. Did you mean '@foo'?\nat /tmp/lint/.automation/test/raku/raku_bad_1.raku 4\n------> ⏏$foo[1] = 42\n ... -ok 2 - raku_good_1.raku +ok 2 - /tmp/lint/.automation/test/raku/raku_good_1.raku diff --git a/.automation/test/ruby/reports/expected-RUBY.tap b/.automation/test/ruby/reports/expected-RUBY.tap index df404771..ecb66373 100644 --- a/.automation/test/ruby/reports/expected-RUBY.tap +++ b/.automation/test/ruby/reports/expected-RUBY.tap @@ -4,4 +4,4 @@ not ok 1 - ruby_bad_1.rb --- message: Inspecting 1 file\nC\n\nOffenses \n\nruby/ruby_bad_1.rb 1 1 C Style/FrozenStringLiteralComment Missing frozen string literal comment.\nruby/ruby_bad_1.rb 11 11 C Style/StringLiterals Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.\nFile.open('/tmp/urls.txt', " w" ) do | file|\n ^^^^^^^^^^^^^^^\nruby/ruby_bad_1.rb 11 32 C Layout/SpaceInsideParens Space inside parentheses detected.\nFile.open('/tmp/urls.txt', " w" ) do | file|\n ^\nruby/ruby_bad_1.rb 11 39 C Layout/SpaceAroundBlockParameters Space before first block parameter detected.\nFile.open('/tmp/urls.txt', " w" ) do | file|\n ^\nruby/ruby_bad_1.rb 12 24 C Layout/SpaceAroundBlockParameters Space after last block parameter detected.\n Hook.active.map do |h |\n ^\nruby/ruby_bad_1.rb 13 13 C Layout/SpaceInsideArrayLiteralBrackets Do not use space inside array brackets.\n urls = [ ARRAY_OF_URLS_CALLING_INSTANCE]\n ^\n\n1 file inspected, 6 offenses detected\n ... -ok 2 - ruby_good_1.rb +ok 2 - /tmp/lint/.automation/test/ruby/ruby_good_1.rb diff --git a/.automation/test/terraform/reports/expected-TERRAFORM.tap b/.automation/test/terraform/reports/expected-TERRAFORM.tap index 3434675d..4e389655 100644 --- a/.automation/test/terraform/reports/expected-TERRAFORM.tap +++ b/.automation/test/terraform/reports/expected-TERRAFORM.tap @@ -4,4 +4,4 @@ not ok 1 - terraform_bad_1.tf --- message: Failed to load configurations. 1 error(s) occurred \n\nError Invalid expression\n\n on /tmp/lint/.automation/test/terraform/bad/terraform_bad_1.tf line 3, in resource "aws_instance" "bad" \n 3 instance_type = # invalid type!\n 4 }\n\nExpected the start of an expression, but found an invalid expression token.\n ... -ok 2 - terraform_good_1.tf +ok 2 - /tmp/lint/.automation/test/terraform/good/terraform_good_1.tf diff --git a/.automation/test/typescript_es/reports/expected-TYPESCRIPT_ES.tap b/.automation/test/typescript_es/reports/expected-TYPESCRIPT_ES.tap index c08faa21..9c9b5829 100644 --- a/.automation/test/typescript_es/reports/expected-TYPESCRIPT_ES.tap +++ b/.automation/test/typescript_es/reports/expected-TYPESCRIPT_ES.tap @@ -2,6 +2,6 @@ TAP version 13 1..2 not ok 1 - typescript_bad_1.ts --- - message: \n/tmp/lint/.automation/test/typescript/typescript_bad_1.ts\n 5 39 error Parsing error Unterminated regular expression literal\n\n✖ 1 problem (1 error, 0 warnings)\n + message: \n/tmp/lint/.automation/test/typescript_es/typescript_bad_1.ts\n 5 39 error Parsing error Unterminated regular expression literal\n\n✖ 1 problem (1 error, 0 warnings)\n ... -ok 2 - typescript_good_1.ts +ok 2 - /tmp/lint/.automation/test/typescript_es/typescript_good_1.ts diff --git a/.automation/test/typescript_standard/reports/expected-TYPESCRIPT_STANDARD.tap b/.automation/test/typescript_standard/reports/expected-TYPESCRIPT_STANDARD.tap index 1271fc8f..f6a3ef63 100644 --- a/.automation/test/typescript_standard/reports/expected-TYPESCRIPT_STANDARD.tap +++ b/.automation/test/typescript_standard/reports/expected-TYPESCRIPT_STANDARD.tap @@ -2,6 +2,6 @@ TAP version 13 1..2 not ok 1 - typescript_bad_1.ts --- - message: standard Use JavaScript Standard Style (https //standardjs.com)\n /tmp/lint/.automation/test/typescript/typescript_bad_1.ts 5 39 Parsing error Unterminated regular expression literal.\n + message: standard Use JavaScript Standard Style (https //standardjs.com)\n /tmp/lint/.automation/test/typescript_standard/typescript_bad_1.ts 5 39 Parsing error Unterminated regular expression literal.\n ... -ok 2 - typescript_good_1.ts +ok 2 - /tmp/lint/.automation/test/typescript_standard/typescript_good_1.ts diff --git a/.automation/test/xml/reports/expected-XML.tap b/.automation/test/xml/reports/expected-XML.tap index 4a3081b9..8a029736 100644 --- a/.automation/test/xml/reports/expected-XML.tap +++ b/.automation/test/xml/reports/expected-XML.tap @@ -4,4 +4,4 @@ not ok 1 - xml_bad_1.xml --- message: /tmp/lint/.automation/test/xml/xml_bad_1.xml 7 parser error EndTag '&1) + -type f 2>&1 | sort ) fi ####################### @@ -555,6 +555,10 @@ function BuildFileList() { ############################################## CheckFileType "${FILE}" fi + ########################################## + # Print line break after each file debug # + ########################################## + debug "" done if [ "${VALIDATE_ALL_CODEBASE}" == "false" ]; then