-
Notifications
You must be signed in to change notification settings - Fork 145
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
Contributing (existing) slf4j Logger Checks #457
Comments
Yes, but only if idea is not so specific and are not false-positive prone.
As usually: open issue with all details, let me review it and confirm. Raise a PR, pass code review, provide testing. Done :) .
code review, test reports the same as in checkstyle project. One day all such Checks (after testing period) will be ported to checkstyle .
sevntu-checkstyle is official sandbox project to let people implement Checks and test them on real code for some time before introducing it to main project and and get storm of issue. |
@romani would you like to have a first round high-level review look at master...vorburger:issue457_slf4jLoggerChecks now? It still has a number of violations of sevntu's own Checkstyle rules, notably missing JavaDoc etc. but I'd be interested in first basic "worth pursuing" kind of thumbs up from you, before sinking more time into polishing this and raising a PR - maybe you / someone would therefore like to have a look over this already? |
This will be required to migrate this code upstream, see sevntu-checkstyle/sevntu.checkstyle#457, so might as well already do this better here, for now. Change-Id: Ic5e90867353b5239a0d6a768e889b75190d33305 Signed-off-by: Michael Vorburger <[email protected]>
Project: yangtools master 9285869ac3b372747a4e36c2783af2da59651254 Avoid catch (NullPointerException e), do explicit if == null This will be required to migrate this code upstream, see sevntu-checkstyle/sevntu.checkstyle#457, so might as well already do this better here, for now. Change-Id: Ic5e90867353b5239a0d6a768e889b75190d33305 Signed-off-by: Michael Vorburger <[email protected]>
@vorburger , please create separate issue for each Check you are going to implement and lets discuss its reason and examples of code it will violate (beware that Checkstyle has limitation, not everything is possible to Check). |
New Checks for validating correctness of SLF4J logging API usage
@romani sure, let's take this step by step ... would you like to have a first round high-level review look at master...vorburger:issue457a_LoggerDeclarationsCountCheck it still has a number of violations due to missing JavaDoc etc. but I'd be interested in first basic "worth pursuing" kind of thumbs up from you, before sinking more time into polishing this and raising a first of a series of PR - maybe you / someone would therefore like to have a look over this already? Thanks. |
@vorburger , thanks a for a code but trust my experience in Checks creation.
|
@vorburger I found this issue while googling for slf4j checkstyle checks Wanted to check for
which is your case "Log message contains string concatenation". I absolutely like the other cases, too. I hope, there could be activity again. |
Hello, as per https://lists.opendaylight.org/pipermail/yangtools-dev/2016-May/001391.html, we would be interested in contributing https://git.opendaylight.org/gerrit/gitweb?p=yangtools.git;a=tree;f=common/checkstyle-logging/src/main/java/org/opendaylight/yangtools/checkstyle;hb=HEAD.
This is a collection of individual new Checkstyle Checks related to slf4j logging, helping with enforcement of anti patterns such as:
Q1: Would you welcome this contribution?
Q2: How do we go about this, concretely? Just raise a Pull Request? Do you have any particular "process" ? Any special "quality requirements" ;-) beyond test coverage which we already have
Q3: One of our motivations to contribute this is to avoid having to write/build/distribute a custom Eclipse plugin just for these few Checks. Once this is contributed, would we have to do anything special to get these checks into the sevntu.checkstyle Eclipse plugin, or would you be able to help with that?
Thanks.
The text was updated successfully, but these errors were encountered: