Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/description/description.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/multiple-tests/all-patterns-typescript/patterns.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1724,6 +1724,7 @@
<module name="n_hashbang" />
<module name="n_no-hide-core-modules" />
<module name="n_shebang" />
<module name="newline-destructuring_newline" />
<module name="no-only-tests_no-only-tests" />
<module name="no-unsanitized_property" />
<module name="no-unsanitized_method" />
Expand Down
1 change: 1 addition & 0 deletions docs/multiple-tests/all-patterns/patterns.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1724,6 +1724,7 @@
<module name="n_hashbang" />
<module name="n_no-hide-core-modules" />
<module name="n_shebang" />
<module name="newline-destructuring_newline" />
<module name="no-only-tests_no-only-tests" />
<module name="no-unsanitized_property" />
<module name="no-unsanitized_method" />
Expand Down
5 changes: 5 additions & 0 deletions docs/multiple-tests/newline-destructuring/patterns.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<module name="root">
<module name="BeforeExecutionExclusionFileFilter">
<property name="fileNamePattern" value=".*\.json" />
</module>
</module>
Comment on lines +1 to +5
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 MEDIUM RISK

The 'patterns.xml' file defines an exclusion filter but fails to enable the actual pattern being tested. Patterns must be explicitly listed as modules to be active during execution.

Suggested change
<module name="root">
<module name="BeforeExecutionExclusionFileFilter">
<property name="fileNamePattern" value=".*\.json" />
</module>
</module>
<module name="root">
<module name="BeforeExecutionExclusionFileFilter">
<property name="fileNamePattern" value=".*\.json" />
</module>
<module name="newline-destructuring_newline" />
</module>

6 changes: 6 additions & 0 deletions docs/multiple-tests/newline-destructuring/results.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<checkstyle version="4.3">
<file name="newline-destructuring.js">
<error source="newline-destructuring_newline" line="2" message="Object desctructuring lines must be broken into multiple lines if there are more than 2 properties" severity="info" />
</file>
</checkstyle>
9 changes: 9 additions & 0 deletions docs/multiple-tests/newline-destructuring/src/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"parserOptions": {
"ecmaVersion": 2020
},
"plugins": ["newline-destructuring"],
"rules": {
"newline-destructuring/newline": ["error", { "items": 2 }]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const obj = { a: 1, b: 2, c: 3 };
const { a, b, c } = obj;
7 changes: 7 additions & 0 deletions docs/patterns.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@
"eslint-plugin-mocha": "^10.4.3",
"eslint-plugin-monorepo": "^0.3.2",
"eslint-plugin-n": "^17.7.0",
"eslint-plugin-newline-destructuring": "^1.2.2",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-no-unsanitized": "^4.0.2",
"eslint-plugin-nuxt": "^4.0.0",
Expand Down
1 change: 1 addition & 0 deletions src/eslintPlugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ const packageNames: string[] = [
"eslint-plugin-mocha",
"eslint-plugin-monorepo",
"eslint-plugin-n",
"eslint-plugin-newline-destructuring",
"eslint-plugin-no-only-tests",
"eslint-plugin-no-unsanitized",
"eslint-plugin-nuxt",
Expand Down