1.4 KiB
1.4 KiB
name, enabled, event, action, conditions
| name | enabled | event | action | conditions | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| block-any-type | true | file | block |
|
🚫 BLOCKED: Insecure Any Type Usage Detected
You are attempting to use Any as a type annotation, which is strictly forbidden in this codebase.
Why Any is Forbidden
Anybypasses all type checking, defeating the purpose of static analysis- It creates type safety holes that propagate through the codebase
- It hides bugs that would otherwise be caught at compile time
- It makes refactoring dangerous and error-prone
What to Do Instead
- Use specific types:
str,int,dict[str, int],list[MyClass] - Use
object: When you truly need the base type - Use
Protocol: For structural typing / duck typing - Use
TypeVar: For generic type parameters - Use union types:
str | int | Noneinstead ofAny
Need Help?
Run the /type-strictness skill to get guidance on proper type annotations for your specific use case.
/type-strictness
This skill will help you find the correct specific type to use instead of Any.