Skip to content

Commit

Permalink
fix(rules): complete some tech
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 17, 2023
1 parent 8654a10 commit 7ea5513
Show file tree
Hide file tree
Showing 10 changed files with 126 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rules/saas/sendgrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@ register({
dependencies: [
{ type: 'npm', name: /^@sendgrid\//, example: '@sendgrid/mail' },
{ type: 'php', name: 'sendgrid/sendgrid' },
{ type: 'ruby', name: 'sendgrid-ruby' },
{ type: 'ruby', name: 'sendgrid-rails' },
{ type: 'ruby', name: 'sendgrid' },
{ type: 'golang', name: 'github.com/sendgrid/sendgrid-go' },
],
});
6 changes: 6 additions & 0 deletions src/rules/saas/snyk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,11 @@ register({
name: /^snyk\/actions\//,
example: 'snyk/actions/php',
},
{ type: 'docker', name: 'snyk/snyk-cli' },
{ type: 'docker', name: 'snyk/broker' },
{ type: 'docker', name: 'snyk/kubernetes-monitor' },
{ type: 'docker', name: 'snyk/kubernetes-operator' },
{ type: 'docker', name: 'snyk/code-agent' },
{ type: 'docker', name: 'snyk/driftctl' },
],
});
4 changes: 4 additions & 0 deletions src/rules/saas/stripe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@ register({
{ type: 'php', name: 'laravel/cashier' },
{ type: 'php', name: 'omnipay/stripe' },
{ type: 'php', name: 'cartalyst/stripe' },
{ type: 'ruby', name: 'stripe' },
{ type: 'ruby', name: 'stripe-rails' },
{ type: 'ruby', name: 'stripe_event' },
{ type: 'golang', name: 'github.com/stripe/stripe-go' },
],
});
2 changes: 2 additions & 0 deletions src/rules/saas/twilio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ register({
{ type: 'npm', name: /^@twilio\//, example: '@twilio/cli-core' },
{ type: 'php', name: 'twilio/sdk' },
{ type: 'githubAction', name: 'twilio-labs/actions-sms' },
{ type: 'golang', name: 'github.com/twilio/twilio-go' },
{ type: 'ruby', name: 'twilio-ruby' },
],
});
5 changes: 5 additions & 0 deletions src/rules/saas/zendesk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ register({
tech: 'zendesk',
name: 'Zendesk',
type: 'saas',
dependencies: [
{ type: 'npm', name: 'node-zendesk' },
{ type: 'ruby', name: 'zendesk_api' },
{ type: 'php', name: 'zendesk/zendesk_api_client_php' },
],
});
31 changes: 31 additions & 0 deletions src/rules/spec/docker/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ exports[`docker > should match everything 1`] = `
"rabbitmq",
"redis",
"ruby",
"snyk",
"strapi",
"trufflesecurity",
"zookeeper",
Expand Down Expand Up @@ -319,6 +320,36 @@ exports[`docker > should match everything 2`] = `
"ruby",
"0.0.0",
],
[
"docker",
"snyk/broker",
"0.0.0",
],
[
"docker",
"snyk/code-agent",
"0.0.0",
],
[
"docker",
"snyk/driftctl",
"0.0.0",
],
[
"docker",
"snyk/kubernetes-monitor",
"0.0.0",
],
[
"docker",
"snyk/kubernetes-operator",
"0.0.0",
],
[
"docker",
"snyk/snyk-cli",
"0.0.0",
],
[
"docker",
"strapi",
Expand Down
18 changes: 18 additions & 0 deletions src/rules/spec/golang/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ exports[`golang (lockfile) > should match everything 1`] = `
"launchdarkly",
"lemonsqueezy",
"meilisearch",
"sendgrid",
"splitio",
"stripe",
"twilio",
]
`;

Expand Down Expand Up @@ -282,11 +285,26 @@ exports[`golang (lockfile) > should match everything 2`] = `
"github.com/meilisearch/meilisearch-go",
"v1.0.0",
],
[
"golang",
"github.com/sendgrid/sendgrid-go",
"v1.0.0",
],
[
"golang",
"github.com/splitio/go-client/v6",
"v1.0.0",
],
[
"golang",
"github.com/stripe/stripe-go",
"v1.0.0",
],
[
"golang",
"github.com/twilio/twilio-go",
"v1.0.0",
],
[
"golang",
"goveralls",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ exports[`npm > should match everything 1`] = `
"vue",
"webflow",
"webpack",
"zendesk",
]
`;

Expand Down Expand Up @@ -1029,6 +1030,11 @@ exports[`npm > should match everything 2`] = `
"node-mailjet",
"0.0.0",
],
[
"npm",
"node-zendesk",
"0.0.0",
],
[
"npm",
"nuxt",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/php/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ exports[`php > should match everything 1`] = `
"wordpress",
"yii2",
"yousign",
"zendesk",
"zookeeper",
]
`;
Expand Down Expand Up @@ -817,6 +818,11 @@ exports[`php > should match everything 2`] = `
"yiisoft/yii2",
"0.0.0",
],
[
"php",
"zendesk/zendesk_api_client_php",
"0.0.0",
],
[
"php",
"zumba/amplitude-php",
Expand Down
44 changes: 44 additions & 0 deletions src/rules/spec/ruby/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,16 @@ exports[`ruby (component) > should match everything 1`] = `
"rabbitmq",
"redis",
"ruby",
"sendgrid",
"sentry",
"slack",
"snowflake",
"splitio",
"sqlite",
"sqreen",
"stripe",
"twilio",
"zendesk",
"zookeeper",
]
`;
Expand Down Expand Up @@ -532,6 +536,21 @@ exports[`ruby (component) > should match everything 2`] = `
"ruby-mysql",
"1.0.0",
],
[
"ruby",
"sendgrid",
"1.0.0",
],
[
"ruby",
"sendgrid-rails",
"1.0.0",
],
[
"ruby",
"sendgrid-ruby",
"1.0.0",
],
[
"ruby",
"sentry-rails",
Expand Down Expand Up @@ -567,6 +586,21 @@ exports[`ruby (component) > should match everything 2`] = `
"sqreen",
"1.0.0",
],
[
"ruby",
"stripe",
"1.0.0",
],
[
"ruby",
"stripe-rails",
"1.0.0",
],
[
"ruby",
"stripe_event",
"1.0.0",
],
[
"ruby",
"tencentcloud-sdk-mariadb",
Expand All @@ -577,11 +611,21 @@ exports[`ruby (component) > should match everything 2`] = `
"travis",
"1.0.0",
],
[
"ruby",
"twilio-ruby",
"1.0.0",
],
[
"ruby",
"vault",
"1.0.0",
],
[
"ruby",
"zendesk_api",
"1.0.0",
],
[
"ruby",
"zookeeper",
Expand Down

0 comments on commit 7ea5513

Please sign in to comment.