Anders Eknert · @anderseknert
954 followers · 2014 posts · Server hachyderm.io

New release is out! v0.8.0 brings a bunch of new features and improvements to your favorite linter, including a output format which will annotate PRs with linter violations. Also four new rules to catch both issues as well as non-idiomatic coding style. Check it out!

github.com/StyraInc/regal/rele

#regal #Rego #github #linter #opa #OpenPolicyAgent #devops #devsecops #development

Last updated 1 year ago

Constantin Gierczak-Galle · @cst1
31 followers · 96 posts · Server nixos.paris

@gdd @cst1

For some reason, the Verilator used in the GitHub actions doesn't know about the Sky130 standard cells. However, I do directly instantiate some inverter cells in my ring oscillator TRNG design.

Consequence: the action fails because the linter raises an error.

Solution? Disable the linter.

#tinytapeout #linter #hardware #vlsi #badprogrammer #computerscience

Last updated 1 year ago

Jonathan Hall · @jhall
91 followers · 313 posts · Server techhub.social

I'll be live coding in just about half an hour! Join me, and watch (or help!) me build a real-world linter for .

youtube.com/live/nnrG7RfPbz0

#golang #livestream #YouTube #livecoding #linter #staticanalysis #coding

Last updated 1 year ago

Today's my first day trying .

Not sure how I feel about the built in and formatter yet; me and are besties, and I have gotten used to

Still gonna give it a try.

#dependencies #code #programming #javascript #npmjs #npm #node #nodejs #webdev #eslint #prettier #linter #deno

Last updated 1 year ago

Anders Eknert · @anderseknert
673 followers · 1328 posts · Server hachyderm.io

New blog just dropped! On using a as a tool for learning a new language, and how I tried to apply some of those ideas while building , the new linter for .

styra.com/blog/guarding-the-gu

#linter #programming #regal #Rego #OpenPolicyAgent #opa #cloudnative #cncf #PolicyAsCode

Last updated 1 year ago

Anders Eknert · @anderseknert
655 followers · 1269 posts · Server hachyderm.io

Announced yesterday, Regal is a new linter for , with the ambitious goal of both catching bugs/mistakes in policy code, *and* to help people learn the language! If you ever work with , I’m sure you’ll find it useful. Check it out, and if you’d like to help kick-start the project by giving at star ⭐️ I’d be overjoyed!

github.com/StyraInc/regal/

#Rego #opa #cloudnative #linter #code #development #co

Last updated 1 year ago

FErki · @ferki
58 followers · 121 posts · Server fosstodon.org

describes itself as a “syntax-aware for prose built with speed and extensibility in mind”. My overlay now has the latest v2.24.4 release available for fellow users.

I recommend previous users to continue reading about ebuild changes: blog.ferki.it/2023/04/25/packa

#vale #linter #gentoo

Last updated 1 year ago

Marc JESTIN · @mjhn
26 followers · 604 posts · Server piaille.fr

et font partie des nouveaux venus dans le .

@+ !

#linter #lintian #mediawiki

Last updated 1 year ago

lxmarinkovic ⚛️ · @lxmarinkovic
15 followers · 31 posts · Server hachyderm.io
Sasha Firsov · @Suns
14 followers · 145 posts · Server fosstodon.org

`import {MyQueryDocument} from myQuery.graphql` with strict TS checks on @apollo/client `useQuery` and `client.query()` on node app is another challenge beaten this week.

No docs or reference implementation, so have to be inventive on , , config

For curious: the key is to generate `myQuery.graphql.ts` by codegen near-operation-file. works perfect in React app, in
app have to trick with

`import {MyQueryDocument} from myQuery.graphql-generated`

#linter #typescript #codegen #oclif

Last updated 1 year ago

· @svetlyak40wt
92 followers · 165 posts · Server fosstodon.org

Yesterday I've published a video showing how to use linters for Common Lisp code.

I talk about SBLint and Lisp Critic.

YouTube: youtube.com/watch?v=set7F0cfIs
Fediverse: diode.zone/w/e1fXcRys3S3YcjVBn

#commonlisp #lisp #codequality #linter

Last updated 1 year ago

pvergain · @pvergain
50 followers · 421 posts · Server qoto.org

