Skip to content

Commit

Permalink
fix(rules): add LaunchDarkly
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 5, 2023
1 parent b5104ca commit 8a15eb3
Show file tree
Hide file tree
Showing 9 changed files with 69 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rules/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ exports[`all > should match everything 1`] = `
"klaviyo",
"koa",
"kubernetes",
"launchdarkly",
"logrocket",
"logsnag",
"mailchimp",
Expand Down
1 change: 1 addition & 0 deletions src/rules/saas/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import './hubspot.js';
import './huggingface.js';
import './hypertune.js';
import './klaviyo.js';
import './launchdarkly.js';
import './logrocket.js';
import './mailchimp.js';
import './mailjet.js';
Expand Down
31 changes: 31 additions & 0 deletions src/rules/saas/launchdarkly.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { register } from '../../register.js';

register({
tech: 'launchdarkly',
name: 'LaunchDarkly',
type: 'saas',
dependencies: [
{
type: 'npm',
name: /launchdarkly-.+-client-sdk/,
example: 'launchdarkly-react-client-sdk',
},
{
type: 'npm',
name: /^@launchdarkly\//,
example: '@launchdarkly/cloudflare-server-sdk',
},
{
type: 'golang',
name: /github.com\/launchdarkly\//,
example: 'github.com/launchdarkly/go-sdk-common/v3',
},
{ type: 'ruby', name: 'launchdarkly-server-sdk' },
{ type: 'ruby', name: 'ldclient-rb' },
{ type: 'rust', name: 'launchdarkly-server-sdk' },
{
type: 'terraform',
name: 'registry.terraform.io/launchdarkly/launchdarkly',
},
],
});
6 changes: 6 additions & 0 deletions src/rules/spec/golang/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ exports[`golang (lockfile) > should match everything 1`] = `
"gcp.translate",
"gcp.vision",
"golang",
"launchdarkly",
]
`;

Expand Down Expand Up @@ -193,5 +194,10 @@ exports[`golang (lockfile) > should match everything 2`] = `
"github.com/aws/aws-sdk-go-v2/service/sqs",
"v1.0.0",
],
[
"golang",
"github.com/launchdarkly/go-sdk-common/v3",
"v1.0.0",
],
]
`;
11 changes: 11 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ exports[`npm > should match everything 1`] = `
"influxdb",
"koa",
"kubernetes",
"launchdarkly",
"logrocket",
"logsnag",
"mailchimp",
Expand Down Expand Up @@ -408,6 +409,11 @@ exports[`npm > should match everything 2`] = `
"@kubernetes/client-node",
"0.0.0",
],
[
"npm",
"@launchdarkly/cloudflare-server-sdk",
"0.0.0",
],
[
"npm",
"@mailchimp/mailchimp_marketing",
Expand Down Expand Up @@ -773,6 +779,11 @@ exports[`npm > should match everything 2`] = `
"koa",
"0.0.0",
],
[
"npm",
"launchdarkly-react-client-sdk",
"0.0.0",
],
[
"npm",
"logrocket",
Expand Down
11 changes: 11 additions & 0 deletions src/rules/spec/ruby/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ exports[`ruby (component) > should match everything 1`] = `
"heroku",
"influxdb",
"kubernetes",
"launchdarkly",
"mailchimp",
"mailjet",
"mariadb",
Expand Down Expand Up @@ -363,6 +364,16 @@ exports[`ruby (component) > should match everything 2`] = `
"kubeclient",
"1.0.0",
],
[
"ruby",
"launchdarkly-server-sdk",
"1.0.0",
],
[
"ruby",
"ldclient-rb",
"1.0.0",
],
[
"ruby",
"mailjet",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/rust/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ exports[`rust (component) > should match everything 1`] = `
"hashicorp_vault",
"influxdb",
"kubernetes",
"launchdarkly",
"mailjet",
"memcached",
"mongodb",
Expand Down Expand Up @@ -223,6 +224,11 @@ exports[`rust (component) > should match everything 2`] = `
"lambda_runtime",
"1.0.0",
],
[
"rust",
"launchdarkly-server-sdk",
"1.0.0",
],
[
"rust",
"libsqlite3-sys",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ exports[`terraform (lockfile) > should match everything 1`] = `
"helm",
"heroku",
"kubernetes",
"launchdarkly",
"mongodbatlas",
"newrelic",
"okta",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ export type AllowedKeys =
| 'koa'
| 'kotlin'
| 'kubernetes'
| 'launchdarkly'
| 'logrocket'
| 'logsnag'
| 'mailchimp'
Expand Down

0 comments on commit 8a15eb3

Please sign in to comment.