File tree 2 files changed +31
-0
lines changed
2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env python
2
+ import string
3
+
4
+ shift = 3
5
+ choice = "encode"
6
+ word = "Hello"
7
+ letters = string .ascii_letters + string .punctuation + string .digits
8
+ encoded = ''
9
+ if choice == "encode" :
10
+ for letter in word :
11
+ if letter == ' ' :
12
+ encoded = encoded + ' '
13
+ else :
14
+ x = letters .index (letter ) + shift
15
+ encoded = encoded + letters [x ]
16
+ print encoded
Original file line number Diff line number Diff line change
1
+ sonar.projectKey =project:sonarqube-sample
2
+ sonar.projectName =sonarqube-sample1
3
+ sonar.projectVersion =1.0
4
+ sonar.sources =
5
+ sonar.language =py
6
+ sonar.sourceEncoding =UTF-8
7
+ # Test Results
8
+ sonar.python.xunit.reportPath =nosetests.xml
9
+ # Coverage
10
+ sonar.python.coverage.reportPath =coverage.xml
11
+ # Linter (https://docs.sonarqube.org/display/PLUG/Pylint+Report)
12
+ # sonar.python.pylint=/usr/local/bin/pylint
13
+ # sonar.python.pylint_config=.pylintrc
14
+ # sonar.python.pylint.reportPath=pylint-report.txt
15
+ sonar.host.url =http://10.29.41.148:9000
You can’t perform that action at this time.
0 commit comments