Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Allow rules string as a configuration alternative#19

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
filipesperandio merged 6 commits intomasterfromfe/rules2
Sep 25, 2017

Conversation

filipesperandio
Copy link
Contributor

@filipesperandiofilipesperandio commentedSep 25, 2017
edited
Loading

pmd:  enabled: true  config:    rules:      - "java-basic"      - "java-design"

"enabled": true,
"channel": "beta",
"config": {
"rules": "java-basic,java-design"

Choose a reason for hiding this comment

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

Is there a reason why this isn't an array (instead of a string with a comma-separated list)?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Because I am stupid I guess... =/

Choose a reason for hiding this comment

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

Ha, no way! 😛

Just a suggestion to simplify parsing. 😄

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Actually we just forward the entire thing, I think that was the reason I didn't bother to split, but I makes more sense from ayml perspective to have it as an array.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

@toddmazierski Adjusted.

@Test
public void acceptRulesSimpleNames() {
def config = new Config([configFile: "/usr/src/app/fixtures/rules/config.json", codeFolder: "/usr/src/app/fixtures/rules"])
assertEquals "java-basic,java-design", config.ruleSet()

Choose a reason for hiding this comment

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

Should this assertion be adjusted?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

That's the argument for the command line, should still be a single string.

Choose a reason for hiding this comment

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

Oh, my mistake.

Shouldconfig.mix.json still contain a comma-separated string, though?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Does not impact, but it should be adjusted. 👍

Copy link

@toddmazierskitoddmazierski left a comment

Choose a reason for hiding this comment

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

🚢

@filipesperandiofilipesperandio merged commita427807 intomasterSep 25, 2017
@filipesperandiofilipesperandio deleted the fe/rules2 branchSeptember 25, 2017 21:04
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@toddmazierskitoddmazierskitoddmazierski approved these changes

Assignees

@ale7714ale7714

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@filipesperandio@toddmazierski@ale7714

[8]ページ先頭

©2009-2025 Movatter.jp