Skip to content

Commit f766d3a

Browse files
authored
Merge pull request #23 from easyawslearn/pylint
Pylint
2 parents 02894eb + 2310985 commit f766d3a

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

pylint/demo.py

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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

sonar-project.properties

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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

0 commit comments

Comments
 (0)