diff --git a/sonar-scanner-dotnet/CSharpProject/SomeConsoleApplication/Program.cs b/sonar-scanner-dotnet/CSharpProject/SomeConsoleApplication/Program.cs old mode 100755 new mode 100644 index 9d2a0563..625824b7 --- a/sonar-scanner-dotnet/CSharpProject/SomeConsoleApplication/Program.cs +++ b/sonar-scanner-dotnet/CSharpProject/SomeConsoleApplication/Program.cs @@ -1,19 +1,11 @@ using System; namespace SomeConsoleApplication { - public class Program + public static class Program { static void Main(string[] args) { - var iAmTrue = true; - if (iAmTrue) - { - Console.WriteLine("true"); - } - else - { - Console.WriteLine("false"); - } + Console.WriteLine("true"); Console.ReadKey(); } diff --git a/sonar-scanner/src/python/fortune.py b/sonar-scanner/src/python/fortune.py index b0900dc1..d1a2f09b 100644 --- a/sonar-scanner/src/python/fortune.py +++ b/sonar-scanner/src/python/fortune.py @@ -89,4 +89,4 @@ def get(filename): if len(sys.argv) == 1: print 'Usage: fortune.py ' sys.exit() - print get(sys.argv[1]) + print(get(sys.argv[1])) diff --git a/sonar-scanner/src/python/letters.py b/sonar-scanner/src/python/letters.py index 0f54b31c..d0fed5b0 100644 --- a/sonar-scanner/src/python/letters.py +++ b/sonar-scanner/src/python/letters.py @@ -70,7 +70,7 @@ def play_once(): # Convert the numeric choice to a letter: 0->a, 1->b, etc. choice=chr(ord('a')+choice) - #choice=raw_input("What should I choose?") # (for debugging) + # We'll track how many possibilities the user still has available. # Start with all of the letters. @@ -83,7 +83,7 @@ def play_once(): # 'return' statement inside the loop. while (1): try: - #print possibilities # (for debugging) + # Get input from the user query=raw_input('Next? ')