Review Java or TypeScript/React code in this project against the project's coding standards (Google Java Style, Spring patterns, React 19 + TypeScript conventions). Invoke with a file path or paste code to review.
Review the specified file (or the file most recently discussed) against this project's standards. If no file is specified, ask the user which file to review.
Do NOT rewrite the whole file unless the user asks. Propose targeted edits only.
@RestController methods@Service@RequiredArgsConstructor, not @Autowired)@Value or @ConfigurationProperties used for config; no hardcoded strings for config values@Value (immutable) where possibleNoSuchElementException, IllegalArgumentException, IllegalStateExceptionResponseStatusException or HTTP-specific exceptions inside services@RestControllerAdvice@PreAuthorize annotations@NotNull, @Size, etc.) on DTOs@SpringBootTest + Testcontainers (PostgreSQL) or @DataJpaTest (H2)methodName / methodNameWithStateUnderTestExpectedBehavior
getFormByIdWithUnknownIdThrowsExceptiontestGetForm, should_return_404assertThat, assertEquals from org.junit.jupiter)any type used anywhere — use unknown + type guards, or define a proper interface/typefrontend/src/types/Form.ts)const by default; let only when reassignment is requireduse prefix; not called conditionallyuseQuery / useMutation from @tanstack/react-query used for all server statefetch calls inside pages or components — all HTTP goes through formClient or a service module using http.requestenabled when required params are missinguseAuth from react-oidc-contextuser?.access_token and passed to formClientsrc/components/Content.tsxsigninRedirect; unknown routes use Navigatereact-hook-formDynamicForm and the existing field components (TextField, SelectField, etc.)FormField and FormValues types kept aligned with backend DTOsuseTranslation + t('key.path')t(`section.${var}`)) is a violationtoLocaleDateString)react-bootstrap components and Bootstrap utility classes preferred over custom CSS@testing-library/reactuserEvent preferred over fireEvent for interactionsUse these references to justify findings and resolve ambiguity during TypeScript/React reviews.
satisfies, template literals, 25+ new itemsenum/namespace/any@typescript-eslint strict + strict-type-checked rules — catches floating promises, any-infection, exhaustive switches