Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Enforce SQL Formatting with pre-commit and GitHub Actions

SQL style drift rarely comes from one bad decision. It comes from a hundred small ones: one developer's editor inserts two spaces after SELECT , another aligns joins differently, and a third commits a query that was formatted by a tool nobody else has installed. The pull request then contains a mix of logic changes and whitespace churn, and reviewers spend their attention on spacing instead of…

Enforcing consistent SQL formatting is crucial for maintaining code quality and reducing reviewer fatigue. A single bad habit quickly propagates, resulting in a variety of formatting styles across the codebase. Each developer's editor settings, such as space insertion, join alignment, and formatting tools, contribute to this drift.

Pull requests often contain a mix of logical changes and whitespace alterations, causing reviewers to focus on formatting rather than correctness. Format-on-save settings are personal preferences, not team policies, leading to inconsistent formatting when multiple tools are used. To address this issue, a shared SQL formatting setup can be established using SQLFluff, pre-commit, and GitHub Actions.

This solution separates formatting failures from lint failures and ensures consistent formatting across the team.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

How to write a freelance proposal that gets accepted (template included)

Most freelance proposals do not get rejected because the price was too high. They get rejected because the client could not tell what they were getting, or because the scope was vague enough that they…

  • Reiterate client's requirements using their exact terminology
  • List distinct deliverables with clear exclusions
  • Include timeline, precise pricing, and single next step

The 20-minute Monday review that keeps a solo business from drifting

Here is the thing nobody tells you about running a business alone: the work does not fail because you did it badly. It fails because you forgot to do it. The proposal you postponed.

  • Solo business owner dedicates 20 minutes every Monday to review six key questions.
  • List next steps for active clients, overdue tasks, and tasks due this week.
  • Identify three critical aspects for a successful week and one task to stop doing.

Turning public EU MRV reports into a CII and FuelEU screening dataset

Public EU MRV data is unusually useful and unusually awkward. It is detailed, vessel-level and publicly disclosed. It is also spread across reporting workbooks, mixed full and partial reports…

  • Public EU Multi-Modal Reporting data transformed into 14,370-vessel dataset
  • Dataset includes CII, FuelEU, EU ETS, risk, and peer-group information
  • Snapshot timestamp 2026-08-28T17:23:03Z fixed for citation and download

A Better Way to Model Color Filters in Shopify: Options, Metafields, and Metaobjects

Hey everyone! One interesting challenge when working with large Shopify catalogs is keeping product data consistent. Let's take color filtering as an example.

  • Product options ideal when customers select product variants like size or material.
  • Metafields extend resources with structured data, e.g., custom.maincolor for color.
  • Metaobjects create reusable color values for consistent data across products.

Why entropy can't see XOR-obfuscated code (and what to measure instead)

Most packer and obfuscation detectors threshold on Shannon entropy. Above ~7.0 means "compressed or encrypted", below means "probably fine".

  • Traditional detectors fail to identify XOR-obfuscated code.
  • Bijection mapping preserves byte frequencies, retaining entropy.
  • Coverage measurement detects undecodable XOR-obfuscated code.

More from Sunday, 29 November 2026 →