Skip to content

Commit

Permalink
fix(rules): add Zig
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Nov 3, 2023
1 parent 3cd1945 commit 38eda05
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This library provide a simple way to extract dependencies, and metadata from any
Detect more than **+500 technologies** in your code base.

- **Full Support:** NodeJS, PHP, Docker, Github Actions
- Partial Support: Deno, Golang, Ruby, Rust, Terraform
- Partial Support: Deno, Golang, Ruby, Rust, Terraform, Zig

Check all [rules](https://github.com/specfy/stack-analyser/tree/main/src/rules).

Expand Down
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 @@ -450,6 +450,7 @@ exports[`all > should match everything 1`] = `
"yousign",
"zapier",
"zendesk",
"zig",
"zookeeper",
"zoom",
"zuora",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,11 @@ exports[`docker > should match all dependencies 2`] = `
"google-github-actions/upload-cloud-storage",
"1",
],
[
"githubAction",
"goto-bus-stop/setup-zig",
"1",
],
[
"githubAction",
"hashicorp/setup-terraform",
Expand Down
1 change: 1 addition & 0 deletions src/rules/spec/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ import './php/index.js';
import './ruby/index.js';
import './rust/index.js';
import './terraform/index.js';
import './zig/index.js';
9 changes: 9 additions & 0 deletions src/rules/spec/zig/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { register } from '../../../register.js';

register({
tech: 'zig',
name: 'Zig',
type: 'language',
extensions: ['.zig'],
dependencies: [{ type: 'githubAction', name: 'goto-bus-stop/setup-zig' }],
});
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ export type AllowedKeys =
| 'yousign'
| 'zapier'
| 'zendesk'
| 'zig'
| 'zookeeper'
| 'zoom'
| 'zuora';
Expand Down

0 comments on commit 38eda05

Please sign in to comment.