Skip to content

Commit

Permalink
fix(rules): add Snowflake
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Jul 4, 2023
1 parent 712b0ca commit 53ea5d7
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion TODO.todo
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Terraform:
✔ Elastic stack @done(23-05-02 12:13)
✔ CockroachDB @done(23-07-04 14:52)
- Redis cloud
- snowflake
snowflake @done(23-07-04 14:54)
- couchbase capella
- akamai
- digital ocean
Expand Down
1 change: 1 addition & 0 deletions src/common/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export const list: TechItem[] = [
{ key: 'sentry', name: 'Sentry', type: 'sass' },
{ key: 'sequelize', name: 'Sequelize', type: 'tool' },
{ key: 'shell', name: 'Shell', type: 'language' },
{ key: 'snowflake', name: 'Snowflake', type: 'db' },
{ key: 'snyk', name: 'Snyk', type: 'sass' },
{ key: 'slack', name: 'Slack', type: 'sass' },
{ key: 'socketio', name: 'Socket.io', type: 'tool' },
Expand Down
1 change: 1 addition & 0 deletions src/rules/db/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ import './neo4j.js';
import './percona.js';
import './postgres.js';
import './redis.js';
import './snowflake.js';
import './vault.js';
11 changes: 11 additions & 0 deletions src/rules/db/snowflake.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { register } from '../../rules.js';

register({
tech: 'snowflake',
dependencies: [
{
type: 'terraform',
name: 'registry.terraform.io/Snowflake-Labs/snowflake',
},
],
});
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ exports[`terraform (lockfile) > should match everything 1`] = `
"mongodbatlas",
"newrelic",
"oraclecloud",
"snowflake",
"terraform",
"vault",
"vercel",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export type AllowedKeys =
| 'sequelize'
| 'shell'
| 'slack'
| 'snowflake'
| 'snyk'
| 'socketio'
| 'sqreen'
Expand Down

0 comments on commit 53ea5d7

Please sign in to comment.