Skip to main content

Pattern Detection

argus identifies common code patterns across your codebase.

Data Fetching​

PatternDetection
React QueryuseQuery, useMutation calls
SWRuseSWR calls
Axiosaxios imports
Fetchfetch() calls

State Management​

PatternDetection
useStateReact hook usage
ReduxuseSelector, useDispatch
Zustandcreate from zustand
MobXobserver, observable

API Patterns​

PatternDetection
RESTHTTP method handlers
GraphQLgql templates, resolvers
tRPCtrpc router definitions
gRPC.proto files

Authentication​

PatternDetection
JWTjwt imports, token handling
OAuthOAuth provider configs
SessionSession middleware

Database & ORM​

PatternDetection
Prisma@prisma/client
Drizzledrizzle-orm
GORMgorm.io/gorm
SQLAlchemysqlalchemy imports

Testing Patterns​

PatternDetection
Unit teststest, it, describe
Mockingmock, jest.mock
Fixturespytest.fixture
SnapshotstoMatchSnapshot

React Patterns​

PatternDetection
Hooksuse* function calls
ContextcreateContext, useContext
HOCComponent wrapping patterns
Render propsFunction as children

Go Patterns​

PatternDetection
Cobra CLIcobra.Command
Goroutinesgo func
Channelsmake(chan
Contextcontext.Context
Error wrappingfmt.Errorf with %w

Python Patterns​

PatternDetection
Decorators@decorator syntax
Type hintsFunction annotations
Async/awaitasync def, await
Dataclasses@dataclass
PydanticBaseModel inheritance

ML Patterns​

argus detects machine learning patterns:

PatternDetection
PyTorchtorch imports
TensorFlowtensorflow imports
scikit-learnsklearn imports
Transformerstransformers imports