Skip to content

Commit c400aac

Browse files
authored
fix: Updated inconsistent name text (#243)
1 parent 6c00f4e commit c400aac

3 files changed

Lines changed: 9 additions & 17 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,13 @@ jobs:
6060
git config user.name "github-actions[bot]"
6161
git config user.email "github-actions[bot]@users.noreply.github.com"
6262
63-
- uses: pnpm/action-setup@v4
64-
with:
65-
version: 10
66-
6763
- uses: actions/setup-node@v6
6864
with:
6965
node-version: 24
70-
registry-url: 'https://registry.npmjs.org'
71-
72-
- name: Update npm to latest
73-
run: npm install -g npm@latest
7466

75-
- run: pnpm install --frozen-lockfile
67+
- run: npm install
7668

7769
- name: Run release-it
78-
run: pnpm release -- --ci
70+
run: npm run release -- --ci
7971
env:
8072
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

src/ui/scan/printInconsistentNamingWarning.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function printInconsistentNamingWarning(
2424
),
2525
);
2626
console.log(
27-
chalk.gray(` Suggested canonical name: ${suggestion}`),
27+
chalk.gray(` Suggested name: ${suggestion}`),
2828
);
2929
}
3030

test/e2e/cli.inconsistentNaming.e2e.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describe('Inconsistent Naming Warnings', () => {
5555
expect(res.status).toBe(0);
5656
expect(res.stdout).toContain('Inconsistent naming found');
5757
expect(res.stdout).toContain(
58-
'Suggested canonical name: API_KEY',
58+
'Suggested name: API_KEY',
5959
);
6060
});
6161

@@ -78,13 +78,13 @@ describe('Inconsistent Naming Warnings', () => {
7878
expect(res.status).toBe(0);
7979
expect(res.stdout).toContain('Inconsistent naming found');
8080
expect(res.stdout).toContain(
81-
'Suggested canonical name: API_KEY',
81+
'Suggested name: API_KEY',
8282
);
8383
expect(res.stdout).toContain(
84-
'Suggested canonical name: DATABASE_URL',
84+
'Suggested name: DATABASE_URL',
8585
);
8686
expect(res.stdout).toContain(
87-
'Suggested canonical name: JWT_SECRET',
87+
'Suggested name: JWT_SECRET',
8888
);
8989
});
9090

@@ -127,7 +127,7 @@ describe('Inconsistent Naming Warnings', () => {
127127
expect(res.status).toBe(0);
128128
expect(res.stdout).toContain('Inconsistent naming found');
129129
expect(res.stdout).toContain(
130-
'Suggested canonical name: API_KEY',
130+
'Suggested name: API_KEY',
131131
);
132132
});
133133

@@ -147,7 +147,7 @@ describe('Inconsistent Naming Warnings', () => {
147147
expect(res.status).toBe(1);
148148
expect(res.stdout).toContain('Inconsistent naming found');
149149
expect(res.stdout).toContain(
150-
'Suggested canonical name: API_KEY',
150+
'Suggested name: API_KEY',
151151
);
152152
expect(res.stdout).toContain('inconsistent naming patterns');
153153
});

0 commit comments

Comments
 (0)