Skip to content

Commit

Permalink
fix(rules): add Google Analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 2, 2023
1 parent 4e1dd64 commit eedf231
Show file tree
Hide file tree
Showing 5 changed files with 12 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 @@ -76,6 +76,7 @@ exports[`all > should match everything 1`] = `
"gitlab",
"gitlab.ci",
"golang",
"googleanalytics",
"hashicorp_vault",
"helm",
"heroku",
Expand Down
7 changes: 7 additions & 0 deletions src/rules/analytics/googleanalytics.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { register } from '../../register.js';

register({
tech: 'googleanalytics',
name: 'Google Analytics',
type: 'analytics',
});
1 change: 1 addition & 0 deletions src/rules/analytics/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './googleanalytics.js';
1 change: 1 addition & 0 deletions src/rules/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import './analytics/index.js';
import './api/index.js';
import './app/index.js';
import './ci/index.js';
Expand Down
2 changes: 2 additions & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export type TechType =
| 'analytics'
| 'api'
| 'app'
| 'ci'
Expand Down Expand Up @@ -97,6 +98,7 @@ export type AllowedKeys =
| 'gitlab.ci'
| 'gitlab'
| 'golang'
| 'googleanalytics'
| 'hashicorp_vault'
| 'helm'
| 'heroku'
Expand Down

0 comments on commit eedf231

Please sign in to comment.