- beta.ruff.rs/docs/
- notes.crmarsh.com/python-tooli

ruff => An extremely fast Python linter, written in Rust.

Linting the CPython codebase from scratch.

⚡️ 10-100x faster than existing linters
🐍 Installable via pip
🛠️ pyproject.toml support
📦 Built-in caching, to avoid re-analyzing unchanged files
🔧 Autofix support, for automatic error correction (e.g., automatically remove unused imports)
📏 Over 400 built-in rules (and growing)
⚖️ Near-parity with the built-in Flake8 rule set
🔌 Native re-implementations of dozens of Flake8 plugins, like flake8-bugbear
⌨️ First-party editor integrations for VS Code and more
🌎 Monorepo-friendly, with hierarchical and cascading configuration

Ruff aims to be orders of magnitude faster than alternative tools while integrating more functionality behind a single, common interface.

Ruff can be used to replace Flake8 (plus dozens of plugins), isort, pydocstyle, yesqa, eradicate, pyupgrade, and autoflake, all while executing tens or hundreds of times faster than any individual tool.

#linter #python #ruff #rust

Last updated 1 year ago

James C :python: · @jamescooke
45 followers · 170 posts · Server fosstodon.org

It's a good thing that documentation of errors raised seems to be coalescing around the "Problematic code / Correct code / Rationale" pattern.

Does anyone know if there's a name for this pattern of ?

The first tool I saw doing this was - here's an example of an error page: github.com/koalaman/shellcheck

#linter #documentation #shellcheck

Last updated 2 years ago

benzogaga33 · @benzogaga33
711 followers · 20266 posts · Server mamot.fr

RuboCop : le flic du code qui ne plaisante pas avec les règles de style ! korben.info/rubocop-linter-rub

#developpement #robocop #rubocop #linter #ruby

Last updated 2 years ago

meliache · @meliache
54 followers · 127 posts · Server hep.social

I was surprised I couldn't find [*] a hook to run the via the pre-commit framework (pre-commit.com) for . It was trivial to create a new pre-commit configuration that simply runs chktex, I published a WIP repo under: github.com/meliache/pre-commit .
I contains two hooks: chktex-system, which uses the system executable and chktex-conda, which installs chktex via . Still I think probably this already exists somewhere and I just missed it. 1/N

#precommit #chktex #latex #linter #git #conda

Last updated 2 years ago

Tamperdowner · @tamperdowner
12 followers · 144 posts · Server hachyderm.io

"to give you a sense of what he means with fast, common Python linters can take 30-60 seconds to lint the CPython codebase. Ruff takes 300 milliseconds."

talkpython.fm/episodes/show/40

#python #rust #linter #podcast #devtools

Last updated 2 years ago

Neil Craig · @tdp_org
1126 followers · 828 posts · Server mastodon.social

If you use VS Code and write bash, but you're not actually very good at bash, ShellCheck is great. It'll show you where you make mistakes that can be non-obvious and encourage you to use modern syntax:
marketplace.visualstudio.com/i

#vscode #bash #linter #shellcheck #code #shell

Last updated 2 years ago

Pablo Riesgo-Ferreiro · @priesgo
37 followers · 49 posts · Server genomic.social

After ignoring s for years about this "method may be static or a function" I decided to ask.

Whenever I write a Python class there are always some methods that do not use self. What is the actual recommendation for those?

Extract them as functions and have them in the same file as the class but out of the class hurt my sensibility.

Having them as static methods seems cleaner but obscure at the same time...

#python #linter #java

Last updated 2 years ago

JV · @webdad3
7 followers · 24 posts · Server techhub.social

Upgrading - the code base has gotten very loosey goosey. I'm also implementing a to try to teach the team how to tighten up the code base.

I'm learning a ton while doing it! Setting most of the rules to warnings. Again... To teach. Also... This is a 6 year old application with 1000's possibley10's of 1000's lines of code. Setting everything to error would be too overwhelming.

#angular #linter #webdev

Last updated 2 years ago

Mawoka · @Mawoka
43 followers · 861 posts · Server mastodon.online

:
: '31 problems (0 errors, 31 warnings)'
: 'Everything is fine! Nothing to worry about!'

#programmer #linter #programming

Last updated 2 years ago