Skip to content

feature_request(validation): validate license files #50

Description

@Kristinita

1. Summary

It would be nice, if license files will be valid.

2. Argumentation

  1. I use Markdownlint for validating Markdown files.
  2. I prefer tabs, not spaces. I use EClint, that check, that in all my files tabs indentation.

3. Steps to reproduce

lice mit --file LICENSE.md

markdownlint LICENSE.md

eclint check LICENSE.md

4. Expected behavior

No output in console.

5. Actual behavior

Markdownlint:

D:\Kristinita>markdownlint LICENSE.md
LICENSE.md: 4: MD009/no-trailing-spaces Trailing spaces [Expected: 0; Actual: 1]
LICENSE.md: 11: MD009/no-trailing-spaces Trailing spaces [Expected: 0; Actual: 1]
LICENSE.md: 14: MD009/no-trailing-spaces Trailing spaces [Expected: 0; Actual: 1]
LICENSE.md: 23: MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]

ECLint:

D:\Kristinita>eclint check LICENSE.md
LICENSE.md
    02:01 ❌️ invalid indent style: space, expected: tab (EditorConfig indent_style https://goo.gl/8Qkrbr)
    03:01 ❌️ invalid indent style: space, expected: tab (EditorConfig indent_style https://goo.gl/8Qkrbr)
    05:01 ❌️ invalid indent style: space, expected: tab (EditorConfig indent_style https://goo.gl/8Qkrbr)
    06:01 ❌️ invalid indent style: space, expected: tab (EditorConfig indent_style https://goo.gl/8Qkrbr)
    07:01 ❌️ invalid indent style: space, expected: tab (EditorConfig indent_style https://goo.gl/8Qkrbr)
    08:01 ❌️ invalid indent style: space, expected: tab (EditorConfig indent_style https://goo.gl/8Qkrbr)
    09:01 ❌️ invalid indent style: space, expected: tab (EditorConfig indent_style https://goo.gl/8Qkrbr)
    10:01 ❌️ invalid indent style: space, expected: tab (EditorConfig indent_style https://goo.gl/8Qkrbr)
    12:01 ❌️ invalid indent style: space, expected: tab (EditorConfig indent_style https://goo.gl/8Qkrbr)
    13:01 ❌️ invalid indent style: space, expected: tab (EditorConfig indent_style https://goo.gl/8Qkrbr)
    15:01 ❌️ invalid indent style: space, expected: tab (EditorConfig indent_style https://goo.gl/8Qkrbr)
    16:01 ❌️ invalid indent style: space, expected: tab (EditorConfig indent_style https://goo.gl/8Qkrbr)
    17:01 ❌️ invalid indent style: space, expected: tab (EditorConfig indent_style https://goo.gl/8Qkrbr)
    18:01 ❌️ invalid indent style: space, expected: tab (EditorConfig indent_style https://goo.gl/8Qkrbr)
    19:01 ❌️ invalid indent style: space, expected: tab (EditorConfig indent_style https://goo.gl/8Qkrbr)
    20:01 ❌️ invalid indent style: space, expected: tab (EditorConfig indent_style https://goo.gl/8Qkrbr)
    21:01 ❌️ invalid indent style: space, expected: tab (EditorConfig indent_style https://goo.gl/8Qkrbr)

Extra spaces in beginning of each line:

Extra spaces

I can't fix it, use eclint fix.

6. Not helped

  1. --template option. I make template without leading spaces → lice generate leading spaces.

Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions