Skip to content
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

Fix PMD violations for ShortVariable rule #985

Closed
mkordas opened this issue Apr 24, 2015 · 6 comments
Closed

Fix PMD violations for ShortVariable rule #985

mkordas opened this issue Apr 24, 2015 · 6 comments
Assignees
Labels
Milestone

Comments

@mkordas
Copy link
Contributor

mkordas commented Apr 24, 2015

Follow-up to #982.

Violations:

com.puppycrawl.tools.checkstyle.CheckStyleTask:144 Rule:ShortVariable Priority:3 Avoid variables with short names like fS.
com.puppycrawl.tools.checkstyle.CheckStyleTask:296 Rule:ShortVariable Priority:3 Avoid variables with short names like c.
com.puppycrawl.tools.checkstyle.CheckStyleTask:321 Rule:ShortVariable Priority:3 Avoid variables with short names like ok.
com.puppycrawl.tools.checkstyle.CheckStyleTask:351 Rule:ShortVariable Priority:3 Avoid variables with short names like c.
com.puppycrawl.tools.checkstyle.CheckStyleTask:453 Rule:ShortVariable Priority:3 Avoid variables with short names like f.
com.puppycrawl.tools.checkstyle.CheckStyleTask:474 Rule:ShortVariable Priority:3 Avoid variables with short names like fs.
com.puppycrawl.tools.checkstyle.CheckStyleTask:475 Rule:ShortVariable Priority:3 Avoid variables with short names like ds.
com.puppycrawl.tools.checkstyle.CheckStyleTask$Formatter:539 Rule:ShortVariable Priority:3 Avoid variables with short names like to.
com.puppycrawl.tools.checkstyle.ConfigurationLoader:465 Rule:ShortVariable Priority:3 Avoid variables with short names like sb.
com.puppycrawl.tools.checkstyle.ConfigurationLoader:466 Rule:ShortVariable Priority:3 Avoid variables with short names like i.
com.puppycrawl.tools.checkstyle.ConfigurationLoader:467 Rule:ShortVariable Priority:3 Avoid variables with short names like j.
com.puppycrawl.tools.checkstyle.DefaultLogger:65 Rule:ShortVariable Priority:3 Avoid variables with short names like os.
com.puppycrawl.tools.checkstyle.DefaultLogger:114 Rule:ShortVariable Priority:3 Avoid variables with short names like sb.
com.puppycrawl.tools.checkstyle.Main:266 Rule:ShortVariable Priority:3 Avoid variables with short names like hf.
com.puppycrawl.tools.checkstyle.PropertyCacheFile:195 Rule:ShortVariable Priority:3 Avoid variables with short names like md.
com.puppycrawl.tools.checkstyle.TreeWalker:177 Rule:ShortVariable Priority:3 Avoid variables with short names like c.
com.puppycrawl.tools.checkstyle.TreeWalker:216 Rule:ShortVariable Priority:3 Avoid variables with short names like re.
com.puppycrawl.tools.checkstyle.TreeWalker:460 Rule:ShortVariable Priority:3 Avoid variables with short names like sr.
com.puppycrawl.tools.checkstyle.Utils:182 Rule:ShortVariable Priority:3 Avoid variables with short names like i.
com.puppycrawl.tools.checkstyle.XMLLogger:67 Rule:ShortVariable Priority:3 Avoid variables with short names like os.
com.puppycrawl.tools.checkstyle.XMLLogger:77 Rule:ShortVariable Priority:3 Avoid variables with short names like oS.
com.puppycrawl.tools.checkstyle.XMLLogger:155 Rule:ShortVariable Priority:3 Avoid variables with short names like sw.
com.puppycrawl.tools.checkstyle.XMLLogger:156 Rule:ShortVariable Priority:3 Avoid variables with short names like pw.
com.puppycrawl.tools.checkstyle.XMLLogger:173 Rule:ShortVariable Priority:3 Avoid variables with short names like sb.
com.puppycrawl.tools.checkstyle.XMLLogger:175 Rule:ShortVariable Priority:3 Avoid variables with short names like c.
com.puppycrawl.tools.checkstyle.api.AbstractLoader:123 Rule:ShortVariable Priority:3 Avoid variables with short names like ex.
com.puppycrawl.tools.checkstyle.api.AbstractLoader:129 Rule:ShortVariable Priority:3 Avoid variables with short names like ex.
com.puppycrawl.tools.checkstyle.api.AbstractLoader:135 Rule:ShortVariable Priority:3 Avoid variables with short names like ex.
com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter:37 Rule:ShortVariable Priority:3 Avoid variables with short names like id.
com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter:85 Rule:ShortVariable Priority:3 Avoid variables with short names like id.
com.puppycrawl.tools.checkstyle.api.AnnotationUtility:157 Rule:ShortVariable Priority:3 Avoid variables with short names like at.
com.puppycrawl.tools.checkstyle.api.AutomaticBean:139 Rule:ShortVariable Priority:3 Avoid variables with short names like pd.
com.puppycrawl.tools.checkstyle.api.AutomaticBean$RelaxedStringArrayConverter:267 Rule:ShortVariable Priority:3 Avoid variables with short names like st.
com.puppycrawl.tools.checkstyle.api.DetailAST:75 Rule:ShortVariable Priority:3 Avoid variables with short names like da.
com.puppycrawl.tools.checkstyle.api.FileContents:144 Rule:ShortVariable Priority:3 Avoid variables with short names like cc.
com.puppycrawl.tools.checkstyle.api.FileText:157 Rule:ShortVariable Priority:3 Avoid variables with short names like br.
com.puppycrawl.tools.checkstyle.api.FileText:160 Rule:ShortVariable Priority:3 Avoid variables with short names like l.
com.puppycrawl.tools.checkstyle.api.FullIdent:111 Rule:ShortVariable Priority:3 Avoid variables with short names like fi.
com.puppycrawl.tools.checkstyle.api.JavadocTokenTypes:1250 Rule:ShortVariable Priority:3 Avoid variables with short names like LI.
com.puppycrawl.tools.checkstyle.api.JavadocTokenTypes:1255 Rule:ShortVariable Priority:3 Avoid variables with short names like TR.
com.puppycrawl.tools.checkstyle.api.JavadocTokenTypes:1260 Rule:ShortVariable Priority:3 Avoid variables with short names like TD.
com.puppycrawl.tools.checkstyle.api.JavadocTokenTypes:1265 Rule:ShortVariable Priority:3 Avoid variables with short names like TH.
com.puppycrawl.tools.checkstyle.api.JavadocTokenTypes:1280 Rule:ShortVariable Priority:3 Avoid variables with short names like DD.
com.puppycrawl.tools.checkstyle.api.JavadocTokenTypes:1285 Rule:ShortVariable Priority:3 Avoid variables with short names like DT.
com.puppycrawl.tools.checkstyle.api.JavadocTokenTypes:1381 Rule:ShortVariable Priority:3 Avoid variables with short names like WS.
com.puppycrawl.tools.checkstyle.api.TokenTypes:2321 Rule:ShortVariable Priority:3 Avoid variables with short names like LT.
com.puppycrawl.tools.checkstyle.api.TokenTypes:2327 Rule:ShortVariable Priority:3 Avoid variables with short names like GT.
com.puppycrawl.tools.checkstyle.api.TokenTypes:2333 Rule:ShortVariable Priority:3 Avoid variables with short names like LE.
com.puppycrawl.tools.checkstyle.api.TokenTypes:2339 Rule:ShortVariable Priority:3 Avoid variables with short names like GE.
com.puppycrawl.tools.checkstyle.api.TokenTypes:2366 Rule:ShortVariable Priority:3 Avoid variables with short names like SL.
com.puppycrawl.tools.checkstyle.api.TokenTypes:2375 Rule:ShortVariable Priority:3 Avoid variables with short names like SR.
com.puppycrawl.tools.checkstyle.api.TokenTypes:3401 Rule:ShortVariable Priority:3 Avoid variables with short names like AT.
com.puppycrawl.tools.checkstyle.api.TokenTypes:3540 Rule:ShortVariable Priority:3 Avoid variables with short names like iD.
com.puppycrawl.tools.checkstyle.api.TokenTypes:3559 Rule:ShortVariable Priority:3 Avoid variables with short names like id.
com.puppycrawl.tools.checkstyle.checks.AbstractTypeAwareCheck:356 Rule:ShortVariable Priority:3 Avoid variables with short names like ci.
com.puppycrawl.tools.checkstyle.checks.AbstractTypeAwareCheck:395 Rule:ShortVariable Priority:3 Avoid variables with short names like ci.
com.puppycrawl.tools.checkstyle.checks.AbstractTypeAwareCheck:409 Rule:ShortVariable Priority:3 Avoid variables with short names like ci.
com.puppycrawl.tools.checkstyle.checks.DescendantTokenCheck:311 Rule:ShortVariable Priority:3 Avoid variables with short names like i.
com\puppycrawl\tools\checkstyle\checks\LineSeparatorOption.java:60 Rule:ShortVariable Priority:3 Avoid variables with short names like s.
com.puppycrawl.tools.checkstyle.checks.TranslationCheck:200 Rule:ShortVariable Priority:3 Avoid variables with short names like e.
com.puppycrawl.tools.checkstyle.checks.TranslationCheck:219 Rule:ShortVariable Priority:3 Avoid variables with short names like ex.
com.puppycrawl.tools.checkstyle.checks.coding.IllegalTokenCheck:81 Rule:ShortVariable Priority:3 Avoid variables with short names like i.
com.puppycrawl.tools.checkstyle.checks.coding.IllegalTokenTextCheck:93 Rule:ShortVariable Priority:3 Avoid variables with short names like i.
com.puppycrawl.tools.checkstyle.checks.coding.UnnecessaryParenthesesCheck:314 Rule:ShortVariable Priority:3 Avoid variables with short names like n1.
com.puppycrawl.tools.checkstyle.checks.coding.UnnecessaryParenthesesCheck:315 Rule:ShortVariable Priority:3 Avoid variables with short names like nn.
com.puppycrawl.tools.checkstyle.checks.design.VisibilityModifierCheck:796 Rule:ShortVariable Priority:3 Avoid variables with short names like at.
com.puppycrawl.tools.checkstyle.checks.header.AbstractHeaderCheck:217 Rule:ShortVariable Priority:3 Avoid variables with short names like l.
com.puppycrawl.tools.checkstyle.checks.header.RegexpHeaderCheck:81 Rule:ShortVariable Priority:3 Avoid variables with short names like i.
com.puppycrawl.tools.checkstyle.checks.imports.ImportControlLoader:105 Rule:ShortVariable Priority:3 Avoid variables with short names like g.
com.puppycrawl.tools.checkstyle.checks.imports.ImportControlLoader:118 Rule:ShortVariable Priority:3 Avoid variables with short names like pc.
com.puppycrawl.tools.checkstyle.checks.imports.ImportControlLoader:141 Rule:ShortVariable Priority:3 Avoid variables with short names like is.
com.puppycrawl.tools.checkstyle.checks.indentation.ExpressionHandler:388 Rule:ShortVariable Priority:3 Avoid variables with short names like c.
com.puppycrawl.tools.checkstyle.checks.indentation.IndentLevel:130 Rule:ShortVariable Priority:3 Avoid variables with short names like sb.
com.puppycrawl.tools.checkstyle.checks.indentation.MethodCallHandler:76 Rule:ShortVariable Priority:3 Avoid variables with short names like p.
com.puppycrawl.tools.checkstyle.checks.javadoc.AbstractJavadocCheck:195 Rule:ShortVariable Priority:3 Avoid variables with short names like ps.
com.puppycrawl.tools.checkstyle.checks.javadoc.AbstractJavadocCheck:485 Rule:ShortVariable Priority:3 Avoid variables with short names like in.
com.puppycrawl.tools.checkstyle.checks.javadoc.AbstractJavadocCheck$DescriptiveErrorListener:635 Rule:ShortVariable Priority:3 Avoid variables with short names like ex.
com.puppycrawl.tools.checkstyle.checks.javadoc.HtmlTag:32 Rule:ShortVariable Priority:3 Avoid variables with short names like id.
com.puppycrawl.tools.checkstyle.checks.javadoc.HtmlTag:58 Rule:ShortVariable Priority:3 Avoid variables with short names like id.
com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck:512 Rule:ShortVariable Priority:3 Avoid variables with short names like it.
com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck:530 Rule:ShortVariable Priority:3 Avoid variables with short names like jt.
com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck:630 Rule:ShortVariable Priority:3 Avoid variables with short names like p1.
com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck:631 Rule:ShortVariable Priority:3 Avoid variables with short names like p2.
com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck:658 Rule:ShortVariable Priority:3 Avoid variables with short names like p1.
com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck:727 Rule:ShortVariable Priority:3 Avoid variables with short names like fi.
com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck:728 Rule:ShortVariable Priority:3 Avoid variables with short names like ei.
com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck:854 Rule:ShortVariable Priority:3 Avoid variables with short names like it.
com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck:856 Rule:ShortVariable Priority:3 Avoid variables with short names like jt.
com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck:910 Rule:ShortVariable Priority:3 Avoid variables with short names like ei.
com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck:924 Rule:ShortVariable Priority:3 Avoid variables with short names like ei.
com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck:957 Rule:ShortVariable Priority:3 Avoid variables with short names like fi.
com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocUtils:113 Rule:ShortVariable Priority:3 Avoid variables with short names like s.
com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocUtils:358 Rule:ShortVariable Priority:3 Avoid variables with short names like iD.
com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocUtils:381 Rule:ShortVariable Priority:3 Avoid variables with short names like id.
com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser:209 Rule:ShortVariable Priority:3 Avoid variables with short names like to.
com.puppycrawl.tools.checkstyle.checks.javadoc.WriteTagCheck:198 Rule:ShortVariable Priority:3 Avoid variables with short names like s.
com.puppycrawl.tools.checkstyle.checks.metrics.AbstractComplexityCheck:162 Rule:ShortVariable Priority:3 Avoid variables with short names like by.
com.puppycrawl.tools.checkstyle.checks.modifier.ModifierOrderCheck:142 Rule:ShortVariable Priority:3 Avoid variables with short names like i.
com.puppycrawl.tools.checkstyle.checks.modifier.ModifierOrderCheck:144 Rule:ShortVariable Priority:3 Avoid variables with short names like it.
com.puppycrawl.tools.checkstyle.checks.sizes.OuterTypeNumberCheck:93 Rule:ShortVariable Priority:3 Avoid variables with short names like to.
com.puppycrawl.tools.checkstyle.doclets.TokenTypesDoclet:64 Rule:ShortVariable Priority:3 Avoid variables with short names like ps.
com.puppycrawl.tools.checkstyle.filters.SuppressionCommentFilter$Tag:83 Rule:ShortVariable Priority:3 Avoid variables with short names like on.
com.puppycrawl.tools.checkstyle.filters.SuppressionCommentFilter$Tag:100 Rule:ShortVariable Priority:3 Avoid variables with short names like on.
com.puppycrawl.tools.checkstyle.filters.SuppressionCommentFilter:502 Rule:ShortVariable Priority:3 Avoid variables with short names like on.
com.puppycrawl.tools.checkstyle.gui.AbstractCellEditor:92 Rule:ShortVariable Priority:3 Avoid variables with short names like e.
com.puppycrawl.tools.checkstyle.gui.AbstractCellEditor:119 Rule:ShortVariable Priority:3 Avoid variables with short names like l.
com.puppycrawl.tools.checkstyle.gui.AbstractCellEditor:126 Rule:ShortVariable Priority:3 Avoid variables with short names like l.
com.puppycrawl.tools.checkstyle.gui.AbstractTreeTableModel:119 Rule:ShortVariable Priority:3 Avoid variables with short names like l.
com.puppycrawl.tools.checkstyle.gui.AbstractTreeTableModel:125 Rule:ShortVariable Priority:3 Avoid variables with short names like l.
com.puppycrawl.tools.checkstyle.gui.AbstractTreeTableModel:143 Rule:ShortVariable Priority:3 Avoid variables with short names like e.
com.puppycrawl.tools.checkstyle.gui.AbstractTreeTableModel:171 Rule:ShortVariable Priority:3 Avoid variables with short names like e.
com.puppycrawl.tools.checkstyle.gui.AbstractTreeTableModel:199 Rule:ShortVariable Priority:3 Avoid variables with short names like e.
com.puppycrawl.tools.checkstyle.gui.AbstractTreeTableModel:227 Rule:ShortVariable Priority:3 Avoid variables with short names like e.
com.puppycrawl.tools.checkstyle.gui.FileDrop:96 Rule:ShortVariable Priority:3 Avoid variables with short names like c.
com.puppycrawl.tools.checkstyle.gui.FileDrop:121 Rule:ShortVariable Priority:3 Avoid variables with short names like c.
com.puppycrawl.tools.checkstyle.gui.FileDrop:132 Rule:ShortVariable Priority:3 Avoid variables with short names like c.
com.puppycrawl.tools.checkstyle.gui.FileDrop:136 Rule:ShortVariable Priority:3 Avoid variables with short names like dt.
com.puppycrawl.tools.checkstyle.gui.FileDrop:173 Rule:ShortVariable Priority:3 Avoid variables with short names like ok.
com.puppycrawl.tools.checkstyle.gui.FileDrop:177 Rule:ShortVariable Priority:3 Avoid variables with short names like i.
com.puppycrawl.tools.checkstyle.gui.FileDrop:199 Rule:ShortVariable Priority:3 Avoid variables with short names like c.
com.puppycrawl.tools.checkstyle.gui.FileDrop:214 Rule:ShortVariable Priority:3 Avoid variables with short names like c.
com.puppycrawl.tools.checkstyle.gui.FileDrop$FileDropTargetListener:263 Rule:ShortVariable Priority:3 Avoid variables with short names like jc.
com.puppycrawl.tools.checkstyle.gui.FileDrop$FileDropTargetListener:279 Rule:ShortVariable Priority:3 Avoid variables with short names like tr.
com.puppycrawl.tools.checkstyle.gui.FileDrop$FileDropTargetListener:304 Rule:ShortVariable Priority:3 Avoid variables with short names like jc.
com.puppycrawl.tools.checkstyle.gui.FileDrop$FileDropTargetListener:314 Rule:ShortVariable Priority:3 Avoid variables with short names like jc.
com.puppycrawl.tools.checkstyle.gui.JTreeTable:152 Rule:ShortVariable Priority:3 Avoid variables with short names like e.
com.puppycrawl.tools.checkstyle.gui.JTreeTable$TreeTableCellRenderer:288 Rule:ShortVariable Priority:3 Avoid variables with short names like h.
com.puppycrawl.tools.checkstyle.gui.JTreeTable$TreeTableCellRenderer:288 Rule:ShortVariable Priority:3 Avoid variables with short names like w.
com.puppycrawl.tools.checkstyle.gui.JTreeTable$TreeTableCellRenderer:288 Rule:ShortVariable Priority:3 Avoid variables with short names like x.
com.puppycrawl.tools.checkstyle.gui.JTreeTable$TreeTableCellRenderer:288 Rule:ShortVariable Priority:3 Avoid variables with short names like y.
com.puppycrawl.tools.checkstyle.gui.JTreeTable$TreeTableCellRenderer:298 Rule:ShortVariable Priority:3 Avoid variables with short names like g.
com.puppycrawl.tools.checkstyle.gui.JTreeTable$TreeTableCellEditor:338 Rule:ShortVariable Priority:3 Avoid variables with short names like c.
com.puppycrawl.tools.checkstyle.gui.JTreeTable$TreeTableCellEditor:338 Rule:ShortVariable Priority:3 Avoid variables with short names like r.
com.puppycrawl.tools.checkstyle.gui.JTreeTable$TreeTableCellEditor:364 Rule:ShortVariable Priority:3 Avoid variables with short names like e.
com.puppycrawl.tools.checkstyle.gui.JTreeTable$TreeTableCellEditor:370 Rule:ShortVariable Priority:3 Avoid variables with short names like me.
com.puppycrawl.tools.checkstyle.gui.JTreeTable$ListToTreeSelectionModelWrapper$ListSelectionHandler:493 Rule:ShortVariable Priority:3 Avoid variables with short names like e.
com.puppycrawl.tools.checkstyle.gui.Main:47 Rule:ShortVariable Priority:3 Avoid variables with short names like f.
com.puppycrawl.tools.checkstyle.gui.ParseTreeInfoPanel$JavaFileFilter:73 Rule:ShortVariable Priority:3 Avoid variables with short names like f.
com.puppycrawl.tools.checkstyle.gui.ParseTreeInfoPanel$FileSelectionAction:122 Rule:ShortVariable Priority:3 Avoid variables with short names like e.
com.puppycrawl.tools.checkstyle.gui.ParseTreeInfoPanel$FileSelectionAction:124 Rule:ShortVariable Priority:3 Avoid variables with short names like fc.
com.puppycrawl.tools.checkstyle.gui.ParseTreeInfoPanel$ReloadAction:150 Rule:ShortVariable Priority:3 Avoid variables with short names like e.
com.puppycrawl.tools.checkstyle.gui.ParseTreeInfoPanel:277 Rule:ShortVariable Priority:3 Avoid variables with short names like sp.
com.puppycrawl.tools.checkstyle.gui.ParseTreeInfoPanel:295 Rule:ShortVariable Priority:3 Avoid variables with short names like p.
com.puppycrawl.tools.checkstyle.gui.ParseTreeModel:121 Rule:ShortVariable Priority:3 Avoid variables with short names like i.
com.puppycrawl.tools.checkstyle.gui.TreeTableModelAdapter:119 Rule:ShortVariable Priority:3 Avoid variables with short names like e.
com.puppycrawl.tools.checkstyle.gui.TreeTableModelAdapter:125 Rule:ShortVariable Priority:3 Avoid variables with short names like e.
com.puppycrawl.tools.checkstyle.gui.TreeTableModelAdapter:131 Rule:ShortVariable Priority:3 Avoid variables with short names like e.
com.puppycrawl.tools.checkstyle.gui.TreeTableModelAdapter:137 Rule:ShortVariable Priority:3 Avoid variables with short names like e.
@romani
Copy link
Member

