Tagged articles
custom rules
12 articles · Page 1 of 1
This article explains how Alibaba Cloud's AgentLoop platform continuously audits Dify AI applications by tracing model and tool calls, detecting sensitive data exposure, indirect prompt injection, and privilege misuse, and enabling custom rules to pinpoint root causes in workflow nodes for effective remediation.
AI auditingAgentLoopDify
0 likes · 21 min read

This article explains the workings of SwiftLint, a static code analysis tool for Swift, covering its architecture, built‑in rules, configuration options, custom rule creation, UIWebView deprecation detection, and advanced build‑time optimizations to improve linting efficiency in mobile development projects.
Build OptimizationSWIFTSwiftLint
0 likes · 20 min read


ByteFEFeb 13, 2023 · Frontend Development
This article explains the fundamentals of ESLint, including its purpose, configuration files, AST-based analysis, the SourceCode abstraction, rule template creation, key functions, and the overall linting and fixing workflow, enabling developers to build custom linting plugins for consistent code style.
ASTCode styleESLint
0 likes · 14 min read

This article explores the fundamentals of ESLint, explaining how it leverages abstract syntax trees (AST) to enforce code style, detect errors, and enable custom rule creation, while providing practical configuration examples, code snippets, and insights into the underlying processing pipeline.
ASTCode styleESLint
0 likes · 16 min read

This article explains why ESLint is essential for frontend development, details how its rule configuration works, walks through the CLI execution flow, and reveals the internal call stack that parses code into an AST, applies custom rules, and performs auto‑fixes.
ASTESLintcli
0 likes · 15 min read

This comprehensive guide walks developers through creating, testing, and refining custom ESLint rules, covering rule scaffolding, meta configuration, AST traversal, scope analysis, handling various node types, code path analysis, autofix implementation, and extensions for React JSX and TypeScript.
ESLintcustom ruleslinting
0 likes · 19 min read

This article explains what form validation is, why custom validation rules are needed in Vue projects using Element UI, and provides step‑by‑step code examples for binding rules and models, defining custom validators, and handling rich‑text content validation.
Element UIForm ValidationVue
0 likes · 4 min read

This article explains how PHP_CodeSniffer parses PHP source code into tokens using lexical analysis, demonstrates token extraction with token_get_all, and guides readers through creating a custom rule to prohibit hash‑style comments, covering rule library setup, Sniff implementation, and execution.
PHPPHP_CodeSniffercustom rules
0 likes · 12 min read

This article explains why coding standards are essential, introduces PMD and Alibaba's p3c plugin, and provides a detailed, code‑rich tutorial on designing, implementing, testing, and packaging custom Java static‑analysis rules to enforce @RequestMapping conventions.
GradleJavaMaven
0 likes · 11 min read

This article explains why TSLint is essential for React Native projects, walks through installing and configuring TSLint, demonstrates local and CI checks, and provides a step‑by‑step guide to creating and deploying custom TSLint rules for improved code quality.
React NativeTSLintTypeScript
0 likes · 16 min read

This article explains static analysis concepts, why cppcheck was chosen for Baidu's testing workflow, details its architecture, and walks through the creation of custom rules—including a printf misuse detector and a dynamic switch misuse rule—while sharing practical challenges and results.
bug detectioncode qualitycppcheck
0 likes · 11 min read

The article explains how to create, configure, and integrate custom Android Lint rules—using Issue, Detector, Scope, and IssueRegistry APIs—to catch crashes, bugs, performance and security problems such as missing Toast.show() or unsafe Log usage, supports incremental git‑based scans, and demonstrates deployment in IDE, builds, pre‑commit hooks and CI for improved code quality.
AndroidCIGradle
0 likes · 23 min read
