<commit_before>EditorConfig Tools
==================

Goals of this project
---------------------

* Create tool to infer format for ``.editorconfig`` file from current code
* Create tool to validate current code from existing ``.editorconfig`` files
* Create tool to fix style errors in code from existing ``.editorconfig`` files

Examples
--------

Here is an example of the command-line API we want to support::

    $ cat .editorconfig
    [*]
    indent_style = space
    indent_size = 4

    $ check_editorconfig *
    Makefile: Tab indentation found

    $ guess_editorconfig *
    [*]
    indent_style = space
    indent_size = 4
    end_of_line = lf
    charset = utf-8
    insert_final_newline = true
    trim_trailing_whitespace = true

    [Makefile]
    indent_style = tab
    indent_size = N/A

    $ check_editorconfig --fix *
    Makefile: Converted tabs to spaces

    $ check_editorconfig *

    $ guess_editorconfig *
    [*]
    indent_style = space
    indent_size = 4
    end_of_line = lf
    charset = utf-8
    insert_final_newline = true
    trim_trailing_whitespace = true


Project Status<commit_msg>Update cli API<commit_after>EditorConfig Tools
==================

Goals of this project
---------------------

* Create tool to infer format for ``.editorconfig`` file from current code
* Create tool to validate current code from existing ``.editorconfig`` files
* Create tool to fix style errors in code from existing ``.editorconfig`` files

Examples
--------

Here is an example of the command-line API we want to support::

    $ cat .editorconfig
    [*]
    indent_style = space
    indent_size = 4

    $ check_editorconfig *
    Makefile: Tab indentation found

    $ infer_editorconfig *
    [*]
    indent_style = space
    indent_size = 4
    end_of_line = lf
    charset = utf-8
    insert_final_newline = true
    trim_trailing_whitespace = true

    [Makefile]
    indent_style = tab
    indent_size = N/A

    $ fix_editorconfig *
    Makefile: Converted tabs to spaces

    $ check_editorconfig *

    $ guess_editorconfig *
    [*]
    indent_style = space
    indent_size = 4
    end_of_line = lf
    charset = utf-8
    insert_final_newline = true
    trim_trailing_whitespace = true


Project Status
{'fraction_non_alphanumeric': 0.1032487761459724, 'fraction_numerical': 0.004450378282153983, 'mean_word_length': 2.7095709570957096, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3036672', 'n_tokens_mistral': 684, 'n_tokens_neox': 645, 'n_words': 208}