Skip to content

Commit 037f65d

Browse files
authored
Rename feature to SkipUnsupportedTracedAnalysis
1 parent e5fb034 commit 037f65d

4 files changed

Lines changed: 10 additions & 14 deletions

File tree

‎lib/entry-points.js‎

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/feature-flags.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ export enum Feature {
165165
*/
166166
PerLanguageBundles = "per_language_bundles_v2",
167167
QaTelemetryEnabled = "qa_telemetry_enabled",
168-
/** Whether we should fail early if we detect that traced Swift analysis is unsupported. */
169-
SwiftSkipUnsupportedTracedAnalysis = "swift_skip_unsupported_traced_analysis",
168+
/** Whether we should fail early if we detect that traced analysis is unsupported. */
169+
SkipUnsupportedTracedAnalysis = "skip_unsupported_traced_analysis",
170170
/** Routes (some) API requests through the registry proxy. */
171171
ProxyApiRequests = "proxy_api_requests",
172172
/** Note that this currently only disables baseline file coverage information. */
@@ -458,9 +458,9 @@ export const featureConfig = {
458458
envVar: "CODEQL_ACTION_START_PROXY_USE_FEATURES_RELEASE",
459459
minimumVersion: undefined,
460460
},
461-
[Feature.SwiftSkipUnsupportedTracedAnalysis]: {
461+
[Feature.SkipUnsupportedTracedAnalysis]: {
462462
defaultValue: false,
463-
envVar: "CODEQL_ACTION_SWIFT_SKIP_UNSUPPORTED_TRACED_ANALYSIS",
463+
envVar: "CODEQL_ACTION_SKIP_UNSUPPORTED_TRACED_ANALYSIS",
464464
minimumVersion: undefined,
465465
},
466466
[Feature.ToolsRepositoryProperty]: {

‎src/languages/swift.test.ts‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,7 @@ test.serial(
209209
const env = getTestEnv();
210210
env.set(ActionsEnvVars.RUNNER_TEMP, tmpDir);
211211

212-
const features = createFeatures([
213-
Feature.SwiftSkipUnsupportedTracedAnalysis,
214-
]);
212+
const features = createFeatures([Feature.SkipUnsupportedTracedAnalysis]);
215213

216214
const codeql = await getCodeQLForTesting(
217215
"codeql-for-testing",
@@ -397,9 +395,7 @@ test.serial(
397395
.stub(fs, "readlinkSync")
398396
.returns("/Applications/Xcode_27.0.app/Contents/Developer");
399397

400-
const features = createFeatures([
401-
Feature.SwiftSkipUnsupportedTracedAnalysis,
402-
]);
398+
const features = createFeatures([Feature.SkipUnsupportedTracedAnalysis]);
403399

404400
const codeql = await getCodeQLForTesting(
405401
"codeql-for-testing",

‎src/languages/swift.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export async function isSwiftCompatible(
114114
}
115115

116116
const skipUnsupportedTracedAnalysis = await action.features.getValue(
117-
Feature.SwiftSkipUnsupportedTracedAnalysis,
117+
Feature.SkipUnsupportedTracedAnalysis,
118118
);
119119
if (typeof version === "string") {
120120
// If we got a string, we are on macOS but couldn't parse the version string.

0 commit comments

Comments
 (0)