-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2382b6b
commit 6ba5431
Showing
18 changed files
with
57 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ def visit_node(self, node: Node, run_number: int): | |
node, | ||
node, | ||
self.MSG, | ||
None, | ||
None | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ def visit_node(self, node: Node, i): | |
n, | ||
n, | ||
self.MSG, | ||
None, | ||
None | ||
) | ||
self.data_vars = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
====== Linting tests/assert_block_height/vulnerable-example/assert_block_height.clar... ====== | ||
Warning: Use of block-height inside a assert | ||
Warning: Use of block-height inside a assert. | ||
| | ||
6 | (asserts! (> (get expiry nft-asset) block-height) err-expiry-in-past) | ||
| ^^^^^^^^ | ||
Note: Consider using burn-block-height. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
====== Linting tests/divide_before_multiply/vulnerable-example/divide_before_multiply.clar... ====== | ||
Warning: Use of divide inside a multiplication. This could result in a precision loss | ||
Warning: Use of divide inside a multiplication. This could result in a precision loss. | ||
| | ||
4 | (* (/ prize participants) bonus) | ||
| ^ | ||
Note: Try multiplication before division. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
====== Linting tests/unwrap_panic_usage/vulnerable-example/unwrap_panic.clar... ====== | ||
Warning: Use of unwrap-panic. Use unwrap! and handle the error. | ||
Warning: Use of unwrap-panic. | ||
| | ||
4 | (listing (unwrap-panic (map-get? listings listing-id) err-unknown-listing)) | ||
| ^^^^^^^^^^^^ | ||
Note: Use unwrap! and handle the error. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
====== Linting tests/updated_functions/vulnerable-example/updated_functions.clar... ====== | ||
Warning: Behavior of 'element-at' changed from Clarity1 to Clarity2, now outputs optional value. | ||
Suggestion: use 'element-at?' to make this behavior explicit. | ||
| | ||
4 | (element-at sequence index) | ||
| ^^^^^^^^^^ | ||
Note: Suggestion: use 'element-at?' to make this behavior explicit. | ||
|
||
Warning: Behavior of 'index-of' changed from Clarity1 to Clarity2, now outputs optional value. | ||
Suggestion: use 'index-of?' to make this behavior explicit. | ||
| | ||
8 | (index-of places elem) | ||
| ^^^^^^^^ | ||
Note: Suggestion: use 'index-of?' to make this behavior explicit. | ||
|