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

[Closes #261] Options for max module line length #264

Merged
merged 1 commit into from
Aug 31, 2015

Conversation

jfacorro
Copy link
Contributor

@@ -394,14 +394,27 @@ dont_repeat_yourself(Config, Target, RuleConfig) ->
max_module_length(Config, Target, RuleConfig) ->
MaxLength = maps:get(max_length, RuleConfig, 500),
IgnoreModules = maps:get(ignore, RuleConfig, []),
CountComments = maps:get(count_comments, RuleConfig, false),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we make it work the other way around? like ignore_comments instead of count_comments?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried that first (actually with skip_*) but it is a lot more confusing for the user when setting a value for the options. count_* is an affirmation while ignore_* is a negation. What should ignore_comments do? Ignore them in the sense of counting them so they add up to the line count or ignore them in the sense of not counting them?

elbrujohalcon pushed a commit that referenced this pull request Aug 31, 2015
[Closes #261] Options for max module line length
@elbrujohalcon elbrujohalcon merged commit 61a0798 into master Aug 31, 2015
@jfacorro jfacorro deleted the jfacorro.261.max_module_length_opts branch August 31, 2015 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants