Ask HN: Should source files always end in a new line?

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • pre-commit

    A framework for managing and maintaining multi-language pre-commit hooks.

  • Most importantly, pick a linter that can automatically fix it. I use pre-commit (https://pre-commit.com) for that. As a bonus, it supports other, language-specific linters.

  • black

    The uncompromising Python code formatter

  • One project you may be interested in is Black for python.

    It's a code formatter that provides one style with very limited configuration. The idea being the rigidness removes bike shedding and forces consistency.

    Of course you can use any code formatter and configure it to your liking, but there's something to be said about not giving the user levers to pull and argue about. Everyone just download Black, and you're good to go.

    https://black.readthedocs.io/en/stable/

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • editorconfig-vim

    EditorConfig plugin for Vim

  • Yes. Just because a decision that's enforced allows the conversation to move on to other things.

    And to enforce it? Try https://editorconfig.org/ which is supported natively by many editors (eg Visual Studio) and via plugins in others (eg VS Code).

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts