Skip to content

Commit

Permalink
fix(rules): add Thrift
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Oct 13, 2023
1 parent c713d8b commit 685e8cf
Show file tree
Hide file tree
Showing 9 changed files with 45 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 @@ -23,6 +23,7 @@ exports[`all > should match everything 1`] = `
"apache_solr",
"apache_spark",
"apache_storm",
"apache_thrift",
"apiplatform",
"appveyor",
"atlasgo",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/docker/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ exports[`docker > should match everything 1`] = `
"apache_solr",
"apache_spark",
"apache_storm",
"apache_thrift",
"atlasgo",
"aws",
"aws.dynamodb",
Expand Down Expand Up @@ -145,6 +146,11 @@ exports[`docker > should match everything 2`] = `
"apache/storm",
"0.0.0",
],
[
"docker",
"apache/thrift",
"0.0.0",
],
[
"docker",
"arigaio/atlas",
Expand Down
5 changes: 5 additions & 0 deletions src/rules/spec/golang/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,11 @@ exports[`golang (lockfile) > should match everything 2`] = `
"github.com/NdoleStudio/lemonsqueezy-go",
"v1.0.0",
],
[
"golang",
"github.com/apache/thrift",
"v1.0.0",
],
[
"golang",
"github.com/aws/aws-sdk-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 @@ -9,6 +9,7 @@ exports[`npm > should match everything 1`] = `
"amplitude",
"angular",
"apache_kafka",
"apache_thrift",
"apiplatform",
"auth0",
"aws",
Expand Down Expand Up @@ -2091,6 +2092,11 @@ exports[`npm > should match everything 2`] = `
"telegram",
"0.0.0",
],
[
"npm",
"thrift",
"0.0.0",
],
[
"npm",
"twilio",
Expand Down
5 changes: 5 additions & 0 deletions src/rules/spec/ruby/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1021,6 +1021,11 @@ exports[`ruby (component) > should match everything 2`] = `
"tencentcloud-sdk-mariadb",
"1.0.0",
],
[
"ruby",
"thrift",
"1.0.0",
],
[
"ruby",
"travis",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/rust/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ exports[`rust (component) > should match everything 1`] = `
[
"algolia",
"apache_cassandra",
"apache_thrift",
"auth0",
"aws",
"aws.apigateway",
Expand Down Expand Up @@ -554,6 +555,11 @@ exports[`rust (component) > should match everything 2`] = `
"teloxide",
"1.0.0",
],
[
"rust",
"thrift",
"1.0.0",
],
[
"rust",
"typesense",
Expand Down
14 changes: 14 additions & 0 deletions src/rules/tool/apache_thrift.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { register } from '../../register.js';

register({
tech: 'apache_thrift',
name: 'Apache Thrift',
type: 'tool',
dependencies: [
{ type: 'docker', name: 'apache/thrift' },
{ type: 'npm', name: 'thrift' },
{ type: 'golang', name: 'github.com/apache/thrift' },
{ type: 'rust', name: 'thrift' },
{ type: 'ruby', name: 'thrift' },
],
});
1 change: 1 addition & 0 deletions src/rules/tool/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import './ansible.js';
import './apache_thrift.js';
import './apiplatform.js';
import './atlasgo.js';
import './checkov.js';
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export type AllowedKeys =
| 'apache_solr'
| 'apache_spark'
| 'apache_storm'
| 'apache_thrift'
| 'apiplatform'
| 'appveyor'
| 'atlasgo'
Expand Down

0 comments on commit 685e8cf

Please sign in to comment.