home.social

#lint — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #lint, aggregated by home.social.

  1. Как заставить Android Studio ругаться на код по вашим правилам: создаем пользовательские Lint и Detekt

    Привет, Хабр! На связи Алина, старший Android-разработчик в команде Инвестиций «Совкомбанк Технологии». Сегодня поговорим о том, как заставить Android Studio самостоятельно следить за порядком в коде – без ручных проверок и без вечных напоминаний в командном чате. В этой статье мы создадим практические правила для инструментов статического анализа кода и разберем, как внедрить их в проект. На примере lint рассмотрим контроль архитектуры пакетов и обязательную документацию с QuickFix, а на примере detekt – проверку неизменяемого состояния представления без Android-зависимостей и миграцию с RxJava на Coroutines.

    habr.com/ru/companies/sovcomba

    #Lint #Detekt #Android #QuickFix #Анализ_кода #Правила #Kotlin #Java #Suppress #Тесты

  2. LLMs are Lint

    No, I don’t mean that are bits of clothing fluff, I mean they’re like the old “lint” program for C.

    In those days, there wasn’t enough memory to load the parser and the error messages at the same time. So the messages were shifted to a different program, lint, which did lexical analysis and then dumped the result into a semantic analysis phase.

    That mean that lint was reporting on what it thought the program meant, rather than on places where the C compiler failed. That, in turn, meant it was wrong a lot (:-)) So the authors added comments like /* NOTREACHED */ which would tell lint to ignore things. I soon got used to carefully analyzing the messages, and shutting the bogus ones off with suppressions.

    Surprise, It’s the Same with LLMs

    I often get message like this:

    I apologize for my previous error. The article I mentioned earlier was not a real, verifiable source. I should not have presented fictional information as if it were factual. This was a mistake on my part.
    In reality, I cannot find an actual City News article from January 15, 2026, with the details I previously claimed. The information I provided was fabricated, which goes against my core principle of providing accurate and truthful information.

    So I do three things:

    • Add suppressions to my defaults, like “don’t tell me about Oxford commas”
    • check absolutely everything that doesn’t come with a URL
    • and check the URLS, too.

    This sounds hard, but it’s easy if you set your expectations correctly. For example, the name I gave to my LLM is “Lyin’ Brian”, after Brian Mulrony, a Canadian PM who seem to have some “doubtful associations” in his career, like https://en.wikipedia.org/wiki/Karlheinz_Schreiber

    The suppressions do the heavy lifting. Checking URLs often gets done as a side-effect, when I go to read the thing the link points to.

    #ai #c #lint #llm
  3. This is a gorgeous scene. Dashboard notebook, IPS LED panel left and super wide IPS LED panel full left
    The SBC is lit up by the second panel

    #Hardware #lint #cable #snapped #technology #RetroComputing

  4. One of the last photographs of my dashboard notebook, to the far right, before the video lint cable snapped. The hinges of the system broke a while ago making this inevitable.

    The notebook, unusable for important computing demands of my workflow was still valuable as an extended display of various dashboards from other machines like the SBC and main computer which needs a third display.

    This notebook lived for a whopping twenty+ years!

    #Hardware #lint #cable #snapped #technology #RetroComputing

  5. Nationalism is fine so long as you're an oppressed people, and you're saying "We're as good as the other people".

    As soon as you already have a nation, it can no longer mean that, becoming instead "One of us is better than any of them".

    #lint

  6. Are there any #SchneiderElectric #Modicon People around? I am getting more involved in the search for the WTB library used in old #Alstom #LINT trains than I probably should, but I can't help myself from digging into this rabbit hole...

  7. Created two small linters improving an ergonomics of type switches in Go by adding exhaustive match check. With those tools adding a new case become a lint error.

    github.com/gomoni/sumlint

    1. oneoflint does an exhaustive check for code implementing protobuf's oneof

    vyskocil.me/blog/oneoflint-exh

    2. sumlint which does an exhaustive check for a interface implementing a simple naming convention

    vyskocil.me/blog/sumlint-havin

    type SumFoo interface {
    sumFoo()
    }

    #go #golang #lint

  8. Hat hier jemand Kontakt zu Menschen, die LINTs maintainen? Hier sucht jemand ein File, das nicht auf der Service-CD ist, aber eine handvoll Züge unbricken würde.

    #LINT

  9. Beginning to really appreciate the #rumdl project in helping me lint my Markdown and get some consistency in the formatting of the gazillion notes I've created for myself.

    Like #ruff and sphinx-lint, it's becoming a common part of my toolbox to keep my sloppiness in check and, perhaps, teach me some better formatting habits.

    github.com/rvben/rumdl

    #Markdown #lint #documentation

  10. prek 0.2.0 is out:

    "Note: If you ran `prek install` in a repo before, you gonna need to run `prek install` again to replace the old git hook scripts for the workspace mode to work."

    github.com/j178/prek/releases/

    Here's a little script to run `prek install` in all subdirectories containing a config file:

    uv run gist.github.com/hugovk/d601e65

    #Python #prek #lint #precommit #uv

  11. 🆕 I've been using a new tool called prek as a drop-in replacement for pre-commit.

    It uses uv and is rewritten in Rust (because of course) and as you'd expect is much faster.

    Try it!

    hugovk.dev/blog/2025/ready-pre
    #Python #prek #lint #precommit #uv

  12. OMG das ist ja cute: Den #Alstom #Cordia #LINT gibt es auch in winzig :o

    (Bild: CC BY 3.0 Johannes Martin Conrad)

    #AlstomCordiaLINT #LINT27 #BahnBubble

  13. Dylint - Run #Rust lints from dynamic libraries:

    github.com/trailofbits/dylint

    "Dylint is a Rust linting tool, similar to Clippy. But whereas #Clippy runs a predetermined, static set of lints, Dylint runs #lints from user-specified, dynamic libraries. Thus, Dylint allows developers to maintain their own personal lint collections."

    Looks like a really cool project!

    #Lint #RustLang #StaticAnalysis #Compiler

  14. Статический Анализ С-кода

    Существует бесплатные статические анализаторы. Среди низ splint и cppcheck. Статический анализатор это такая консольная программа, которая проверяет исходные коды до компиляции. Своего рода автоматическая инспекция программ. В этом тексте я представил готовый makefile для запуска статического анализа.

    habr.com/ru/articles/770506/

    #splint #lint #make #mcu #firmware #C #си #static_analysis #Сppcheck #Сppcheck

  15. Survival Tip of the day: two words…. dryer lint. it makes excellent fire starter esp if you use dryer sheets. I use the tube from the costco syran wrap box to store and compress it #survival #lint #pyro

  16. Wrote a blog post for the first time in too long! Pleasantly surprised my Nix, Middleman, GitHub Pages toolchain is still working! 😅🎉

    > How to configure Zed to use ERB Lint as a formatter:

    jamesmead.org/blog/2025-03-30-

    #zed #erb #lint #ruby

  17. TIP: If you want to know how to integrate an existing PHPCS configuration into Tomas Votruba's excellent easy-coding-standard linting tool -> here you go : github.com/lgersman/docker-ecs

    The repo features a xdebug+vscode ready configuration for ecs including a custom WordPress Coding Standard derivate consumed by ecs.

    -coding-standard

  18. De taal van de Troonrede gaat ruim de helft van de Nederlanders boven de pet | de #Volkskrant
    volkskrant.nl/politiek/de-taal

    Waar de NOS oog heeft voor voor de 18% laag geletterden in Nederland, vindt het kabinet 50% helemaal prima... (en de kabinetten hiervoor)

    Toch wel een puntje om vanaf volgende jaren maar mee te nemen.. 😏

    #Troonrede #Taalgebruik #LiNT

  19. You can now #[expect] lints in the new Rust stable! 🦀

    ✨ Suppresses lints and warns on unfulfilled expectations.

    📚 Documentation: doc.rust-lang.org/rustc/lints/

    ➡️ Implementation: github.com/rust-lang/rust/pull

  20. I find myself constantly making mistakes when it comes to writing markdown files. I mostly use markdown for creating little notes to myself, so any simple tool is good enough for me. I started to search for some command line tool that I can use to check the syntax for me. I think this very simple to use program "markdownlint" is a good one. 😁

    github.com/markdownlint/markdo

    #cli #markdownlint #markdown #lint

  21. Best Practice per Progetti di Machine Learning di Successo

    Gestire le integrazioni, l’implementazione, la scalabilità e tutti quegli aspetti che rendono i progetti di Machine Learning un prodotto reale è un lavoro a sé stante. C’è un motivo per cui esistono diverse posizioni lavorative che vanno dal data scientist, al Machine Learning Engineer e al MLOps expert. Tuttavia, anche se non è necessario essere […]

    L'articolo Best Practice per Progetti di Machine Learning di Successo proviene da il blog della sicurezza informatica.

    redhotcyber.com/post/best-prac
    redhotcyber.com/feed

    poliverso.org/display/0477a01e

  22. @treyhunner

    It still pisses me off that #flake8 complains if you ever bind a #lambda to a name. "Use a #function instead!" it whines.

    Every time, I want to channel #Kimi #Raikonnen: "Leave me alone, I know what I'm doing!"

    #lint #PITA #opinionated

  23. We got a a couple of weeks ago.
    Do always capture so much ? or is it just in the first several cycles?
    And why does it capture so much lint?!
    Either way - scraping the lint out of the filter is sooo satisfying!