Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'use statements with extraneous spaces' tidy check #15690

Merged
merged 1 commit into from Feb 23, 2017

Commits on Feb 22, 2017

  1. Add 'use statements with extraneous spaces' tidy check

    Add 'use statements with extraneous spaces' tidy check
    
    I added simple check routine for 'use statements with extraneous
    spaces' and codes that breaks the check routine in rust_tidy.rs.
    
    * Added a code that using 'use statements with extraneous spaces' code
      in rust_tidy.rs
    * Added assertion code in test_tidy.py.
    * check_rust function in tidy.py now recognizes the simple case in
      the 'use statements with extraneous spaces'.
    * Ran tidy check on rust code and modified a
      code(tests/unit/style/parsing/inherited_text.rs) that is not passing
      on this new tidy check.
    
    TODO: this code has to be refactored to support more general cases.
    
    - [X] ./mach test-tidy does not report any errors
    - [X] These changes fix #14898 (github issue number if applicable).
    kimumetal committed Feb 22, 2017
You can’t perform that action at this time.