rust/tests
bors 27b5dd8886 Auto merge of #2857 - avborhanian:master, r=phansch
Adding lint test for excessive LOC.

This is a WIP for #2377. Just wanted to pull in because I had a few questions:

1. Is it okay that I'm approaching this via counting by looking at each line in the snippet instead of looking at the AST tree? If there's another way to do it, I want to make sure I'm doing the correct way, but I wasn't sure since the output AST JSON doesn't seem to contain whitespace.

2. My function is definitely going to trigger the lint, so also wanted to see if there was something obvious I could do to reduce it.

3. Are the two tests fine, or is there something obvious I'm missing?

4. Obviously bigger question - am I approaching the line count correctly. Current strategy is count a line if it contains some code, so skip if it's just comments or empty.
2019-02-02 08:32:27 +00:00
..
auxiliary Remove all copyright license headers 2019-01-08 21:46:39 +01:00
run-pass Remove all copyright license headers 2019-01-08 21:46:39 +01:00
ui Auto merge of #2857 - avborhanian:master, r=phansch 2019-02-02 08:32:27 +00:00
ui-toml Updating code to ignore rustfmt issue. 2019-02-01 13:21:19 -05:00
compile-test.rs Remove all copyright license headers 2019-01-08 21:46:39 +01:00
dogfood.rs Fix dogfood tests on Appveyor 2019-01-26 11:10:13 +02:00
matches.rs Remove all copyright license headers 2019-01-08 21:46:39 +01:00
missing-test-files.rs allow assertions_on_constants for collapsible_if and missing_test_files 2019-01-23 17:58:33 +03:00
needless_continue_helpers.rs Remove all copyright license headers 2019-01-08 21:46:39 +01:00
versioncheck.rs test(versioncheck): Use .no_deps() 2019-01-25 21:53:44 +01:00