-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Refine checkstyle rules #6283
Refine checkstyle rules #6283
Conversation
- Add (and apply) checkstyle rules for - correct spacing (especalliy // space-after-comment-marker) - } else if { (<-- in one line) - no two empty lines - @Deprecation JavaDoc - some coding practices - Fix HTML syntax of JavaDoc comments - Remove CSS class comment syntax in IconTheme class - Remove deprecated method BibEntry#getCiteKey()
464f044
to
f4b8e7b
Compare
@@ -192,71 +192,71 @@ public static URL getIconUrl(String name) { | |||
RANK3(MaterialDesignIcon.STAR, MaterialDesignIcon.STAR, MaterialDesignIcon.STAR, MaterialDesignIcon.STAR_OUTLINE, MaterialDesignIcon.STAR_OUTLINE), | |||
RANK4(MaterialDesignIcon.STAR, MaterialDesignIcon.STAR, MaterialDesignIcon.STAR, MaterialDesignIcon.STAR, MaterialDesignIcon.STAR_OUTLINE), | |||
RANK5(MaterialDesignIcon.STAR, MaterialDesignIcon.STAR, MaterialDesignIcon.STAR, MaterialDesignIcon.STAR, MaterialDesignIcon.STAR), | |||
WWW(MaterialDesignIcon.WEB) /*css: web*/, |
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.
I fear removing this comments is a bad idea
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.
The comments in this source file were the always (!) the same as the reference to the icon. I see no reason why we should duplicate constant names.
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.
In case you can explain to me the sence of these comments, I can re-add them. All of them formatted the same way. I have the regexp ready.
I sat side-by-side by @matthiasgeiger when he worked on the icons at JabCon 2017. I think, they had to be used at that time when constants in the library were missing (and we had to adress the icon names by numbers (!)). Today, I see no reason to have them here.
44b0cd1
to
c08b1a0
Compare
4728902faa Create wiley-was.csl (#6283) 5853909f89 Create journal-of-human-nutrition-and-dietetics.csl (#6311) 286a3606c1 Create stanovnistvo.csl (#6431) 22a7139dc5 Update zitierguide-leitfaden-zum-fachgerechten-zitieren-in-rechtswiss… (#6489) e51e9363ee Update netherlands-journal-of-geosciences-geologie-en-mijnbouw.csl (#6493) 4e1a69231c Add Bristol UP dependents (auto-generated) (#6494) c9021437a4 Create microbiome-research-reports.csl (#6371) f71e516dda Update harvard-anglia-ruskin-university.csl (#6365) c187663e75 Create publicatiewijzer.csl (#6316) git-subtree-dir: buildres/csl/csl-styles git-subtree-split: 4728902faa1ef43c0d89366c77b7ea8f46c6730f
I was a bit annoyed that I had to comment on code style at code reviews. Bots should take care of this.
Formatting
NOT
Comments
// text
NOT
//text
Spacing
NOT
In other words
Could not fix all my issues (refs sevntu-checkstyle/sevntu.checkstyle#457), but I thought, I should push this intermediate result to move on and to reduce our reviewing load.