Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd linter lll #93
Conversation
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
alecthomas
Feb 28, 2016
Owner
I'm not opposed to this, but there are a couple of problems:
- No way to change the default line length. A flag should be plumbed through in in a similar way to how
--cyclo-over. - It should pass
-gby default. - It recurses by default. Even though it's fast, with vendored source this can still take quite some time.
|
I'm not opposed to this, but there are a couple of problems:
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
walle
Feb 28, 2016
Contributor
I've fixed number one and two, in the latest commit.
Regarding number tree, the vendor dir is skipped by default, like in dupl (https://github.com/mibk/dupl) and can be included by using the --vendor flag.
|
I've fixed number one and two, in the latest commit. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
alecthomas
Feb 28, 2016
Owner
Thanks!
gometalinter explicitly uses dupl ./*.go to prevent it recursing. I've also had to fork gocyclo to do the same. It's not specifically about the "vendor" directory, but more about total directory size. Data files, etc.
That said, it looks like lll can be run with wildcards, so if you can also change the line to lll -g -l {maxlinelength} ./*.go I'll merge it in.
|
Thanks! gometalinter explicitly uses That said, it looks like |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
walle
Feb 29, 2016
Contributor
No, it couldn't do that. But I have updated the project to support this, since it's a good feature.
Ok, I'll change this, should I squash my commits before you merge?
|
No, it couldn't do that. But I have updated the project to support this, since it's a good feature. Ok, I'll change this, should I squash my commits before you merge? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Perfect. Yes, please, squashing would be great. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Great, squashed them into dcbd029 |
added a commit
that referenced
this pull request
Feb 29, 2016
alecthomas
merged commit acda826
into
alecthomas:master
Feb 29, 2016
1 check passed
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Thanks! |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
alecthomas
Feb 29, 2016
Owner
FYI I've disabled it by default, as it's very chatty at 80 characters. It can be explicitly enabled with --enable=lll
|
FYI I've disabled it by default, as it's very chatty at 80 characters. It can be explicitly enabled with |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
walle
Feb 29, 2016
Contributor
Aha, ok. I saw that you added some documentation in the readme, I just realised that I had missed that, great.
|
Aha, ok. I saw that you added some documentation in the readme, I just realised that I had missed that, great. |
walle commentedFeb 28, 2016
This commit adds lll (Line Length Linter) (https://github.com/walle/lll)