Skip to content

Commit f7176d6

Browse files
authored
JS-737 JS-738 Update generated-meta to include required-dependency list (#5442)
1 parent 194dc9c commit f7176d6

File tree

68 files changed

+361
-159
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+361
-159
lines changed

its/ruling/src/test/expected/jsts/ace/javascript-S6757.json

Lines changed: 0 additions & 19 deletions
This file was deleted.

its/ruling/src/test/expected/jsts/vuetify/typescript-S6478.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

its/sources/css/projects

its/sources/jsts/custom/S6840.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
function MyInput() {
2-
return <input type="text" autocomplete="foo" />; // Noncompliant
2+
return <input type="text" autoComplete="foo" />; // Noncompliant
33
}

its/sources/jsts/custom/S6846.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
function div() {
2-
return <div accesskey="h" />;
2+
return <div accessKey="h" />;
33
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "custom",
3+
"dependencies": {
4+
"react": "19.1.0",
5+
"aws-cdk-lib": "2.200.1"
6+
}
7+
}

packages/bridge/tests/server.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ async function requestAnalyzeJs(server: http.Server, fileType: string) {
266266

267267
function requestInitLinter(server: http.Server, fileType: string, ruleId: string) {
268268
const config = {
269+
baseDir: import.meta.dirname,
269270
rules: [
270271
{
271272
key: ruleId,

packages/html/tests/analysis/analyzer.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ describe('analyzeHTML', () => {
2727

2828
it('should analyze HTML file', async () => {
2929
await Linter.initialize({
30+
baseDir: fixturesPath,
3031
rules: [
3132
{
3233
key: 'S3923',
@@ -56,6 +57,7 @@ describe('analyzeHTML', () => {
5657

5758
it('should not break when using a rule with a quickfix', async () => {
5859
await Linter.initialize({
60+
baseDir: fixturesPath,
5961
rules: [
6062
{
6163
key: 'S1116',
@@ -93,6 +95,7 @@ describe('analyzeHTML', () => {
9395

9496
it('should not break when using "S3723" rule', async () => {
9597
await Linter.initialize({
98+
baseDir: fixturesPath,
9699
rules: [
97100
{
98101
key: 'S3723',
@@ -128,6 +131,7 @@ describe('analyzeHTML', () => {
128131

129132
it('should not break when using a rule with secondary locations', async () => {
130133
await Linter.initialize({
134+
baseDir: fixturesPath,
131135
rules: [
132136
{
133137
key: 'S2251',
@@ -159,6 +163,7 @@ describe('analyzeHTML', () => {
159163

160164
it('should not break when using a regex rule', async () => {
161165
await Linter.initialize({
166+
baseDir: fixturesPath,
162167
rules: [
163168
{
164169
key: 'S6326',

packages/jsts/src/analysis/projectAnalysis/projectAnalyzer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export async function analyzeProject(
5555
},
5656
};
5757
setGlobalConfiguration(configuration);
58+
const { filesToAnalyze, pendingFiles } = await getFilesToAnalyze(normalizedBaseDir, files);
5859
await Linter.initialize({
5960
rules,
6061
environments: getEnvironments(),
@@ -64,7 +65,6 @@ export async function analyzeProject(
6465
baseDir: normalizedBaseDir,
6566
rulesWorkdir,
6667
});
67-
const { filesToAnalyze, pendingFiles } = await getFilesToAnalyze(normalizedBaseDir, files);
6868
const progressReport = new ProgressReport(sourceFileStore.getFoundFilesCount());
6969
if (pendingFiles.size) {
7070
if (isSonarLint()) {

0 commit comments

Comments
 (0)