Skip to content

Commit 02ebeee

Browse files
committed
Regenerate lint baseline: 1869 to 523 warnings (72% reduction).
1 parent 458d0aa commit 02ebeee

1 file changed

Lines changed: 10 additions & 175 deletions

File tree

BTLib/lint-baseline.xml

Lines changed: 10 additions & 175 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@
182182
errorLine2="~~">
183183
<location
184184
file="src/com/offsetnull/bt/launcher/Launcher.java"
185-
line="1255"
185+
line="1254"
186186
column="1"/>
187187
<location
188188
file="src/com/offsetnull/bt/launcher/Launcher.java"
189-
line="1251"
189+
line="1250"
190190
column="1"
191191
message="Previous line indentation here"/>
192192
</issue>
@@ -198,11 +198,11 @@
198198
errorLine2="~~">
199199
<location
200200
file="src/com/offsetnull/bt/window/MainWindow.java"
201-
line="559"
201+
line="558"
202202
column="1"/>
203203
<location
204204
file="src/com/offsetnull/bt/window/MainWindow.java"
205-
line="525"
205+
line="524"
206206
column="1"
207207
message="Previous line indentation here"/>
208208
</issue>
@@ -3494,7 +3494,7 @@
34943494
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~">
34953495
<location
34963496
file="src/com/offsetnull/bt/window/MainWindow.java"
3497-
line="1562"
3497+
line="1561"
34983498
column="155"/>
34993499
</issue>
35003500

@@ -3505,7 +3505,7 @@
35053505
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~">
35063506
<location
35073507
file="src/com/offsetnull/bt/window/MainWindow.java"
3508-
line="1563"
3508+
line="1562"
35093509
column="162"/>
35103510
</issue>
35113511

@@ -3516,7 +3516,7 @@
35163516
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~">
35173517
<location
35183518
file="src/com/offsetnull/bt/window/MainWindow.java"
3519-
line="1564"
3519+
line="1563"
35203520
column="158"/>
35213521
</issue>
35223522

@@ -3527,7 +3527,7 @@
35273527
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~">
35283528
<location
35293529
file="src/com/offsetnull/bt/window/MainWindow.java"
3530-
line="1565"
3530+
line="1564"
35313531
column="160"/>
35323532
</issue>
35333533

@@ -4429,7 +4429,7 @@
44294429
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
44304430
<location
44314431
file="src/com/offsetnull/bt/window/MainWindow.java"
4432-
line="846"
4432+
line="845"
44334433
column="3"/>
44344434
</issue>
44354435

@@ -5544,171 +5544,6 @@
55445544
column="8"/>
55455545
</issue>
55465546

