diff options
-rw-r--r-- | fest-swing/BUILD | 1 | ||||
-rw-r--r-- | fest-swing/lint_baseline.xml | 301 |
2 files changed, 302 insertions, 0 deletions
diff --git a/fest-swing/BUILD b/fest-swing/BUILD index 03017b29..86bb65db 100644 --- a/fest-swing/BUILD +++ b/fest-swing/BUILD @@ -6,6 +6,7 @@ iml_module( srcs = ["src/main/java"], iml_files = ["fest-swing.iml"], javacopts = ["-XepAllErrorsAsWarnings"], + lint_baseline = "lint_baseline.xml", visibility = ["//visibility:public"], exports = ["//tools/swing-testing/fest-swing/lib:fest-reflect-2.0-SNAPSHOT"], # do not sort: must match IML order diff --git a/fest-swing/lint_baseline.xml b/fest-swing/lint_baseline.xml new file mode 100644 index 00000000..6d774bad --- /dev/null +++ b/fest-swing/lint_baseline.xml @@ -0,0 +1,301 @@ +<?xml version="1.0" encoding="UTF-8"?> +<issues format="6" by="lint 8.3.0-alpha14" type="baseline" client="" dependencies="true" name="" variant="all" version="8.3.0-alpha14"> + + <issue + id="DefaultLocale" + message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" + errorLine1=" return String.format("%s[value=%d]", getClass().getName(), value);" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="src/main/java/org/fest/swing/data/Index.java" + line="66" + column="12"/> + </issue> + + <issue + id="DefaultLocale" + message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" + errorLine1=" String msg = String.format("%s should be between [0] and [%d] (inclusive)", itemIndex(index), itemCount - 1);" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="src/main/java/org/fest/swing/driver/JComboBoxItemIndexPreconditions.java" + line="51" + column="18"/> + </issue> + + <issue + id="DefaultLocale" + message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" + errorLine1=" String msg = String.format(format, index, itemCount - 1);" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="src/main/java/org/fest/swing/driver/JListItemPreconditions.java" + line="53" + column="18"/> + </issue> + + <issue + id="DefaultLocale" + message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" + errorLine1=" String msg = String.format("Value <%d> should be between <[%d, %d]>", value, min, max);" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="src/main/java/org/fest/swing/driver/JProgressBarDriver.java" + line="182" + column="18"/> + </issue> + + <issue + id="DefaultLocale" + message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" + errorLine1=" return String.format("value of %s to be equal to %d", format(progressBar), expected);" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="src/main/java/org/fest/swing/driver/JProgressBarWaitUntilValueIsEqualToExpectedTask.java" + line="52" + column="16"/> + </issue> + + <issue + id="DefaultLocale" + message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" + errorLine1=" String msg = String.format("The number of times to %s should be greater than zero, but was <%d>", action, times);" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="src/main/java/org/fest/swing/driver/JScrollBarDriver.java" + line="191" + column="18"/> + </issue> + + <issue + id="DefaultLocale" + message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" + errorLine1=" String msg = String.format("Value <%d> is not within the JSlider bounds of <%d> and <%d>", value, min, max);" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="src/main/java/org/fest/swing/driver/JSliderDriver.java" + line="165" + column="18"/> + </issue> + + <issue + id="DefaultLocale" + message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" + errorLine1=" String msg = String.format("The number of times to %s should be greater than zero, but was <%d>", action, times);" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="src/main/java/org/fest/swing/driver/JSpinnerDriver.java" + line="159" + column="18"/> + </issue> + + <issue + id="DefaultLocale" + message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" + errorLine1=" return String.format(format, tabbedPane.getClass().getName(), quote(tabbedPane.getName())," + errorLine2=" ^"> + <location + file="src/main/java/org/fest/swing/format/JTabbedPaneFormatter.java" + line="44" + column="12"/> + </issue> + + <issue + id="DefaultLocale" + message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" + errorLine1=" String msg = String.format("The tab %d is not visible", index);" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="src/main/java/org/fest/swing/driver/JTabbedPaneLocation.java" + line="109" + column="20"/> + </issue> + + <issue + id="DefaultLocale" + message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" + errorLine1=" String msg = String.format(format, index, max);" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="src/main/java/org/fest/swing/driver/JTabbedPaneLocation.java" + line="123" + column="18"/> + </issue> + + <issue + id="DefaultLocale" + message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" + errorLine1=" String msg = String.format("Expecting cell [%d, %d] to be editable", row, column);" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="src/main/java/org/fest/swing/driver/JTableCellPreconditions.java" + line="49" + column="20"/> + </issue> + + <issue + id="DefaultLocale" + message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" + errorLine1=" String msg = String.format("%s <%d> should be between <0> and <%d>", indexName, index, itemCount - 1);" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="src/main/java/org/fest/swing/driver/JTableCellPreconditions.java" + line="143" + column="18"/> + </issue> + + <issue + id="DefaultLocale" + message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" + errorLine1=" return String.format(format, table.getClass().getName(), quote(table.getName()), table.getRowCount()," + errorLine2=" ^"> + <location + file="src/main/java/org/fest/swing/format/JTableFormatter.java" + line="41" + column="12"/> + </issue> + + <issue + id="DefaultLocale" + message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" + errorLine1=" String msg = String.format("Item index <%d> should be between <0> and <%d>", index, itemCount - 1);" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="src/main/java/org/fest/swing/driver/JTableHeaderLocation.java" + line="99" + column="18"/> + </issue> + + <issue + id="DefaultLocale" + message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" + errorLine1=" String msg = String.format(format, index, formatOriginOf(indexLocation), format(textBox));" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="src/main/java/org/fest/swing/driver/JTextComponentDriver.java" + line="261" + column="18"/> + </issue> + + <issue + id="DefaultLocale" + message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" + errorLine1=" String msg = String.format("Unable to get location for index <%d> in %s", index, format(textBox));" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="src/main/java/org/fest/swing/driver/JTextComponentDriver.java" + line="283" + column="18"/> + </issue> + + <issue + id="DefaultLocale" + message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" + errorLine1=" String msg = String.format(format, start, end, actualStart, actualEnd);" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="src/main/java/org/fest/swing/driver/JTextComponentDriver.java" + line="350" + column="18"/> + </issue> + + <issue + id="DefaultLocale" + message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" + errorLine1=" return String.format(format, tree.getClass().getName(), quote(tree.getName()), tree.getSelectionCount()," + errorLine2=" ^"> + <location + file="src/main/java/org/fest/swing/format/JTreeFormatter.java" + line="58" + column="12"/> + </issue> + + <issue + id="DefaultLocale" + message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" + errorLine1=" String msg = String.format("The given row <%d> should be between <0> and <%d>", row, rowCount);" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="src/main/java/org/fest/swing/driver/JTreeLocation.java" + line="114" + column="18"/> + </issue> + + <issue + id="DefaultLocale" + message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" + errorLine1=" return concat(String.format("%s[button=%s, times=%d]", getClass().getName(), button.toString(), times));" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="src/main/java/org/fest/swing/core/MouseClickInfo.java" + line="126" + column="19"/> + </issue> + + <issue + id="DefaultLocale" + message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" + errorLine1=" return String.format("[row=%d, column=%d]", row, column);" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="src/main/java/org/fest/swing/data/TableCell.java" + line="118" + column="12"/> + </issue> + + <issue + id="DefaultLocale" + message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" + errorLine1=" return String.format("%s[values=%s, column=%d]", getClass().getName(), format(values), column);" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="src/main/java/org/fest/swing/data/TableCellInRowByValue.java" + line="185" + column="12"/> + </issue> + + <issue + id="DefaultLocale" + message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" + errorLine1=" return String.format("%s[column=%d]", getClass().getName(), column);" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="src/main/java/org/fest/swing/data/TableCellInSelectedRow.java" + line="117" + column="12"/> + </issue> + + <issue + id="NoOp" + message="This call result is unused: isFile" + errorLine1=" assertThat(file).isFile();" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="src/main/java/org/fest/swing/keystroke/KeyStrokeMappingsParser.java" + line="148" + column="5"/> + </issue> + + <issue + id="VisibleForTests" + message="This method should only be accessed from tests or within private scope" + errorLine1=" location.checkIndexInBounds(tabbedPane, index);" + errorLine2=" ~~~~~~~~~~~~~~~~~~"> + <location + file="src/main/java/org/fest/swing/driver/JTabbedPaneDriver.java" + line="152" + column="18"/> + </issue> + + <issue + id="VisibleForTests" + message="This method should only be accessed from tests or within private scope" + errorLine1=" location.checkIndexInBounds(tabbedPane, index);" + errorLine2=" ~~~~~~~~~~~~~~~~~~"> + <location + file="src/main/java/org/fest/swing/driver/JTabbedPaneDriver.java" + line="190" + column="18"/> + </issue> + +</issues>
\ No newline at end of file |