summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/files/contents/line-length/cruft-minified-js/eval
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
commit75808db17caf8b960b351e3408e74142f4c85aac (patch)
tree7989e9c09a4240248bf4658a22208a0a52d991c4 /t/recipes/checks/files/contents/line-length/cruft-minified-js/eval
parentInitial commit. (diff)
downloadlintian-75808db17caf8b960b351e3408e74142f4c85aac.tar.xz
lintian-75808db17caf8b960b351e3408e74142f4c85aac.zip
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 't/recipes/checks/files/contents/line-length/cruft-minified-js/eval')
-rw-r--r--t/recipes/checks/files/contents/line-length/cruft-minified-js/eval/desc2
-rw-r--r--t/recipes/checks/files/contents/line-length/cruft-minified-js/eval/hints14
-rw-r--r--t/recipes/checks/files/contents/line-length/cruft-minified-js/eval/post-test4
3 files changed, 20 insertions, 0 deletions
diff --git a/t/recipes/checks/files/contents/line-length/cruft-minified-js/eval/desc b/t/recipes/checks/files/contents/line-length/cruft-minified-js/eval/desc
new file mode 100644
index 0000000..0122f4c
--- /dev/null
+++ b/t/recipes/checks/files/contents/line-length/cruft-minified-js/eval/desc
@@ -0,0 +1,2 @@
+Testname: cruft-minified-js
+Check: files/contents/line-length
diff --git a/t/recipes/checks/files/contents/line-length/cruft-minified-js/eval/hints b/t/recipes/checks/files/contents/line-length/cruft-minified-js/eval/hints
new file mode 100644
index 0000000..66d0cf8
--- /dev/null
+++ b/t/recipes/checks/files/contents/line-length/cruft-minified-js/eval/hints
@@ -0,0 +1,14 @@
+cruft-minified-js (source): very-long-line-length-in-source-file 707 > 512 [oldfalsepositives/deployJava/deployJava.js:3]
+cruft-minified-js (source): very-long-line-length-in-source-file 545 > 512 [oldfalsepositives/longlicensetext.js:7]
+cruft-minified-js (source): very-long-line-length-in-source-file 3596 > 512 [src/js/foo.html:5]
+cruft-minified-js (source): very-long-line-length-in-source-file 3586 > 512 [usr/share/javascript/sourced_variant/sourced.min.js:1]
+cruft-minified-js (source): very-long-line-length-in-source-file 3586 > 512 [usr/share/javascript/sourced/sourced.min.js:1]
+cruft-minified-js (source): very-long-line-length-in-source-file 3586 > 512 [usr/share/javascript/minwithoutsource/subdir.min.js:1]
+cruft-minified-js (source): very-long-line-length-in-source-file 3586 > 512 [usr/share/javascript/minwithoutsource/notsourced.min.js:1]
+cruft-minified-js (source): very-long-line-length-in-source-file 3586 > 512 [usr/share/javascript/jswithoutminextwithoutsource/jsonnotsourced.js:1]
+cruft-minified-js (source): very-long-line-length-in-source-file 3586 > 512 [usr/share/javascript/jswithoutminext/json.js:1]
+cruft-minified-js (source): very-long-line-length-in-source-file 3586 > 512 [usr/share/javascript/json/json.min.js:1]
+cruft-minified-js (source): very-long-line-length-in-source-file 3586 > 512 [build/js/foo.min.js:1]
+cruft-minified-js (source): very-long-line-length-in-source-file 3056 > 512 [oldfalsepositives/pandoc/search_index.js:2]
+cruft-minified-js (source): very-long-line-length-in-source-file 1717 > 512 [oldfalsepositives/jslint.js:2]
+cruft-minified-js (source): very-long-line-length-in-source-file 1073 > 512 [oldfalsepositives/css_browser_selector.js:8]
diff --git a/t/recipes/checks/files/contents/line-length/cruft-minified-js/eval/post-test b/t/recipes/checks/files/contents/line-length/cruft-minified-js/eval/post-test
new file mode 100644
index 0000000..f1d2602
--- /dev/null
+++ b/t/recipes/checks/files/contents/line-length/cruft-minified-js/eval/post-test
@@ -0,0 +1,4 @@
+s/mean line length is about [0-9]+ characters$/mean line is about NUMBER characters/
+s/line [0-9]+ is [0-9]+ characters long \(>[0-9]+\)$/line POSITION is LENGTH characters long (>CUTOFF)/
+s/code fragment:.*$/code fragment:CODE/
+s/extract of copyright statement:.*/extract of copyright statement: COPYRIGHT/