Skip to content

Commit 2841489

Browse files
author
Chris Raynor
authored
Merge pull request #233 from miqh/fix/205
Resolve violations of no-useless-escape lint
2 parents bcf29b3 + a2931d3 commit 2841489

10 files changed

Lines changed: 9 additions & 10 deletions

.eslintrc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
"github/no-then": "off",
4949
"import/no-extraneous-dependencies": "off",
5050
"no-shadow": "off",
51-
"no-useless-escape": "off",
5251
"sort-imports": "off"
5352
}
5453
}]

lib/analysis-paths.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analysis-paths.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/config-utils.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/config-utils.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/toolrunner-error-catcher.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/toolrunner-error-catcher.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/analysis-paths.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function isInterpretedLanguage(language): boolean {
66
}
77

88
// Matches a string containing only characters that are legal to include in paths on windows.
9-
export const legalWindowsPathCharactersRegex = /^[^<>:"\|?]*$/;
9+
export const legalWindowsPathCharactersRegex = /^[^<>:"|?]*$/;
1010

1111
// Builds an environment variable suitable for LGTM_INDEX_INCLUDE or LGTM_INDEX_EXCLUDE
1212
function buildIncludeExcludeEnvVar(paths: string[]): string {

src/config-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ const pathStarsRegex = /.*(?:\*\*[^/].*|\*\*$|[^/]\*\*.*)/;
375375

376376
// Characters that are supported by filters in workflows, but not by us.
377377
// See https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
378-
const filterPatternCharactersRegex = /.*[\?\+\[\]!].*/;
378+
const filterPatternCharactersRegex = /.*[?+[\]!].*/;
379379

380380
// Checks that a paths of paths-ignore entry is valid, possibly modifying it
381381
// to make it valid, or if not possible then throws an error.

src/toolrunner-error-catcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export async function toolrunnerErrorCatcher(
7777
return returnState;
7878
} else {
7979
throw new Error(
80-
`The process \'${commandLine}\' failed with exit code ${returnState}`
80+
`The process '${commandLine}' failed with exit code ${returnState}`
8181
);
8282
}
8383
} else {

0 commit comments

Comments
 (0)