From 3441a7957aff86d27ec7beacabb80359e2ca38de Mon Sep 17 00:00:00 2001 From: David DE CARVALHO Date: Fri, 22 Mar 2024 23:27:58 +0100 Subject: [PATCH] delete deprecated EC66 and unrelevant EC69 python rules --- src/avoidDoubleQuoteCheck.py | 13 ------------- src/noFunctionCallWhenDeclaringForLoop.py | 9 --------- 2 files changed, 22 deletions(-) delete mode 100644 src/avoidDoubleQuoteCheck.py delete mode 100644 src/noFunctionCallWhenDeclaringForLoop.py diff --git a/src/avoidDoubleQuoteCheck.py b/src/avoidDoubleQuoteCheck.py deleted file mode 100644 index 893f24e..0000000 --- a/src/avoidDoubleQuoteCheck.py +++ /dev/null @@ -1,13 +0,0 @@ -# in variables -firstname = "Andrea" # Noncompliant {{Avoid using quotation mark ("), prefer using simple quote (')}} -lastname = 'Doe' -cars = ["Renault", "Fiat", "Citroen"] # Noncompliant {{Avoid using quotation mark ("), prefer using simple quote (')}} {{Avoid using quotation mark ("), prefer using simple quote (')}} {{Avoid using quotation mark ("), prefer using simple quote (')}} -courses = ['mathematics', 'french', 'IT sciences'] -instruments = ['guitar', "bass", 'drums'] # Noncompliant {{Avoid using quotation mark ("), prefer using simple quote (')}} - -# in functions -def my_function(name, age): - print(name + 'is' + age + ' yo.') - -my_function("Robert", 12) # Noncompliant {{Avoid using quotation mark ("), prefer using simple quote (')}} -my_function('Robert', 12) diff --git a/src/noFunctionCallWhenDeclaringForLoop.py b/src/noFunctionCallWhenDeclaringForLoop.py deleted file mode 100644 index 97cb01e..0000000 --- a/src/noFunctionCallWhenDeclaringForLoop.py +++ /dev/null @@ -1,9 +0,0 @@ -def my_function(): - return 6 - -for i in my_function(): # Noncompliant {{Do not call a function when declaring a for-type loop}} - print("Test") - my_function() - pass - -my_function()