mirror of
https://github.com/sasjs/lint.git
synced 2025-12-10 17:34:36 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9984a373df | ||
| 0c79a1ef85 | |||
|
|
0bd57489b7 |
@@ -1,4 +1,3 @@
|
|||||||
[](/LICENSE)
|
|
||||||

|

|
||||||
[](https://github.com/sasjs/lint/issues?q=is%3Aissue+is%3Aclosed)
|
[](https://github.com/sasjs/lint/issues?q=is%3Aissue+is%3Aclosed)
|
||||||
[](https://github.com/sasjs/lint/issues)
|
[](https://github.com/sasjs/lint/issues)
|
||||||
@@ -130,7 +129,7 @@ We strongly recommend a line length limit, and set the bar at 80. To turn this f
|
|||||||
|
|
||||||
Capture zero-width whitespace and other non-standard characters. The logic is borrowed from the [VSCode Gremlins Extension](https://github.com/nhoizey/vscode-gremlins) - if you are looking for more advanced gremlin zapping capabilities, we highly recommend to use their extension instead.
|
Capture zero-width whitespace and other non-standard characters. The logic is borrowed from the [VSCode Gremlins Extension](https://github.com/nhoizey/vscode-gremlins) - if you are looking for more advanced gremlin zapping capabilities, we highly recommend to use their extension instead.
|
||||||
|
|
||||||
The list of characters can be found in this file: [https://github.com/sasjs/lint/blob/main/src/rules/line/noGremlins.ts](https://github.com/sasjs/lint/blob/main/src/rules/line/noGremlins.ts)
|
The list of characters can be found in this file: [https://github.com/sasjs/lint/blob/main/src/utils/gremlinCharacters.ts](https://github.com/sasjs/lint/blob/main/src/utils/gremlinCharacters.ts)
|
||||||
|
|
||||||
- Default: true
|
- Default: true
|
||||||
- Severity: WARNING
|
- Severity: WARNING
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ const processOptions = (
|
|||||||
const severity = config?.severityLevel[name] || Severity.Warning
|
const severity = config?.severityLevel[name] || Severity.Warning
|
||||||
|
|
||||||
if (optionsPresent) {
|
if (optionsPresent) {
|
||||||
const regex = new RegExp(/="(.*?)"/, 'g')
|
const regex = new RegExp(/=["|'](.*?)["|']/, 'g')
|
||||||
|
|
||||||
let result = regex.exec(optionsPresent)
|
let result = regex.exec(optionsPresent)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user