Skip to content

Commit

Permalink
fix(rules): add Papertrail
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Oct 12, 2023
1 parent cb327c3 commit d656ad5
Show file tree
Hide file tree
Showing 8 changed files with 46 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 @@ -243,6 +243,7 @@ exports[`all > should match everything 1`] = `
"oraclecloud",
"ovh",
"pagerduty",
"papertrail",
"paypal",
"percona",
"php",
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,6 +7,7 @@ import './healthchecksio.js';
import './hyperdx.js';
import './newrelic.js';
import './onlineornot.js';
import './papertrail.js';
import './pingdom.js';
import './rollbar.js';
import './scoutapm.js';
Expand Down
14 changes: 14 additions & 0 deletions src/rules/monitoring/papertrail.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { register } from '../../register.js';

register({
tech: 'papertrail',
name: 'Papertrail',
type: 'monitoring',
dependencies: [
{ type: 'npm', name: 'winston-papertrail' },
{ type: 'npm', name: 'pino-papertrail' },
{ type: 'php', name: 'stephanecoinon/papertrail' },
{ type: 'ruby', name: 'papertrail' },
{ type: 'golang', name: 'github.com/papertrail/go-tail/follower' },
],
});
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 @@ -86,6 +86,7 @@ exports[`golang (lockfile) > should match everything 1`] = `
"logstash",
"mailgun",
"meilisearch",
"papertrail",
"paypal",
"pirschanalytics",
"posthog",
Expand Down Expand Up @@ -556,6 +557,11 @@ exports[`golang (lockfile) > should match everything 2`] = `
"github.com/meilisearch/meilisearch-go",
"v1.0.0",
],
[
"golang",
"github.com/papertrail/go-tail/follower",
"v1.0.0",
],
[
"golang",
"github.com/pirsch-analytics/pirsch-go-sdk/v2",
Expand Down
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 @@ -155,6 +155,7 @@ exports[`npm > should match everything 1`] = `
"oraclecloud",
"ovh",
"pagerduty",
"papertrail",
"paypal",
"pirschanalytics",
"placekit",
Expand Down Expand Up @@ -1814,6 +1815,11 @@ exports[`npm > should match everything 2`] = `
"php-coveralls",
"0.0.0",
],
[
"npm",
"pino-papertrail",
"0.0.0",
],
[
"npm",
"pirsch-sdk",
Expand Down Expand Up @@ -2044,6 +2050,11 @@ exports[`npm > should match everything 2`] = `
"webpack",
"0.0.0",
],
[
"npm",
"winston-papertrail",
"0.0.0",
],
[
"npm",
"wrangler",
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 @@ -91,6 +91,7 @@ exports[`php > should match everything 1`] = `
"oraclecloud",
"ovh",
"pagerduty",
"papertrail",
"paypal",
"php",
"phppest",
Expand Down Expand Up @@ -948,6 +949,11 @@ exports[`php > should match everything 2`] = `
"srmklive/paypal",
"0.0.0",
],
[
"php",
"stephanecoinon/papertrail",
"0.0.0",
],
[
"php",
"stripe/stripe-php",
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 @@ -111,6 +111,7 @@ exports[`ruby (component) > should match everything 1`] = `
"okta",
"oraclecloud",
"pagerduty",
"papertrail",
"paypal",
"pirschanalytics",
"postgresql",
Expand Down Expand Up @@ -786,6 +787,11 @@ exports[`ruby (component) > should match everything 2`] = `
"pagerduty",
"1.0.0",
],
[
"ruby",
"papertrail",
"1.0.0",
],
[
"ruby",
"paypal",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ export type AllowedKeys =
| 'oraclecloud'
| 'ovh'
| 'pagerduty'
| 'papertrail'
| 'paypal'
| 'percona'
| 'php'
Expand Down

0 comments on commit d656ad5

Please sign in to comment.