Skip to content

Commit

Permalink
fix(rules): add ServiceNow
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 20, 2023
1 parent bc17732 commit e1a6d9d
Show file tree
Hide file tree
Showing 5 changed files with 17 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 @@ -268,6 +268,7 @@ exports[`all > should match everything 1`] = `
"sendgrid",
"sentry",
"sequelize",
"servicenow",
"shopify",
"sitecore",
"sitecore.xmlcloud",
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 @@ -48,6 +48,7 @@ import './sanity.js';
import './sap.js';
import './sendgrid.js';
import './sentry.js';
import './servicenow.js';
import './shopify.js';
import './slack.js';
import './snyk.js';
Expand Down
8 changes: 8 additions & 0 deletions src/rules/saas/servicenow.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { register } from '../../register.js';

register({
tech: 'servicenow',
name: 'ServiceNow',
type: 'saas',
dependencies: [{ type: 'ruby', name: 'servicenow-api' }],
});
6 changes: 6 additions & 0 deletions src/rules/spec/ruby/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ exports[`ruby (component) > should match everything 1`] = `
"ruby",
"sendgrid",
"sentry",
"servicenow",
"slack",
"snowflake",
"splitio",
Expand Down Expand Up @@ -834,6 +835,11 @@ exports[`ruby (component) > should match everything 2`] = `
"sequel-snowflake",
"1.0.0",
],
[
"ruby",
"servicenow-api",
"1.0.0",
],
[
"ruby",
"sib-api-v3-sdk",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ export type AllowedKeys =
| 'sendgrid'
| 'sentry'
| 'sequelize'
| 'servicenow'
| 'shell'
| 'shopify'
| 'sitecore.xmlcloud'
Expand Down

0 comments on commit e1a6d9d

Please sign in to comment.