5547-
<issue
5548-
id="SetTextI18n"
5549-
message="Do not concatenate text displayed with `setText`. Use resource string with placeholders."
5550-
errorLine1=" title.setText(Environment.getExternalStorageDirectory().getPath() + &quot;/BlowTorch/plugins&quot;);"
5551-
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
5552-
<location
5553-
file="src/com/offsetnull/bt/window/PluginSelectorDialog.java"
5554-
line="94"
5555-
column="17"/>
5556-
</issue>
5557-
5558-
<issue
5559-
id="SetTextI18n"
5560-
message="String literal in `setText` can not be translated. Use Android resources instead."
5561-
errorLine1=" title.setText(Environment.getExternalStorageDirectory().getPath() + &quot;/BlowTorch/plugins&quot;);"
5562-
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
5563-
<location
5564-
file="src/com/offsetnull/bt/window/PluginSelectorDialog.java"
5565-
line="94"
5566-
column="71"/>
5567-
</issue>
5568-
5569-
<issue
5570-
id="SetTextI18n"
5571-
message="String literal in `setText` can not be translated. Use Android resources instead."
5572-
errorLine1=" ((TextView)findViewById(R.id.titlebar)).setText(&quot;REPLACE RESPONDER&quot;);"
5573-
errorLine2=" ~~~~~~~~~~~~~~~~~~~">
5574-
<location
5575-
file="src/com/offsetnull/bt/responder/replace/ReplaceActionEditorDialog.java"
5576-
line="43"
5577-
column="51"/>
5578-
</issue>
5579-
5580-
<issue
5581-
id="SetTextI18n"
5582-
message="String literal in `setText` can not be translated. Use Android resources instead."
5583-
errorLine1=" ((TextView)findViewById(R.id.action_label)).setText(&quot;Replace triggered text with:&quot;);"
5584-
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
5585-
<location
5586-
file="src/com/offsetnull/bt/responder/replace/ReplaceActionEditorDialog.java"
5587-
line="44"
5588-
column="55"/>
5589-
</issue>
5590-
5591-
<issue
5592-
id="SetTextI18n"
5593-
message="String literal in `setText` can not be translated. Use Android resources instead."
5594-
errorLine1=" ((TextView)findViewById(R.id.titlebar)).setText(&quot;EDIT DIRECTION&quot;);"
5595-
errorLine2=" ~~~~~~~~~~~~~~~~">
5596-
<location
5597-
file="src/com/offsetnull/bt/speedwalk/SpeedWalkDirectionEditorDialog.java"
5598-
line="59"
5599-
column="52"/>
5600-
</issue>
5601-
5602-
<issue
5603-
id="SetTextI18n"
5604-
message="String literal in `setText` can not be translated. Use Android resources instead."
5605-
errorLine1=" ((Button)findViewById(R.id.new_sw_done_button)).setText(&quot;Save Changes&quot;);"
5606-
errorLine2=" ~~~~~~~~~~~~~~">
5607-
<location
5608-
file="src/com/offsetnull/bt/speedwalk/SpeedWalkDirectionEditorDialog.java"
5609-
line="62"
5610-
column="60"/>
5611-
</issue>
5612-
5613-
<issue
5614-
id="SetTextI18n"
5615-
message="String literal in `setText` can not be translated. Use Android resources instead."
5616-
errorLine1=" ((TextView)findViewById(R.id.titlebar)).setText(&quot;NEW DIRECTION&quot;);"
5617-
errorLine2=" ~~~~~~~~~~~~~~~">
5618-
<location
5619-
file="src/com/offsetnull/bt/speedwalk/SpeedWalkDirectionEditorDialog.java"
5620-
line="77"
5621-
column="52"/>
5622-
</issue>
5623-
5624-
<issue
5625-
id="SetTextI18n"
5626-
message="Number formatting does not take into account locale settings. Consider using `String.format` instead."
5627-
errorLine1=" seconds.setText(orig_timer.getSeconds().toString());"
5628-
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
5629-
<location
5630-
file="src/com/offsetnull/bt/timer/TimerEditorDialog.java"
5631-
line="124"
5632-
column="20"/>
5633-
</issue>
5634-
5635-
<issue
5636-
id="SetTextI18n"
5637-
message="String literal in `setText` can not be translated. Use Android resources instead."
5638-
errorLine1=" donebutton.setText(&quot;Done&quot;);"
5639-
errorLine2=" ~~~~~~">
5640-
<location
5641-
file="src/com/offsetnull/bt/timer/TimerEditorDialog.java"
5642-
line="126"
5643-
column="23"/>
5644-
</issue>
5645-
5646-
<issue
5647-
id="SetTextI18n"
5648-
message="String literal in `setText` can not be translated. Use Android resources instead."
5649-
errorLine1=" title.setText(&quot;TIMERS&quot;);"
5650-
errorLine2=" ~~~~~~~~">
5651-
<location
5652-
file="src/com/offsetnull/bt/timer/TimerSelectionDialog.java"
5653-
line="156"
5654-
column="17"/>
5655-
</issue>
5656-
5657-
<issue
5658-
id="SetTextI18n"
5659-
message="Number formatting does not take into account locale settings. Consider using `String.format` instead."
5660-
errorLine1=" delay.setText(Integer.toString(the_responder.getDelay()));"
5661-
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
5662-
<location
5663-
file="src/com/offsetnull/bt/responder/toast/ToastResponderEditor.java"
5664-
line="47"
5665-
column="17"/>
5666-
</issue>
5667-
5668-
<issue
5669-
id="SetTextI18n"
5670-
message="String literal in `setText` can not be translated. Use Android resources instead."
5671-
errorLine1=" editdone.setText(&quot;Done&quot;);"
5672-
errorLine2=" ~~~~~~">
5673-
<location
5674-
file="src/com/offsetnull/bt/trigger/TriggerEditorDialog.java"
5675-
line="181"
5676-
column="21"/>
5677-
</issue>
5678-
5679-
<issue
5680-
id="SetTextI18n"
5681-
message="String literal in `setText` can not be translated. Use Android resources instead."
5682-
errorLine1=" v.setText(&quot;Regular expressions have been enabled. Unpredictable or poor performance can result from overly broad regular expressions. Please see the documentation for the Java Pattern Class for more information.&quot;);"
5683-
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
5684-
<location
5685-
file="src/com/offsetnull/bt/trigger/TriggerEditorDialog.java"
5686-
line="619"
5687-
column="15"/>
5688-
</issue>
5689-
5690-
<issue
5691-
id="SetTextI18n"
5692-
message="String literal in `setText` can not be translated. Use Android resources instead."
5693-
errorLine1=" b.setText(&quot;Always display this message.&quot;);"
5694-
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
5695-
<location
5696-
file="src/com/offsetnull/bt/trigger/TriggerEditorDialog.java"
5697-
line="647"
5698-
column="15"/>
5699-
</issue>
5700-
5701-
<issue
5702-
id="SetTextI18n"
5703-
message="String literal in `setText` can not be translated. Use Android resources instead."
5704-
errorLine1=" ((TextView)tmp).setText(&quot;Filter by plugin&quot;);"
5705-
errorLine2=" ~~~~~~~~~~~~~~~~~~">
5706-
<location
5707-
file="src/com/offsetnull/bt/trigger/TriggerSelectionDialog.java"
5708-
line="1217"
5709-
column="30"/>
5710-
</issue>
5711-
57125547
<issue
57135548
id="HardcodedText"
57145549
message="Hardcoded string &quot;Replace:&quot;, should use `@string` resource"
@@ -5881,7 +5716,7 @@
58815716
errorLine2=" ~~~~~">
58825717
<location
58835718
file="src/com/offsetnull/bt/window/MainWindow.java"
5884-
line="1103"
5719+
line="1102"
58855720
column="45"/>
58865721
</issue>
58875722

0 commit comments

Comments
 (0)