File: git_diff_violations.txt

package info (click to toggle)
diff-cover 10.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,256 kB
  • sloc: python: 6,452; xml: 218; cpp: 18; sh: 12; makefile: 10
file content (20 lines) | stat: -rw-r--r-- 543 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/violations_test_file.py b/violations_test_file.py
index 8bf3de7..4e4b0df 100644
--- a/violations_test_file.py
+++ b/violations_test_file.py
@@ -1,6 +1,11 @@
-def func_1(apple, my_list):
-    d = {}
-    if apple<10:
+def func_1(apple,my_list):
+    if apple< 10:
         # Do something 
         my_list.append(apple)
     return my_list[1:]
+def func_2(spongebob, squarepants):
+    """A less messy function"""
+    for char in spongebob:
+        if char in squarepants:
+            return char
+    unused=1
+    return None