romani commented Apr 26, 2015

I am not sure that we need to change variables like GT, ...

@mkordas
Copy link
Contributor Author

mkordas commented Apr 26, 2015

Of course short-named public variables from api package need to be suppressed for now.

Maybe GT is fine, but I would have no idea what does e.g. SR (shift right) mean without looking into documentation. SHIFT_RIGHT would be much better.

@romani
Copy link
Member

romani commented Apr 26, 2015

I am agree on SR.

@romani
Copy link
Member

romani commented Oct 7, 2015

@mkordas ,

Please share your thought on naming of following problematic variables: ex, sb, it, id
They are pretty well spread.

Should we stay with minimum size 2 or 3 ?

--- maven-pmd-plugin:3.5:check (default-cli) @ checkstyle --- Rule:ShortVariable Priority:3

.ConfigurationLoader:277  Avoid variables with short names like sb.
.DefaultLogger:132  Avoid variables with short names like sb.
.XMLLogger:153  Avoid variables with short names like sb.
.api.AbstractViolationReporter:37  Avoid variables with short names like id.
.api.AbstractViolationReporter:81  Avoid variables with short names like id.
.api.JavadocTokenTypes:1359  Avoid variables with short names like LI.
.api.JavadocTokenTypes:1368  Avoid variables with short names like TR.
.api.JavadocTokenTypes:1377  Avoid variables with short names like TD.
.api.JavadocTokenTypes:1386  Avoid variables with short names like TH.
.api.JavadocTokenTypes:1415  Avoid variables with short names like DD.
.api.JavadocTokenTypes:1424  Avoid variables with short names like DT.
.api.JavadocTokenTypes:1607  Avoid variables with short names like WS.
.api.TokenTypes:2270  Avoid variables with short names like LT.
.api.TokenTypes:2276  Avoid variables with short names like GT.
.api.TokenTypes:2282  Avoid variables with short names like LE.
.api.TokenTypes:2288  Avoid variables with short names like GE.
.api.TokenTypes:2315  Avoid variables with short names like SL.
.api.TokenTypes:2324  Avoid variables with short names like SR.
.api.TokenTypes:3290  Avoid variables with short names like AT.
.checks.TranslationCheck:406  Avoid variables with short names like ex.
.checks.indentation.IndentLevel:120  Avoid variables with short names like sb.
.checks.javadoc.HtmlTag:32  Avoid variables with short names like id.
.checks.javadoc.HtmlTag:58  Avoid variables with short names like id.
.checks.javadoc.JavadocMethodCheck:484  Avoid variables with short names like it.
.checks.javadoc.JavadocMethodCheck:844  Avoid variables with short names like it.
.gui.TreeTableCellRenderer:100  Avoid variables with short names like h.
.gui.TreeTableCellRenderer:100  Avoid variables with short names like w.
.gui.TreeTableCellRenderer:100  Avoid variables with short names like x.
.gui.TreeTableCellRenderer:100  Avoid variables with short names like y.
.utils.JavadocUtils:378  Avoid variables with short names like id.
.utils.JavadocUtils:399  Avoid variables with short names like id.
.utils.TokenUtils:121  Avoid variables with short names like id.
.utils.TokenUtils:138  Avoid variables with short names like id.

@romani romani self-assigned this Oct 7, 2015
romani added a commit that referenced this issue Oct 7, 2015
@romani
Copy link
Member

romani commented Oct 7, 2015

http://checkstyle.sourceforge.net/config_naming.html#LocalVariableName should be reconfigured to catch variables who are less then min size (in default form it allow one-char variables).

@romani
Copy link
Member

romani commented Oct 9, 2015

I mark issue as resolved, for now we have limit 2 for names , discussion for #985 (comment) could be continued in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants