SonarOpenCommunity / sonar-cxx

Block comment should start with # FLK-E265
Style
Minor
6 months ago3 years old
block comment should start with '# '
214            'wrapper.java.command=' + (os.environ['JAVA_HOME'] + '/bin/java').replace('\\','/'))
215
216    #sonar_properties = os.path.join(sonarhome, 'conf', 'sonar.properties')
217    #replace(218    #    sonar_properties,
219    #    '#sonar.log.level=INFO',
220    #    'sonar.log.level=DEBUG'
block comment should start with '# '
213            'wrapper.java.command=java',
214            'wrapper.java.command=' + (os.environ['JAVA_HOME'] + '/bin/java').replace('\\','/'))
215
216    #sonar_properties = os.path.join(sonarhome, 'conf', 'sonar.properties')217    #replace(
218    #    sonar_properties,
219    #    '#sonar.log.level=INFO',
block comment should start with '# '
198    os.close(file_handle)
199    #Remove original file
200    os.remove(file_path)
201    #Move new file202    move(abs_path, file_path)
203
204
block comment should start with '# '
196            for line in old_file:
197                new_file.write(line.replace(pattern, subst))
198    os.close(file_handle)
199    #Remove original file200    os.remove(file_path)
201    #Move new file
202    move(abs_path, file_path)
block comment should start with '# '
189
190
191def replace(file_path, pattern, subst):
192    #Create temp file193    file_handle, abs_path = mkstemp()
194    with open(abs_path, 'w', encoding='utf8') as new_file:
195        with open(file_path, encoding='utf8') as old_file: