Skip to content

Commit

Permalink
fix(rules): add Pirsch Analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 20, 2023
1 parent 4bdeb0d commit 283f050
Show file tree
Hide file tree
Showing 8 changed files with 40 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 @@ -232,6 +232,7 @@ exports[`all > should match everything 1`] = `
"phpstan",
"phpunit",
"pingdom",
"pirschanalytics",
"placekit",
"planetscale",
"platformsh",
Expand Down
1 change: 1 addition & 0 deletions src/rules/analytics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import './koalaanalytics.js';
import './logsnag.js';
import './matomo.js';
import './mixpanel.js';
import './pirschanalytics.js';
import './plausible.js';
import './tinybird.js';
import './vercel.analytics.js';
13 changes: 13 additions & 0 deletions src/rules/analytics/pirschanalytics.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { register } from '../../register.js';

register({
tech: 'pirschanalytics',
name: 'Pirsch Analytics',
type: 'analytics',
dependencies: [
{ type: 'npm', name: 'pirsch-sdk' },
{ type: 'ruby', name: 'pirsch_api' },
{ type: 'php', name: 'pirsch-analytics/sdk' },
{ type: 'golang', name: 'github.com/pirsch-analytics/pirsch-go-sdk/v2' },
],
});
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 @@ -85,6 +85,7 @@ exports[`golang (lockfile) > should match everything 1`] = `
"mailgun",
"meilisearch",
"paypal",
"pirschanalytics",
"sendgrid",
"slack",
"splitio",
Expand Down Expand Up @@ -531,6 +532,11 @@ exports[`golang (lockfile) > should match everything 2`] = `
"github.com/meilisearch/meilisearch-go",
"v1.0.0",
],
[
"golang",
"github.com/pirsch-analytics/pirsch-go-sdk/v2",
"v1.0.0",
],
[
"golang",
"github.com/sendgrid/sendgrid-go",
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 @@ -149,6 +149,7 @@ exports[`npm > should match everything 1`] = `
"ovh",
"pagerduty",
"paypal",
"pirschanalytics",
"placekit",
"playwright",
"postgresql",
Expand Down Expand Up @@ -1579,6 +1580,11 @@ exports[`npm > should match everything 2`] = `
"php-coveralls",
"0.0.0",
],
[
"npm",
"pirsch-sdk",
"0.0.0",
],
[
"npm",
"playwright",
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 @@ -95,6 +95,7 @@ exports[`php > should match everything 1`] = `
"phppest",
"phpstan",
"phpunit",
"pirschanalytics",
"postgresql",
"postmark",
"rabbitmq",
Expand Down Expand Up @@ -772,6 +773,11 @@ exports[`php > should match everything 2`] = `
"phpunit/phpunit",
"0.0.0",
],
[
"php",
"pirsch-analytics/sdk",
"0.0.0",
],
[
"php",
"predis/predis",
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 @@ -110,6 +110,7 @@ exports[`ruby (component) > should match everything 1`] = `
"oraclecloud",
"pagerduty",
"paypal",
"pirschanalytics",
"postgresql",
"postmark",
"rabbitmq",
Expand Down Expand Up @@ -767,6 +768,11 @@ exports[`ruby (component) > should match everything 2`] = `
"pg",
"1.0.0",
],
[
"ruby",
"pirsch_api",
"1.0.0",
],
[
"ruby",
"platform-api",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ export type AllowedKeys =
| 'phpstan'
| 'phpunit'
| 'pingdom'
| 'pirschanalytics'
| 'placekit'
| 'planetscale'
| 'platformsh'
Expand Down

0 comments on commit 283f050

Please sign in to comment.