Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

curlylint

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

curlylint

{{ 🎀}} Prototype linter for Jinja and Django templates, forked from jinjalint

  • 0.1.0
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

curlylint

PyPI PyPI downloads Travis Total alerts Language grade: Python

{{ 🎀}} Prototype linter for Jinja and Django templates, forked from jinjalint.

curlylint is a prototype linter for your templates – whether that’s Django’s templates, Jinja, Twig, or any other “curly braces” template language.

As of now, curlylint supports:

  • Linting invalid template / HTML syntax due to mismatched tags – while template errors are easy enough to spot, it’s not rare for HTML issues to make their way to live sites.
  • Indentation inconsistencies – Usage of tabs vs spaces, line breaks, indentation size.

In the future, we intend to support linting:

  • Common accessibility issues in HTML – misuse of ARIA role, and making sure alternative text is used where appropriate.
  • Common security issues – e.g. rel="noopener noreferrer", or preventing usage of HTTP URLs.
  • General HTML code smells – duplicate attributes, invalid attributes, etc.
  • More ideas welcome!

Usage

You need Python 3. Curlylint doesn’t work with Python 2. Install it with pip install curlylint (or pip3 install curlylint depending on how pip is called on your system), then run it with:

curlylint template-directory/

…or:

curlylint some-file.html some-other-file.html

FAQs

Package last updated on 11 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc