Skip to content

Commit

Permalink
feat: adding tealer support (#3)
Browse files Browse the repository at this point in the history
* feat: adding tealer support

* chore: updating gitignore

* chore: updating gitignore
  • Loading branch information
aorumbayev authored Feb 21, 2024
1 parent b5cadcb commit 9230397
Show file tree
Hide file tree
Showing 20 changed files with 150 additions and 0 deletions.
2 changes: 2 additions & 0 deletions template_content/.gitignore.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,5 @@ node_modules

# AlgoKit
debug_traces/

.algokit/static-analysis/tealer/
15 changes: 15 additions & 0 deletions template_content/{% if ide_vscode %}.vscode{% endif %}/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,21 @@
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
},
{
"label": "Analyze TEAL contracts with AlgoKit Tealer integration",
"command": "algokit",
"args": [
"task",
"analyze",
"${workspaceFolder}/.algokit",
"--recursive",
"--force"
],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ jobs:
- name: Build smart contracts
run: poetry run python -m smart_contracts build

- name: Scan TEAL files for issues
run: algokit task analyze .algokit --recursive --force # add --diff flag if you want output stability checks instead

- name: Check output stability of the smart contracts
shell: bash
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,13 @@ repos:
minimum_pre_commit_version: '2.9.2'
files: '^(src|tests)/'
{% endif %}
- id: tealer
name: tealer
description: "Run AlgoKit `Tealer` for TEAL static analysis"
entry: algokit
language: system
args: [task, analyze, ".algokit", "--recursive", "--force"]
require_serial: false
additional_dependencies: []
minimum_pre_commit_version: "0"
files: '^.*\.teal$'
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ jobs:
- name: Build smart contracts
run: poetry run python -m smart_contracts build

- name: Scan TEAL files for issues
run: algokit task analyze .algokit --recursive --force # add --diff flag if you want output stability checks instead

- name: Check output stability of the smart contracts
shell: bash
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,5 @@ node_modules

# AlgoKit
debug_traces/

.algokit/static-analysis/tealer/
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,13 @@ repos:
minimum_pre_commit_version: '2.9.2'
files: '^(src|tests)/'

- id: tealer
name: tealer
description: "Run AlgoKit `Tealer` for TEAL static analysis"
entry: algokit
language: system
args: [task, analyze, ".algokit", "--recursive", "--force"]
require_serial: false
additional_dependencies: []
minimum_pre_commit_version: "0"
files: '^.*\.teal$'
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,21 @@
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
},
{
"label": "Analyze TEAL contracts with AlgoKit Tealer integration",
"command": "algokit",
"args": [
"task",
"analyze",
"${workspaceFolder}/.algokit",
"--recursive",
"--force"
],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ jobs:
- name: Build smart contracts
run: poetry run python -m smart_contracts build

- name: Scan TEAL files for issues
run: algokit task analyze .algokit --recursive --force # add --diff flag if you want output stability checks instead

- name: Check output stability of the smart contracts
shell: bash
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,5 @@ node_modules

# AlgoKit
debug_traces/

.algokit/static-analysis/tealer/
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,13 @@ repos:
minimum_pre_commit_version: '2.9.2'
files: '^(src|tests)/'

- id: tealer
name: tealer
description: "Run AlgoKit `Tealer` for TEAL static analysis"
entry: algokit
language: system
args: [task, analyze, ".algokit", "--recursive", "--force"]
require_serial: false
additional_dependencies: []
minimum_pre_commit_version: "0"
files: '^.*\.teal$'
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,21 @@
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
},
{
"label": "Analyze TEAL contracts with AlgoKit Tealer integration",
"command": "algokit",
"args": [
"task",
"analyze",
"${workspaceFolder}/.algokit",
"--recursive",
"--force"
],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ jobs:
- name: Build smart contracts
run: poetry run python -m smart_contracts build

- name: Scan TEAL files for issues
run: algokit task analyze .algokit --recursive --force # add --diff flag if you want output stability checks instead

- name: Check output stability of the smart contracts
shell: bash
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,5 @@ node_modules

# AlgoKit
debug_traces/

.algokit/static-analysis/tealer/
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,13 @@ repos:
minimum_pre_commit_version: '2.9.2'
files: '^(src|tests)/'

- id: tealer
name: tealer
description: "Run AlgoKit `Tealer` for TEAL static analysis"
entry: algokit
language: system
args: [task, analyze, ".algokit", "--recursive", "--force"]
require_serial: false
additional_dependencies: []
minimum_pre_commit_version: "0"
files: '^.*\.teal$'
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,21 @@
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
},
{
"label": "Analyze TEAL contracts with AlgoKit Tealer integration",
"command": "algokit",
"args": [
"task",
"analyze",
"${workspaceFolder}/.algokit",
"--recursive",
"--force"
],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ jobs:
- name: Build smart contracts
run: poetry run python -m smart_contracts build

- name: Scan TEAL files for issues
run: algokit task analyze .algokit --recursive --force # add --diff flag if you want output stability checks instead

- name: Check output stability of the smart contracts
shell: bash
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,5 @@ node_modules

# AlgoKit
debug_traces/

.algokit/static-analysis/tealer/
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,13 @@ repos:
minimum_pre_commit_version: '2.9.2'
files: '^(src|tests)/'

- id: tealer
name: tealer
description: "Run AlgoKit `Tealer` for TEAL static analysis"
entry: algokit
language: system
args: [task, analyze, ".algokit", "--recursive", "--force"]
require_serial: false
additional_dependencies: []
minimum_pre_commit_version: "0"
files: '^.*\.teal$'
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,21 @@
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
},
{
"label": "Analyze TEAL contracts with AlgoKit Tealer integration",
"command": "algokit",
"args": [
"task",
"analyze",
"${workspaceFolder}/.algokit",
"--recursive",
"--force"
],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": []
}
]
}

0 comments on commit 9230397

Please sign in to comment.