Skip to content

Commit

Permalink
fix(rules): add Rollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Oct 12, 2023
1 parent efc4b12 commit 3a00b19
Show file tree
Hide file tree
Showing 10 changed files with 85 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 @@ -277,6 +277,7 @@ exports[`all > should match everything 1`] = `
"replit.database",
"replit.postgres",
"resend",
"rollbar",
"rollup",
"ruby",
"rust",
Expand Down
1 change: 1 addition & 0 deletions src/rules/monitoring/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ import './healthchecksio.js';
import './newrelic.js';
import './onlineornot.js';
import './pingdom.js';
import './rollbar.js';
import './scoutapm.js';
import './sentry.js';
21 changes: 21 additions & 0 deletions src/rules/monitoring/rollbar.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { register } from '../../register.js';

register({
tech: 'rollbar',
name: 'Rollbar',
type: 'monitoring',
dependencies: [
{ type: 'golang', name: 'github.com/rollbar/rollbar-go' },
{ type: 'npm', name: 'rollbar' },
{ type: 'npm', name: '@rollbar/react' },
{ type: 'npm', name: 'rollbar-react-native' },
{ type: 'php', name: 'rollbar/rollbar' },
{ type: 'php', name: 'rollbar/rollbar-laravel' },
{ type: 'php', name: 'rollbar/rollbar-magento2' },
{ type: 'php', name: 'rollbar/rollbar-php-symfony-bundle' },
{ type: 'php', name: 'wpackagist-plugin/rollbar' },
{ type: 'ruby', name: 'rollbar' },
{ type: 'githubAction', name: 'rollbar/github-deploy-action' },
{ type: 'terraform', name: 'registry.terraform.io/rollbar/rollbar' },
],
});
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ exports[`docker > should match all dependencies 1`] = `
"netlify",
"planetscale",
"postgresql",
"rollbar",
"scaleway",
"sentry",
"slack",
Expand Down Expand Up @@ -517,6 +518,11 @@ exports[`docker > should match all dependencies 2`] = `
"relative-ci/agent-action",
"1",
],
[
"githubAction",
"rollbar/github-deploy-action",
"1",
],
[
"githubAction",
"samuelmeuli/action-electron-builder",
Expand Down
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 @@ -87,6 +87,7 @@ exports[`golang (lockfile) > should match everything 1`] = `
"paypal",
"pirschanalytics",
"posthog",
"rollbar",
"sendgrid",
"slack",
"splitio",
Expand Down Expand Up @@ -548,6 +549,11 @@ exports[`golang (lockfile) > should match everything 2`] = `
"github.com/posthog/posthog-go",
"v1.0.0",
],
[
"golang",
"github.com/rollbar/rollbar-go",
"v1.0.0",
],
[
"golang",
"github.com/sendgrid/sendgrid-go",
Expand Down
16 changes: 16 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ exports[`npm > should match everything 1`] = `
"replit",
"replit.database",
"resend",
"rollbar",
"rollup",
"salesforce",
"sanity",
Expand Down Expand Up @@ -1126,6 +1127,11 @@ exports[`npm > should match everything 2`] = `
"@replit/database",
"0.0.0",
],
[
"npm",
"@rollbar/react",
"0.0.0",
],
[
"npm",
"@salesforce/kit",
Expand Down Expand Up @@ -1871,6 +1877,16 @@ exports[`npm > should match everything 2`] = `
"resend",
"0.0.0",
],
[
"npm",
"rollbar",
"0.0.0",
],
[
"npm",
"rollbar-react-native",
"0.0.0",
],
[
"npm",
"rollup",
Expand Down
26 changes: 26 additions & 0 deletions src/rules/spec/php/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ exports[`php > should match everything 1`] = `
"rabbitmq",
"redis",
"resend",
"rollbar",
"scoutapm",
"sendgrid",
"sentry",
Expand Down Expand Up @@ -822,6 +823,26 @@ exports[`php > should match everything 2`] = `
"resend/resend-php",
"0.0.0",
],
[
"php",
"rollbar/rollbar",
"0.0.0",
],
[
"php",
"rollbar/rollbar-laravel",
"0.0.0",
],
[
"php",
"rollbar/rollbar-magento2",
"0.0.0",
],
[
"php",
"rollbar/rollbar-php-symfony-bundle",
"0.0.0",
],
[
"php",
"roots/wordpress",
Expand Down Expand Up @@ -967,6 +988,11 @@ exports[`php > should match everything 2`] = `
"wp-cli/wp-cli",
"0.0.0",
],
[
"php",
"wpackagist-plugin/rollbar",
"0.0.0",
],
[
"php",
"yiisoft/yii2",
Expand Down
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 @@ -117,6 +117,7 @@ exports[`ruby (component) > should match everything 1`] = `
"postmark",
"rabbitmq",
"redis",
"rollbar",
"ruby",
"scoutapm",
"sendgrid",
Expand Down Expand Up @@ -824,6 +825,11 @@ exports[`ruby (component) > should match everything 2`] = `
"redis-client",
"1.0.0",
],
[
"ruby",
"rollbar",
"1.0.0",
],
[
"ruby",
"ruby-mysql",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ exports[`terraform (lockfile) > should match everything 1`] = `
"ovh",
"pagerduty",
"prismacloud",
"rollbar",
"scaleway",
"slack",
"snowflake",
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 =
| 'replit.postgres'
| 'replit'
| 'resend'
| 'rollbar'
| 'rollup'
| 'ruby'
| 'rust'
Expand Down

0 comments on commit 3a00b19

Please sign in to comment.