schorfES / node-lintspaces

A validator for checking different kinds of whitespaces in your files.
https://npmjs.com/package/lintspaces
MIT License
30 stars 17 forks source link

bug with newlines #32

Closed alexander-akait closed 8 years ago

alexander-akait commented 8 years ago

Maximum amount of newlines exceeded. Found 3 newlines, expected maximum is 2. in /some/path/to/file/unified-modal.php:3

<?php
namespace feature\unifiedModal;

/*
    <a href="#"
        class="btn btn-info ladda-button"
        data-ui-component="unified-modal-opener"
        data-style="zoom-in"
        data-title="..."
        data-size="md"
        data-header="true"
        data-footer="false"
        data-render="contact-form"
        data-view="Заголовок"
        >
        <span class="ladda-label">...</span>
    </a>
**/

/**
 * Unified modal action
 *
 * @throws \Exception
 */
schorfES commented 8 years ago

/*not matches the expected multiline comments. A valid comment in "C-Style" starts with /**. See https://github.com/schorfES/node-lintspaces/blob/master/lib/constants/ignorePatterns.js#L3