<commit_before># encoding: utf-8

usage       'check [options] [names]'
summary     'run issue checks'
description <<-EOS
Run the given issue checks (or all, if none are given) on the current site.
EOS

flag :a, :all,    'run all checkers'
flag :l, :list,   'list all checkers'
flag :d, :deploy, 'run checkers for deployment'

module Nanoc::CLI::Commands

  class Check < ::Nanoc::CLI::CommandRunner

    def run
      validate_options_and_arguments
      self.require_site

      runner = Nanoc::Extra::Checking::Runner.new(site)
      if options[:list]
        runner.list_checkers
      elsif options[:all]
        runner.run_all
      elsif options[:deploy]
        runner.require_dsl
        runner.run_for_deploy
      else
        runner.run_specific(arguments)
      end
    end<commit_msg>Fix documentation for check command<commit_after># encoding: utf-8

usage       'check [options] [names]'
summary     'run issue checks'
description <<-EOS
Run issue checks on the current site. If the --all option is passed, all available issue checks will be run. If the --deploy option is passed, the issue checks marked for deployment will be fun.
EOS

flag :a, :all,    'run all checkers'
flag :l, :list,   'list all checkers'
flag :d, :deploy, 'run checkers for deployment'

module Nanoc::CLI::Commands

  class Check < ::Nanoc::CLI::CommandRunner

    def run
      validate_options_and_arguments
      self.require_site

      runner = Nanoc::Extra::Checking::Runner.new(site)
      if options[:list]
        runner.list_checkers
      elsif options[:all]
        runner.run_all
      elsif options[:deploy]
        runner.require_dsl
        runner.run_for_deploy
      else
        runner.run_specific(arguments)
      end
    end
{'fraction_non_alphanumeric': 0.09153713298791019, 'fraction_numerical': 0.0011514104778353484, 'mean_word_length': 2.977116704805492, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6589702', 'n_tokens_mistral': 539, 'n_tokens_neox': 519, 'n_words': 169}