Hub rules-ionic

rules-ionic

v3 public Verified

Ionic

Ionic is an open-source mobile UI toolkit for building high-quality cross-platform apps for native iOS, Android, and the web. These rules govern Ionic/Capacitor development, UI patterns, and hybrid app architecture for AI agents.

@sigmashakeinc 2 pulls 7 rules published Apr 8, 2026 synced Nov 22, 2026 sigmashakeinc/rules/rulesets/rules-ionic →
Severity
4 error 2 warn 1 info
demo.cast
Ionic is an open-source mobile UI toolkit for building high-quality cross-platform apps for native iOS, Android, and the web. These rules govern Ionic/Capacitor development, UI patterns, and hybrid app architecture for AI agents.

Rules index

7 governance rules

Indexed from the repository's .rules files, grouped by technology. Expand any rule to read the raw source.

ionic

ionic-block-unsafe-patterns error block

innerHTML with unsanitized input enables XSS (CWE-79). In Angular/Ionic, bind with [textContent] for plain text, or sanitize with DomSanitizer.sanitize(SecurityContext.HTML, value) before using [innerHTML]. Never set innerHTML to untrusted user-supplied content.

Rule source requires an active Pro or Enterprise subscription.
ionic-deprecated-ionic-module-for-root info log

IonicModule.forRoot() is the Ionic 4/5 module pattern. Ionic 6+ uses standalone components and provideIonicAngular(). Consider migrating for improved tree-shaking and performance.

Rule source requires an active Pro or Enterprise subscription.
ionic-no-allow-navigation-wildcard error block

Capacitor allowNavigation wildcard ('*') lets the WebView navigate to any external URL, enabling open-redirect and iframe-injection attacks. List only the specific trusted origins that need navigation access.

Rule source requires an active Pro or Enterprise subscription.
ionic-no-bypass-security-trust error block

DomSanitizer.bypassSecurityTrust*() disables Angular's XSS protection for the marked value. Only use it when the value is 100% controlled by your application (never user-supplied). The HTML variant in particular injects raw script-capable HTML into the DOM.

Rule source requires an active Pro or Enterprise subscription.
ionic-no-http-server-cleartext error block

Cleartext HTTP URL in Capacitor config — Android blocks cleartext traffic by default (network_security_config), and iOS requires App Transport Security exceptions. Use HTTPS for all server URLs.

Rule source requires an active Pro or Enterprise subscription.
ionic-no-inappbrowser-unsafe warning log

InAppBrowser with location=no hides the URL bar from the user, making phishing pages indistinguishable from legitimate ones. Always show the URL bar (location=yes) or use SafariViewController/Chrome Custom Tabs via @capacitor/browser which enforces the system chrome.

Rule source requires an active Pro or Enterprise subscription.
ionic-no-insecure-storage-sensitive warning log

Ionic Preferences/Storage and localStorage store data in plaintext accessible to any code running on the WebView origin. Store sensitive values (tokens, passwords) only via @capacitor/secure-storage or the native Keychain/Keystore through the SecureStorage plugin.

Rule source requires an active Pro or Enterprise subscription.

Version metadata

Published metadata

The hash-locked record of this published ruleset. When source contents change, the maintainer resyncs and the version bumps.

Version
v3
Published
Apr 8, 2026
Source commits
0
Synced
Nov 22, 2026
Hash
741abc2418f23e0f9c9548d9963d9150a9aa78cbe1e73904197091f59f873a7e
Signature
Verified (publisher key)
Tested with
claude-code@current
Plan
Starter (free)
Visibility
Public

Source history

Recent commits

Latest commits touching rulesets/rules-ionic/.sigmashake/rules in sigmashakeinc/rules/rulesets/rules-ionic. The published version only bumps when a maintainer resyncs.

No commit history available.