We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1abfbe commit 6303029Copy full SHA for 6303029
.pre-commit-config.yaml
@@ -40,3 +40,11 @@ repos:
40
entry: (->|\.)(milli)?satoshis(?!.*\/\*\ Raw:)|(?<!sizeof)\(struct\ amount_(m)?sat\)
41
types: [ c ]
42
exclude: common/amount|.*/test/.*
43
+
44
+ # Reimplementation of `make check-discouraged-functions` for pygrep.
45
+ - id: check-discouraged-functions
46
+ name: Check for usage of discouraged funtions
47
+ language: pygrep
48
+ entry: '[^a-z_/](?:fgets|fputs|gets|scanf|sprintf)\('
49
+ types: [ c ]
50
+ exclude: ccan|contrib
0 commit comments