github erkamyaman/unslop-anything v3.5.0

one hour ago

v3.5.0: seven new rules, a GitHub Action, and 223 merged pull requests

The detector grows from 37 to 44 rules, and existing rules read more of SwiftUI, UIKit, Compose, Android XML, Flutter, React Native, Vue, Angular, Tailwind @apply and CSS-in-JS. Two companion commands arrive: record checks that a redesign kept every link, field and handler, and hook runs the detector after each edit in Claude Code. A composite action runs the detector on pull requests. 52 people sent pull requests since v3.4.1, and 38 of them were first contributions.

Added

  • Seven new rules, two companion commands and a right-to-left guide (#973):
    • hover-no-focus: a control styled on hover in a file that styles nothing on focus.
    • accent-word: one word or phrase in a heading set apart by color, italics or a highlight.
    • template-punctuation: meta joined with middle dots, or an arrow glued to the end of a link or button label, like "Learn more →".
    • placeholder-content: faces from random-avatar services, placeholder images, Lorem ipsum, John Doe, Acme and 123,456. Input placeholders stay quiet.
    • hidden-at-rest: content hidden by a reveal class until a script runs. If the script fails or runs late, the page shows nothing there.
    • animate-layout: transitions and keyframes on width, height, position or spacing, which lay the page out again on every frame.
    • rtl-physical: left and right instead of start and end, or letter spacing on Arabic, in a right-to-left file.
    • tracked-caps-label also catches labels typed in capitals with letter spacing.
    • npx unslop-anything record [paths] saves every link, form field, event handler, test id, id, route and file to .unslop-anything/wiring.json. record --check reads the project again, lists anything that went missing and exits with 2. A handler that moved to another file still counts as kept. The skill records before treat and style and checks after them.
    • npx unslop-anything hook adds a Claude Code hook that runs the detector on each UI file Claude Code writes or edits, in projects that have a .unslop-anything folder, and hands the findings back straight away. --project writes it to the project's .claude/settings.json for every UI file, and --remove takes it out and leaves your other hooks alone.
    • reference/rtl.md: how to set the direction, use logical sides and check Arabic, Persian, Urdu and Hebrew screens. The skill reads it when the screens are in one of those languages.
  • A GitHub Action: uses: erkamyaman/unslop-anything@v3.5.0 runs the detector that ships with the tag you pin. Its inputs are path (default .), fail-on (default minor), platform and sarif. It fails the job with the detector's exit code, writes the report to the job summary and sets an exit-code output. The SARIF file is written for your own upload-sarif step (#954 by @XiaoBinGan).

Fixed

New platforms for existing rules

  • slop-gradient reads SwiftUI's color .gradient property, like Color.purple.gradient (#608 by @Alkhanizi-hashem), SwiftUI .angularGradient and .conicGradient (#732 by @breachato), and Tailwind gradients inside @apply (#813 by @codelikepreety).
  • gradient-text catches WebkitBackgroundClip: "text" in JS style objects (#592 by @Mllkmoha), a Compose text brush kept in a val (#603 by @jay23606), an Android TextView painted with a gradient shader (#694 by @OpenLucasKaka), a SwiftUI gradient masked by text (#700 by @TariQMah), and SwiftUI .foregroundStyle(.blue.gradient) on Text (#818 by @openagents-bot).
  • default-font reads Tailwind v3 fontFamily objects (#604 by @Samsong1018), the family in a font shorthand (#797 by @AmmarBasha2011), Inter from Bunny Fonts (#801 by @felipetmasiero), Chakra's fonts theme tokens (#918 by @XiaoBinGan), and a Sass or Less variable like $font-body: Inter or a preloaded fonts.gstatic.com/s/inter/ file (#937 by @XiaoBinGan).
  • glow-shadow reads Android outlineSpotShadowColor and outlineAmbientShadowColor (#770 by @starflowerH), a Flutter BoxShadow or Shadow whose color: comes after other arguments (#804 by @CodewithRohitRajput), React Native boxShadow arrays of objects (#856 by @jay23606), and Compose Shadow(color = ...) on text and in dropShadow (#872 by @jay23606).
  • status-dot reads small Flutter CircleAvatar dots with no image or child (#699 by @brixtonpham), JS style objects with quoted sizes and percent radii (#599 by @radouane-tamouss), styled-components and other tagged CSS templates (#647 by @MentalOfCrow), an Android oval drawable sized as a dot (#903 by @XiaoBinGan), and a Tailwind @apply dot in a stylesheet (#927 by @XiaoBinGan).
  • nested-cards reads Android XML MaterialCardView and CardView nesting (#695 by @jay23606). A class card inside a card component, and the reverse, now report, and FAST's fast-card counts as a card (#915 by @XiaoBinGan).
  • glass-everywhere counts SwiftUI Material static members like .ultraThinMaterial (#767 by @starflowerH), GlassView from expo-glass-effect (#769 by @breachato), UIKit UIGlassEffect (#879 by @jay23606), and Compose Haze's .hazeEffect and .hazeChild and react-native-blur's VibrancyView (#899 by @XiaoBinGan).
  • sparkle-icon reads Phosphor Vue PhSparkle and the ph-sparkle web font (#670 by @iyazici00), Iconify names with a style or size (#680 by @sanjuantala), Android drawables like ic_auto_awesome_24 (#684 by @sanjuantala), Flutter's rounded, outlined and sharp icons (#731 by @breachato), React Native MaterialIcons auto-awesome (#734 by @breachato), Flutter's CupertinoIcons.sparkles (#761 by @breachato), react-icons FaWandMagicSparkles and GiSparkles (#799 by @felipetmasiero), Flutter's Lucide, Phosphor and Font Awesome sparkles (#876 by @jay23606), Tabler's ti-sparkles web font class (#886 by @starflowerH), and Blade UI Kit's <x-heroicon-o-sparkles> and <x-lucide-sparkles>, mdi-sparkles and fa-wand-sparkles (#926 by @XiaoBinGan).
  • default-lucide counts Lucide icons named as Iconify strings (#681 by @sanjuantala) and in data-lucide attributes (#871 by @jay23606), and reads a CommonJS require("lucide-react") (#931 by @XiaoBinGan).
  • emoji-icon reads a Swift interpolation like \(streak) as the label beside an emoji (#912 by @XiaoBinGan).
  • unvirtualized-list catches a ForEach directly inside a SwiftUI ScrollView (#605 by @kolinabir), a list mapped inside KeyboardAwareScrollView (#632 by @codelikepreety), mapped children in a Flutter GridView, GridView.count and GridView.extent (#775 by @jay23606), eagerly built slivers in a Flutter CustomScrollView (#798 by @kr-subh), repeat() in a scrolling Compose Column (#945 by @Alkhanizi-hashem), and a FlatList nested inside a plain ScrollView (#930 by @XiaoBinGan).
  • fixed-text-size catches UIKit italic and monospaced system fonts (#534 by @jay23606), .systemFont(ofSize:) written without UIFont (#796 by @jay23606), and a fixed size in a file that sets adjustsFontForContentSizeCategory = false (#970 by @XiaoBinGan). It also catches Android style items with fixed dp sizes (#546 by @bycorekci), SwiftUI .dynamicTypeSize pinned or capped at the default size (#598 by @radouane-tamouss), Kotlin fontScale = 1f, .dp.toSp() and setTextSize in dp or px (#701 by @Zabeeh-Ullah-Dev), Flutter TextScaler.clamp with maxScaleFactor at 1.0 (#773 by @starflowerH), a SwiftUI .custom font named by a constant (#897 by @XiaoBinGan), a positional Density(..., 1f) in Compose (#905 by @XiaoBinGan), and text-size-adjust: none in a stylesheet (#958 by @XiaoBinGan). A test now covers Flutter textScaleFactor and TextScaler.linear at 1.0 (#543 by @shiwng).
  • back-gesture catches a force-unwrapped interactivePopGestureRecognizer! (#529 by @jay23606), Ionic's swipeBackEnabled: false and swipeGesture false on outlets and navs (#660 by @himanshu-gupta15), Kotlin onKeyDown and onKeyUp that swallow KEYCODE_BACK (#760 by @bycorekci), React Navigation's headerBackVisible: false (#766 by @starflowerH) and headerLeft: () => null (#859 by @jay23606), a React Native hardwareBackPress handler that always returns true (#810 by @mrandall326), an empty Compose BackHandler or OnBackPressedCallback (#815 by @openagents-bot), and a Flutter PopScope(canPop: false) with no pop callback (#881 by @jay23606).
  • drawer-nav catches Font Awesome's faBars and fa-bars (#589 by @Alkhanizi-hashem), the Android menu drawable on a View toolbar (#733 by @breachato), Flutter Symbols.menu and Icons.menu_open (#764 by @starflowerH), the Drawer from react-native-drawer-layout (#777 by @felipetmasiero), Compose MenuOpen and TwoTone menu icons (#877 by @jay23606), and MUI's MenuIcon, Heroicons' MenuAlt1Icon to MenuAlt3Icon and HamburgerIcon (#924 by @XiaoBinGan).
  • hover-only catches pointerenter and pointerover handlers (#584 by @Alkhanizi-hashem).
  • keyboard-cover flags a Flutter screen that sets resizeToAvoidBottomInset: false next to a text field (#672 by @VedantShettyy), and reads the Input from NativeBase, React Native Elements and UI Kitten and an Android manifest's adjustNothing (#911 by @XiaoBinGan).
  • safe-area-off catches .vertical and [.top, .bottom] edges (#771 by @starflowerH) and UIKit's contentInsetAdjustmentBehavior = .never when the view does not use the safe area (#925 by @XiaoBinGan).
  • tracked-caps-label reads Android XML style items (#683 by @chaitanya-maddala-236), SwiftUI caps and .uppercased() labels with tracking (#702 by @Zabeeh-Ullah-Dev), Compose letter spacing in em (#704 by @Ryuto-dev), MUI Typography with variant="overline" (#794 by @jay23606), quoted JS letter spacing (#891 by @NginxL), an .uppercase() call on a resource-backed text in Compose and Flutter (#906 by @XiaoBinGan), a Tailwind @apply eyebrow (#917 by @XiaoBinGan), and styled-components and Emotion templates and Chakra or Theme UI style props (#920 by @XiaoBinGan). Tests now cover SwiftUI kerning and tracking (#607 by @ocakciomursel-pixel) and quoted attribute values in table header selectors (#634 by @Alkhanizi-hashem).
  • icon-tile reads a SwiftUI tile drawn as .background(RoundedRectangle(...).fill(...)) (#686 by @brixtonpham), Flutter pale swatches and container roles (#870 by @jay23606), and a web tile written with arbitrary Tailwind values like size-[40px] bg-[#6366f1]/10 (#922 by @XiaoBinGan). A test now covers Compose container colors and SwiftUI .tertiary and in: shapes (#693 by @iyazici00).
  • decorative-blob catches blobs written in plain CSS (#596 by @radouane-tamouss).
  • transition-all catches MUI's transitions.create("all") and create() with no properties (#674 by @starflowerH), and a JSX transition or transitionProperty prop set to all (#923 by @XiaoBinGan).
  • hover-scale reads Motion whileHover with translateY and quoted negative lengths (#675 by @starflowerH), Chakra UI and Panda CSS _hover transforms (#857 by @AmmarBasha2011), and Vue v-motion hovered scale and lift (#892 by @faizan200991).
  • decorative-pulse reads a Tailwind @apply line in a stylesheet (#916 by @XiaoBinGan).
  • reduced-motion reads an animation written with the animation-name longhand and a duration (#820 by @jay23606), pairs each longhand value with its list item (#850 by @jay23606), and reads a Tailwind @apply animation (#919 by @XiaoBinGan).
  • entrance-everywhere reads Vue's v-motion from @vueuse/motion (#591 by @Alkhanizi-hashem), Motion for Vue's bound :initial (#631 by @MikeFTV), Reanimated's entering= (#795 by @MikeFTV), Animate.css entrance classes (#816 by @Arjun2066), and GSAP from() and fromTo() entrances (#909 by @XiaoBinGan).
  • clickable-div reads Livewire's wire:click (#819 by @AmmarBasha2011), onClick on MUI and Chakra layout components like Box and Stack (#851 by @jay23606), handlers on dl, dt, dd, ul and ol (#861 by @bryanlundberg), and handlers on inline text like small and strong and on Card and Paper (#929 by @XiaoBinGan).
  • img-no-alt flags MUI <CardMedia component="img"> (#776 by @felipetmasiero) and <input type="image"> (#805 by @CodewithRohitRajput) without alt. It reads a React Native <Image source=...> and its accessibilityLabel, keeps an image hidden with accessible={false} and the like quiet, reads AMP's amp-img, and treats alt={undefined} as no alt (#951 by @XiaoBinGan).
  • placeholder-label reads Angular [placeholder] and [attr.placeholder] bindings (#894 by @XiaoBinGan).
  • vague-button reads a UIKit setTitle label (#606 by @Alkhanizi-hashem), labels on extended floating action buttons (#648 by @MentalOfCrow), and UIButton.Configuration titles (#854 by @jay23606), also when the configuration is declared with its type (#866 by @MikeFTV) or named configuration (#949 by @anushkasingh-commits).
  • invented-stat reads android:text in Android layout XML (#593 by @MikeFTV), and a statistic set on a label's text like usersLabel.text = "12K" and a ratio like "1 in 3" (#932 by @XiaoBinGan).
  • welcome-back reads a name printed by an ERB or EJS output tag (#549 by @abedinm).

Rules that catch more

  • slop-gradient catches the #667eea to #764ba2 purple gradient: the saturation floor of the slop hue band drops to 0.35 (#763 by @starflowerH).
  • template-theme catches the Nuxt and SvelteKit starters (#541 by @abedinm), the current create-vite starter's #aa3bff accent and "save to test HMR" screen (#677 by @AmmarBasha2011), the Expo tabs template's #2f95dc tint (#806 by @iyazici00), React Native's NewAppScreen (#874 by @jay23606), the Angular CLI's "Congratulations! Your app is running" page and its --red-to-pink-to-purple-* variables (#902 by @XiaoBinGan), and the "Vite + React" headline, Vue CLI's "Welcome to Your Vue.js App" and Angular 17's --bright-blue token (#969 by @XiaoBinGan).
  • default-font counts Inter Variable and InterVariable (#583 by @Alkhanizi-hashem) and Inter Display (#971 by @XiaoBinGan) as Inter, and no longer counts a monospace or code font as a pairing for Inter (#887 by @starflowerH).
  • glow-shadow catches every chromatic Tailwind shadow color (#735 by @breachato), Flutter accent and lightBlue swatches (#885 by @starflowerH), and a Tailwind shadow color after an arbitrary shadow property like [box-shadow:...] (#904 by @XiaoBinGan).
  • decorative-blob catches shadcn's bg-primary and bg-destructive (#736 by @breachato), gradient-colored blobs like bg-gradient-to-tr from-sky-400 (#868 by @iyazici00), and an arbitrary color like bg-[#8b5cf6]/30 (#934 by @XiaoBinGan).
  • hover-scale reads :hover followed by a selector list or :not() (#602 by @tarekooooooo).
  • focus-removed catches outline: none inside a :focus-visible rule (#630 by @starflowerH) and a Tailwind @apply line with focus:outline-none (#895 by @XiaoBinGan). A focus class that only sets z-index, ring offset, cursor or placeholder color no longer counts as a replacement style (#880 by @seragAhmed).
  • unverified-claim flags social proof without a number, like "Trusted by the world's best teams" (#533 by @Zabeeh-Ullah-Dev), more audience nouns and the × sign (#547 by @bycorekci), speed and quality claims written as a percent (#762 by @starflowerH) or a percent range like "5-40% faster" (#812 by @codelikepreety), "3 times faster" (#869 by @stella-h-choi), and a count with no lead-in like "10,000+ happy customers" or a bare "Trusted by thousands" (#896 by @XiaoBinGan).
  • invented-stat reads figures with a currency sign (#642 by @anushkasingh-commits), a falling delta with a minus like "-3.2%" (#867 by @stella-h-choi), and billions written with B like "1.2B", "$4.5B" and "10B+" (#889 by @Alkhanizi-hashem).
  • oops-error flags "Something has gone wrong" and "Something's gone wrong" (#864 by @Ryuto-dev), "There was a problem" and "Something odd happened" in UI strings (#941 by @XiaoBinGan), and the same dead ends in Spanish, German, French, Chinese and Japanese, unless the message says what to do next (#967 by @XiaoBinGan).
  • buzzword-copy flags "game-changing" and "game-changers" (#730 by @breachato), every form of "unleash" and "elevate your" (#802 by @felipetmasiero), "blazing fast" and "lightning-fast" (#862 by @Ryuto-dev), every form of "harness", "streamline", "transform" and "boost" in their phrases (#890 by @Alkhanizi-hashem), and "best-in-class", "world-class", "state-of-the-art", "future-proof", "industry-leading" and "unparalleled" (#908 by @XiaoBinGan).
  • welcome-back catches a plain "Welcome, {name}" and greetings without a comma (#590 by @Alkhanizi-hashem), "Welcome back" and time-of-day greetings without a comma (#860 by @jay23606), a name wrapped in an inline element (#888 by @jay23606), and a name that is not ASCII, like "José" or "Ольга" (#913 by @XiaoBinGan).
  • vague-button flags a submit input with no value (#774 by @AmmarBasha2011) and vague link labels followed by a trailing arrow (#878 by @jay23606).
  • unvirtualized-list says when it matters: once the list can grow past a screen or two (#550 by @Alkhanizi-hashem).

Fewer false positives

  • back-gesture leaves fullScreenGestureEnabled: false, the React Navigation default, alone (#600 by @radouane-tamouss).
  • status-dot leaves Tailwind spinners alone (#679 by @ZoloZiak), and reads a Flutter circle's width from its own widget, not a spacer next to it (#807 by @x7).
  • glow-shadow ignores custom classes that only contain a Tailwind shadow color name (#765 by @starflowerH).
  • unvirtualized-list skips a .map joined into one string (#737 by @pratik-dubey), a loop inside a Compose callback (#808 by @x7), loops in Compose effect and remember blocks (#873 by @jay23606), and a ForEach inside a nested lazy stack in SwiftUI (#875 by @jay23606).
  • tracked-caps-label leaves table header cells alone (#538 by @ghozali25).
  • reduced-motion leaves plain CSS loading spinners alone, like animate-spin (#595 by @radouane-tamouss), and reads a motion variant in another string of the same cn() call (#682 by @sanjuantala). A test now covers a CSS spinner written with animation-name (#635 by @Mittalnew).
  • focus-removed judges a CSS outline: none by its own rule, not the whole file, so a focus rule that draws a ring stays quiet and one that draws nothing is reported even when another selector has a :focus-visible rule (#542 by @o-gojayev).
  • img-no-alt accepts unquoted and template-literal decorative roles (#548 by @radouane-tamouss), ARIA names and images hidden with aria-hidden (#588 by @stack-rishi), and a Vue v-bind of a variable or $attrs, which may carry alt like a spread (#882 by @seragAhmed).
  • placeholder-label accepts Angular Material's mat-label inside mat-form-field (#597 by @radouane-tamouss) and Angular ARIA label bindings (#645 by @MentalOfCrow). Angular inputs that bind their id with [id] or [attr.id] get their label where they are used, so their placeholder is no longer reported.
  • clickable-div leaves Alpine's @click.outside and @click.away alone (#644 by @Alkhanizi-hashem), and ignores handler names inside quoted attribute values (#669 by @s1reyash).
  • emoji-icon ignores emoji in native log messages (#646 by @MentalOfCrow).
  • oops-error and welcome-back skip println, Swift fatalError and its kin, Kotlin error() and Dart log() (#658 by @himanshu-gupta15).
  • oops-error skips a message that gives a cause or a next step, like "Something went wrong. Check your connection and try again.", and buzzword-copy leaves "all-in-one" alone before apps, tools, suites or platforms. The README says how the sampled reviews were labelled (#817).
  • buzzword-copy applies the identifier check to every phrase written without spaces (#661 by @AmmarBasha2011), and skips camelCase identifiers and "Supercharger" (#671 by @s1reyash).
  • vague-button leaves .text assignments and Compose Text(text = ...) alone (#687 by @Adityaguptawebdev), and a title tooltip on an HTML element (#803 by @x7).
  • invented-stat skips percentages in <option> and <button> (#668 by @s1reyash).

Scanning

  • Bare Story, Preview, Mock and Spec files are scanned as components, and dotted test files are still skipped (#535 by @jay23606).
  • A template ignore comment on its own line silences the next line, in each template syntax (#537 by @ghozali25). Liquid {% comment %} blocks and {% # %} comments are skipped and work as ignore comments (#883 by @seragAhmed).
  • A website that depends on exponential-backoff or export-to-csv is no longer taken for an Expo app (#582 by @jay23606).
  • An .xml file that declares the android namespace is scanned whatever its root element (#809 by @mrandall326).
  • Cypress component tests named *.cy.tsx and the like are skipped (#893 by @XiaoBinGan).

Speed

Docs and housekeeping

  • The README is rebuilt around real before and after images (#858), and the doc tests point at docs/detector.md (#898).
  • The skipped folders list names __generated__, coverage, DerivedData and Carthage (#545 by @Zabeeh-Ullah-Dev).
  • web.md names the rule behind four web tells (#685 by @AmmarBasha2011).
  • The default-lucide examples in tells.md drop Star, and a test keeps them in line with the rule (#703 by @Zabeeh-Ullah-Dev).

Thanks to our contributors

Thanks to @XiaoBinGan, @jay23606, @starflowerH, @Alkhanizi-hashem, @AmmarBasha2011, @breachato, @codelikepreety, @radouane-tamouss, @felipetmasiero, @Zabeeh-Ullah-Dev, @iyazici00, @MentalOfCrow, @MikeFTV, @sanjuantala, @bycorekci, @Ryuto-dev, @s1reyash, @seragAhmed, @x7, @abedinm, @anushkasingh-commits, @brixtonpham, @CodewithRohitRajput, @ghozali25, @himanshu-gupta15, @kr-subh, @mrandall326, @openagents-bot, @stella-h-choi, @Adityaguptawebdev, @Arjun2066, @bryanlundberg, @chaitanya-maddala-236, @faizan200991, @kolinabir, @Mittalnew, @Mllkmoha, @nabeelbaghoor, @NginxL, @o-gojayev, @ocakciomursel-pixel, @OpenLucasKaka, @pratik-dubey, @Robotcell, @Samsong1018, @shiwng, @snehakri12, @stack-rishi, @tarekooooooo, @TariQMah, @VedantShettyy and @ZoloZiak.

A special welcome to the 38 people whose first contribution landed in this release: @Adityaguptawebdev, @AmmarBasha2011, @anushkasingh-commits, @Arjun2066, @breachato, @brixtonpham, @bryanlundberg, @bycorekci, @chaitanya-maddala-236, @codelikepreety, @CodewithRohitRajput, @faizan200991, @felipetmasiero, @himanshu-gupta15, @iyazici00, @kolinabir, @kr-subh, @Mittalnew, @Mllkmoha, @mrandall326, @NginxL, @ocakciomursel-pixel, @OpenLucasKaka, @pratik-dubey, @radouane-tamouss, @Robotcell, @Ryuto-dev, @Samsong1018, @sanjuantala, @seragAhmed, @shiwng, @snehakri12, @stack-rishi, @starflowerH, @stella-h-choi, @VedantShettyy, @XiaoBinGan and @ZoloZiak.

Don't miss a new unslop-anything release

NewReleases is sending notifications on new releases.