Skip to content

Commit

Permalink
fix(rules): add Celery
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Nov 3, 2023
1 parent 1f09f83 commit 31bc5a8
Show file tree
Hide file tree
Showing 5 changed files with 17 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 @@ -101,6 +101,7 @@ exports[`all > should match everything 1`] = `
"bytebase",
"c",
"caddy",
"celery",
"checkov",
"chef",
"circleci",
Expand Down
8 changes: 8 additions & 0 deletions src/rules/messaging/celery.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { register } from '../../register.js';

register({
tech: 'celery',
name: 'Celery',
type: 'messaging',
dependencies: [{ type: 'python', name: 'celery' }],
});
1 change: 1 addition & 0 deletions src/rules/messaging/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import './aws.kafka.js';
import './aws.mq.js';
import './aws.sns.js';
import './aws.sqs.js';
import './celery.js';
import './gcp.pubsub.js';
import './nats.js';
import './rabbitmq.js';
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/python/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
exports[`python (lockfile) > should match everything 1`] = `
[
"algolia",
"celery",
"datadog",
"novu",
"python",
Expand All @@ -21,6 +22,11 @@ exports[`python (lockfile) > should match everything 2`] = `
"algoliasearch-django",
"1.0.0",
],
[
"python",
"celery",
"1.0.0",
],
[
"python",
"datadog",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export type AllowedKeys =
| 'bytebase'
| 'c'
| 'caddy'
| 'celery'
| 'checkov'
| 'chef'
| 'circleci'
Expand Down

0 comments on commit 31bc5a8

Please sign in to comment.