Skip to content
Merged
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
7 changes: 4 additions & 3 deletions .github/workflows/create-release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:
# Checkout `dev`
- uses: actions/checkout@v4
with:
ref: 'dev'
ref: "dev"
# We need to set up Node and install our Node dependencies.
- uses: actions/setup-node@v4
with:
node-version: 'lts/*' # Always use Node LTS for building dependencies.
node-version: "lts/*" # Always use Node LTS for building dependencies.
- run: npm install
# Increment the version as desired locally, without actually committing anything.
- name: Locally increment version
Expand Down Expand Up @@ -122,5 +122,6 @@ jobs:
needs: create-release-branch
uses: ./.github/workflows/run-tests.yml
with:
node-matrix: "[{version: 'lts/*', artifact: 'lts'}, {version: 'latest', artifact: 'latest'}]"
# NOTE: We are temporarily hardcoding the `latest` version to 24.x, since 25.x is not yet supported in the CLI.
node-matrix: "[{version: 'lts/*', artifact: 'lts'}, {version: '24.x', artifact: 'latest'}]"
target-branch: ${{ needs.create-release-branch.outputs.branch-name }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![License](https://img.shields.io/npm/l/scanner.svg)](https://github.com/forcedotcom/code-analyzer/blob/master/package.json)
[![License](https://img.shields.io/npm/l/@salesforce/plugin-code-analyzer.svg)](https://github.com/forcedotcom/code-analyzer/blob/master/package.json)

# Salesforce Code Analyzer
Salesforce Code Analyzer is a unified tool to help Salesforce developers analyze their source code for security vulnerabilities, performance issues, best practices, and more.
Expand Down
45 changes: 29 additions & 16 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@salesforce/plugin-code-analyzer",
"description": "Salesforce Code Analyzer is a unified tool to help Salesforce developers analyze their source code for security vulnerabilities, performance issues, best practices, and more.",
"version": "5.6.0",
"version": "5.6.1",
"author": "Salesforce Code Analyzer Team",
"bugs": "https://github.com/forcedotcom/code-analyzer/issues",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/utils/WorkspaceUtil.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as fg from 'fast-glob';
import fg from 'fast-glob';
import {CodeAnalyzer, Workspace} from '@salesforce/code-analyzer-core';
import {getMessage, BundleName} from '../messages.js';

Expand Down
2 changes: 1 addition & 1 deletion test/lib/actions/RunAction.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import path from 'node:path';
import * as path from 'node:path';
import * as fs from 'node:fs';
import ansis from 'ansis';
import {SfError} from '@salesforce/core';
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"sourceMap": true,
"declaration": true,
"moduleResolution": "NodeNext",
"allowSyntheticDefaultImports": false,
"alwaysStrict": true,
"noUnusedLocals": true,
"outDir": "./lib",
Expand Down
5 changes: 5 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ import { defineConfig } from "vitest/config";

export default defineConfig({
test: {
deps: {
// We turn this off so that vitest catches "default imports" vs "namespace imports" issues
// instead of treating both types of imports as the same.
interopDefault: false
},
setupFiles: ["test/setup-tests.ts"],
testTimeout: 60000,
environment: "node",
Expand Down