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 --checkreads the project again, lists anything that went missing and exits with2. A handler that moved to another file still counts as kept. The skill records beforetreatandstyleand checks after them.npx unslop-anything hookadds a Claude Code hook that runs the detector on each UI file Claude Code writes or edits, in projects that have a.unslop-anythingfolder, and hands the findings back straight away.--projectwrites it to the project's.claude/settings.jsonfor every UI file, and--removetakes 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.0runs the detector that ships with the tag you pin. Its inputs arepath(default.),fail-on(defaultminor),platformandsarif. It fails the job with the detector's exit code, writes the report to the job summary and sets anexit-codeoutput. The SARIF file is written for your ownupload-sarifstep (#954 by @XiaoBinGan).
Fixed
New platforms for existing rules
- slop-gradient reads SwiftUI's color
.gradientproperty, likeColor.purple.gradient(#608 by @Alkhanizi-hashem), SwiftUI.angularGradientand.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 aval(#603 by @jay23606), an AndroidTextViewpainted with a gradient shader (#694 by @OpenLucasKaka), a SwiftUI gradient masked by text (#700 by @TariQMah), and SwiftUI.foregroundStyle(.blue.gradient)onText(#818 by @openagents-bot). - default-font reads Tailwind v3
fontFamilyobjects (#604 by @Samsong1018), the family in afontshorthand (#797 by @AmmarBasha2011), Inter from Bunny Fonts (#801 by @felipetmasiero), Chakra'sfontstheme tokens (#918 by @XiaoBinGan), and a Sass or Less variable like$font-body: Interor a preloadedfonts.gstatic.com/s/inter/file (#937 by @XiaoBinGan). - glow-shadow reads Android
outlineSpotShadowColorandoutlineAmbientShadowColor(#770 by @starflowerH), a FlutterBoxShadoworShadowwhosecolor:comes after other arguments (#804 by @CodewithRohitRajput), React NativeboxShadowarrays of objects (#856 by @jay23606), and ComposeShadow(color = ...)on text and indropShadow(#872 by @jay23606). - status-dot reads small Flutter
CircleAvatardots 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@applydot in a stylesheet (#927 by @XiaoBinGan). - nested-cards reads Android XML
MaterialCardViewandCardViewnesting (#695 by @jay23606). A class card inside a card component, and the reverse, now report, and FAST'sfast-cardcounts as a card (#915 by @XiaoBinGan). - glass-everywhere counts SwiftUI
Materialstatic members like.ultraThinMaterial(#767 by @starflowerH),GlassViewfrom expo-glass-effect (#769 by @breachato), UIKitUIGlassEffect(#879 by @jay23606), and Compose Haze's.hazeEffectand.hazeChildand react-native-blur'sVibrancyView(#899 by @XiaoBinGan). - sparkle-icon reads Phosphor Vue
PhSparkleand theph-sparkleweb font (#670 by @iyazici00), Iconify names with a style or size (#680 by @sanjuantala), Android drawables likeic_auto_awesome_24(#684 by @sanjuantala), Flutter's rounded, outlined and sharp icons (#731 by @breachato), React NativeMaterialIconsauto-awesome(#734 by @breachato), Flutter'sCupertinoIcons.sparkles(#761 by @breachato), react-iconsFaWandMagicSparklesandGiSparkles(#799 by @felipetmasiero), Flutter's Lucide, Phosphor and Font Awesome sparkles (#876 by @jay23606), Tabler'sti-sparklesweb font class (#886 by @starflowerH), and Blade UI Kit's<x-heroicon-o-sparkles>and<x-lucide-sparkles>,mdi-sparklesandfa-wand-sparkles(#926 by @XiaoBinGan). - default-lucide counts Lucide icons named as Iconify strings (#681 by @sanjuantala) and in
data-lucideattributes (#871 by @jay23606), and reads a CommonJSrequire("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
ForEachdirectly inside a SwiftUIScrollView(#605 by @kolinabir), a list mapped insideKeyboardAwareScrollView(#632 by @codelikepreety), mapped children in a FlutterGridView,GridView.countandGridView.extent(#775 by @jay23606), eagerly built slivers in a FlutterCustomScrollView(#798 by @kr-subh),repeat()in a scrolling ComposeColumn(#945 by @Alkhanizi-hashem), and aFlatListnested inside a plainScrollView(#930 by @XiaoBinGan). - fixed-text-size catches UIKit italic and monospaced system fonts (#534 by @jay23606),
.systemFont(ofSize:)written withoutUIFont(#796 by @jay23606), and a fixed size in a file that setsadjustsFontForContentSizeCategory = false(#970 by @XiaoBinGan). It also catches Android style items with fixed dp sizes (#546 by @bycorekci), SwiftUI.dynamicTypeSizepinned or capped at the default size (#598 by @radouane-tamouss), KotlinfontScale = 1f,.dp.toSp()andsetTextSizein dp or px (#701 by @Zabeeh-Ullah-Dev), FlutterTextScaler.clampwithmaxScaleFactorat 1.0 (#773 by @starflowerH), a SwiftUI.customfont named by a constant (#897 by @XiaoBinGan), a positionalDensity(..., 1f)in Compose (#905 by @XiaoBinGan), andtext-size-adjust: nonein a stylesheet (#958 by @XiaoBinGan). A test now covers FluttertextScaleFactorandTextScaler.linearat 1.0 (#543 by @shiwng). - back-gesture catches a force-unwrapped
interactivePopGestureRecognizer!(#529 by @jay23606), Ionic'sswipeBackEnabled: falseandswipeGesturefalse on outlets and navs (#660 by @himanshu-gupta15), KotlinonKeyDownandonKeyUpthat swallowKEYCODE_BACK(#760 by @bycorekci), React Navigation'sheaderBackVisible: false(#766 by @starflowerH) andheaderLeft: () => null(#859 by @jay23606), a React NativehardwareBackPresshandler that always returns true (#810 by @mrandall326), an empty ComposeBackHandlerorOnBackPressedCallback(#815 by @openagents-bot), and a FlutterPopScope(canPop: false)with no pop callback (#881 by @jay23606). - drawer-nav catches Font Awesome's
faBarsandfa-bars(#589 by @Alkhanizi-hashem), the Android menu drawable on a View toolbar (#733 by @breachato), FlutterSymbols.menuandIcons.menu_open(#764 by @starflowerH), theDrawerfrom react-native-drawer-layout (#777 by @felipetmasiero), ComposeMenuOpenand TwoTone menu icons (#877 by @jay23606), and MUI'sMenuIcon, Heroicons'MenuAlt1IcontoMenuAlt3IconandHamburgerIcon(#924 by @XiaoBinGan). - hover-only catches
pointerenterandpointeroverhandlers (#584 by @Alkhanizi-hashem). - keyboard-cover flags a Flutter screen that sets
resizeToAvoidBottomInset: falsenext to a text field (#672 by @VedantShettyy), and reads theInputfrom NativeBase, React Native Elements and UI Kitten and an Android manifest'sadjustNothing(#911 by @XiaoBinGan). - safe-area-off catches
.verticaland[.top, .bottom]edges (#771 by @starflowerH) and UIKit'scontentInsetAdjustmentBehavior = .neverwhen 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), MUITypographywithvariant="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@applyeyebrow (#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 likesize-[40px] bg-[#6366f1]/10(#922 by @XiaoBinGan). A test now covers Compose container colors and SwiftUI.tertiaryandin:shapes (#693 by @iyazici00). - decorative-blob catches blobs written in plain CSS (#596 by @radouane-tamouss).
- transition-all catches MUI's
transitions.create("all")andcreate()with no properties (#674 by @starflowerH), and a JSXtransitionortransitionPropertyprop set to all (#923 by @XiaoBinGan). - hover-scale reads Motion
whileHoverwithtranslateYand quoted negative lengths (#675 by @starflowerH), Chakra UI and Panda CSS_hovertransforms (#857 by @AmmarBasha2011), and Vuev-motionhovered scale and lift (#892 by @faizan200991). - decorative-pulse reads a Tailwind
@applyline in a stylesheet (#916 by @XiaoBinGan). - reduced-motion reads an animation written with the
animation-namelonghand and a duration (#820 by @jay23606), pairs each longhand value with its list item (#850 by @jay23606), and reads a Tailwind@applyanimation (#919 by @XiaoBinGan). - entrance-everywhere reads Vue's
v-motionfrom @vueuse/motion (#591 by @Alkhanizi-hashem), Motion for Vue's bound:initial(#631 by @MikeFTV), Reanimated'sentering=(#795 by @MikeFTV), Animate.css entrance classes (#816 by @Arjun2066), and GSAPfrom()andfromTo()entrances (#909 by @XiaoBinGan). - clickable-div reads Livewire's
wire:click(#819 by @AmmarBasha2011),onClickon MUI and Chakra layout components likeBoxandStack(#851 by @jay23606), handlers ondl,dt,dd,ulandol(#861 by @bryanlundberg), and handlers on inline text likesmallandstrongand onCardandPaper(#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 itsaccessibilityLabel, keeps an image hidden withaccessible={false}and the like quiet, reads AMP'samp-img, and treatsalt={undefined}as no alt (#951 by @XiaoBinGan). - placeholder-label reads Angular
[placeholder]and[attr.placeholder]bindings (#894 by @XiaoBinGan). - vague-button reads a UIKit
setTitlelabel (#606 by @Alkhanizi-hashem), labels on extended floating action buttons (#648 by @MentalOfCrow), andUIButton.Configurationtitles (#854 by @jay23606), also when the configuration is declared with its type (#866 by @MikeFTV) or namedconfiguration(#949 by @anushkasingh-commits). - invented-stat reads
android:textin Android layout XML (#593 by @MikeFTV), and a statistic set on a label's text likeusersLabel.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
#667eeato#764ba2purple 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
#aa3bffaccent and "save to test HMR" screen (#677 by @AmmarBasha2011), the Expo tabs template's#2f95dctint (#806 by @iyazici00), React Native'sNewAppScreen(#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-bluetoken (#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
lightBlueswatches (#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-primaryandbg-destructive(#736 by @breachato), gradient-colored blobs likebg-gradient-to-tr from-sky-400(#868 by @iyazici00), and an arbitrary color likebg-[#8b5cf6]/30(#934 by @XiaoBinGan). - hover-scale reads
:hoverfollowed by a selector list or:not()(#602 by @tarekooooooo). - focus-removed catches
outline: noneinside a:focus-visiblerule (#630 by @starflowerH) and a Tailwind@applyline withfocus: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
.mapjoined into one string (#737 by @pratik-dubey), a loop inside a Compose callback (#808 by @x7), loops in Compose effect andrememberblocks (#873 by @jay23606), and aForEachinside 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 samecn()call (#682 by @sanjuantala). A test now covers a CSS spinner written withanimation-name(#635 by @Mittalnew). - focus-removed judges a CSS
outline: noneby 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-visiblerule (#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 Vuev-bindof a variable or$attrs, which may carry alt like a spread (#882 by @seragAhmed). - placeholder-label accepts Angular Material's
mat-labelinsidemat-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.outsideand@click.awayalone (#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, SwiftfatalErrorand its kin, Kotlinerror()and Dartlog()(#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
.textassignments and ComposeText(text = ...)alone (#687 by @Adityaguptawebdev), and atitletooltip on an HTML element (#803 by @x7). - invented-stat skips percentages in
<option>and<button>(#668 by @s1reyash).
Scanning
- Bare
Story,Preview,MockandSpecfiles 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-backofforexport-to-csvis no longer taken for an Expo app (#582 by @jay23606). - An
.xmlfile that declares the android namespace is scanned whatever its root element (#809 by @mrandall326). - Cypress component tests named
*.cy.tsxand the like are skipped (#893 by @XiaoBinGan).
Speed
- entrance-everywhere bounds its scans of motion tags (#649 by @starflowerH),
animate-inclass strings (#657 by @starflowerH) andAnimatePresencetags (#673 by @starflowerH), and reads each tag once in its AOS check (#690 by @codelikepreety). - default-lucide bounds its tag scans (#688 by @codelikepreety), unverified-claim carries its star-run state forward (#689 by @codelikepreety), vague-button reads each tag once instead of once per label (#691 by @codelikepreety), and focus-removed reads each
cn()call and tag once (#814 by @codelikepreety). - slop-gradient and focus-removed read each
cn()call once (#692 by @AmmarBasha2011), and slop-gradient reads each call's stops once (#800 by @snehakri12). - unvirtualized-list stops a
ScrollViewhead at the nextScrollView(#697 by @AmmarBasha2011). - gradient-text checks Compose brushes in one forward pass (#696 by @nabeelbaghoor).
- decorative-pulse reads a long stylesheet line with no braces in linear time (#633 by @Robotcell).
- status-dot avoids repeated CSS scope scans (#811 by @kr-subh) and reads each CSS rule once (#910 by @XiaoBinGan).
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,DerivedDataandCarthage(#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.