Skip to content

Commit fcf03c1

Browse files
committedJan 16, 2025
build(lint): ignore unused resources in translated strings
1 parent 6d4c174 commit fcf03c1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed
 

‎lint.xml

+8-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,12 @@
33
<!-- Turn off all checks by default, so we can opt into just the ones we want. -->
44
<issue id="all" severity="ignore" />
55

6-
<issue id="UnusedResources" severity="error" />
6+
<issue id="UnusedResources" severity="error">
7+
<!--
8+
Allow leaving unused strings in translated files.
9+
Smartling will send a PR to align with the main file, which will remove them.
10+
-->
11+
<ignore regexp="Pocket/src/main/res/values-.*/strings\.xml" />
12+
<ignore regexp="pocket-ui/src/main/res/values-.*/strings\.xml" />
13+
</issue>
714
</lint>

0 commit comments

Comments
 (0)