-
Notifications
You must be signed in to change notification settings - Fork 8
Use ruleset.xml by default if present #18
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
Conversation
src/Config.groovy
Outdated
@@ -34,6 +34,11 @@ class Config { | |||
} | |||
} | |||
|
|||
def prjRulesByConvention = new File(appContext.codeFolder, "ruleset.xml") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is prj
an abbreviation for project
? Is it a common one in Groovy? If not, I'd suggest using the full word instead.
test/ConfigTest.groovy
Outdated
|
||
@Test | ||
public void honorPresentRules() { | ||
def config = new Config([configFile: "/usr/src/app/fixtures/config.json", codeFolder: "/usr/src/app/fixtures/honor"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does the name /honor
mean in the path? Is this a fixture directory just for this test?
If yes, I might suggest something more explicit like /ruleset_default
, and maybe moving specified_rules.xml
and config.rule.json
to something like /ruleset_specified
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@toddmazierski Re-structured fixture
directory. Do you mind giving another shot?
@toddmazierski I liked your suggestion about the
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rock on. Thanks for considering those suggestions. 🚀
No description provided.