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

nanoc-checking-checks-vnu

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nanoc-checking-checks-vnu

  • 1.2.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Nanoc::Checking::Checks::Vnu

A nanoc check that validates HTML, CSS, and SVG output files locally with the Nu Html Checker (v.Nu).

Installation

Install v.Nu and place the vnu executable on your PATH.

Add this line to your application's Gemfile:

gem 'nanoc-checking-checks-vnu'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install nanoc-checking-checks-vnu

Usage

Add this line to a Ruby file inside your site's lib directory:

require 'nanoc/checking/checks/vnu'

Then execute:

$ nanoc check vnu  # prefix with `bundle exec` as appropriate

You can automatically run this check at deploy time by adding vnu to the checking section of nanoc.yaml.

By default, CSS and SVG files are validated in addition to HTML files. This can be changed by configuring the check in nanoc.yaml:

checks:
  vnu:
    also_check_css: no
    also_check_svg: no

You can further disable particular errors by passing a value for the --filterpattern option, which takes a regex matching the whole message:

checks:
  vnu:
    filterpattern: '.*color-mix.*'

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/query/nanoc-checking-checks-vnu.

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 10 Jan 2025

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