-
Notifications
You must be signed in to change notification settings - Fork 581
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
GitCommitBear: Create a ruleset called 'coala' that all coala repos can enable #1453
Comments
Do you mean a setting like |
hm this is coala specific, not sure we want to bother users with it. Maybe we should generally think about such a ruleset-concept which can be enabled differently? |
(especially something like |
@jayvdb @Makman2
If it's coala-specific, we already have it in some section in our .coafile. I can't understand why would we need to enable it differently. Or is the issue about adding functionality to define rulesets (combination of settings for a bear) and letting anyone use them.
|
I think I meant this. I remember that adding a setting to I'm not sure what's the best approach to rulesets currently, so @satwikkansal feel free to try different possibilities and post them here ;) |
So, I think instead of defining the ruleset in the bear's implementation or The ruleset might be defined in a special file-format like [commit]
ruleset = ../rulesets/GitcommitBearRuleset
bears = GitCommitBear |
Ya, creating a set of commit styles (rulesets), like inline documentation styles The problem is that the style varies too much between projects, and all the implementation is in the bears repo, so I think this should remain in the bears repo. In that way it differs from language and documentation styles, for which there is a very strong incentive to use standards. Commit style standards are a long way behind in terms of acceptance. We don't want to be releasing new versions of Long term, after the feature set of commit styles has stablised, we might have a separate repo for rulesets, and the bear fetches a ruleset if the requested one doesnt exist. Single repo projects can define their style in the It should be possible to do:
And that leads me to describe a more generic solution for this: coala/coala#4072 |
Maybe we should also allow to combine rulesets, so we have a single
|
Combining rules sounds like a good idea (but can be split into another issue imo). I think starting steps for this may be:
Also, not sure whether the
|
That's the question whether they should be specific. As there are rules that span multiple languages. Consider e.g. |
IMO the |
Yeah right aspects would solve this a bit, still there are rulesets which will span multiple bears and their settings. |
Nod. So if the approach described in #1453 (comment) seems okay, shall I create a corresponding issue in coala core and start working on it. PS: I don't exactly know the process of dealing with "status/needs design" labeled issues. |
Opened via gitter by @jayvdb
The text was updated successfully, but these errors were encountered: