21e80571dc43d106931602b57051fb122f172ff2,bears/python/PEP8Bear.py,PEP8Bear,run,#PEP8Bear#Any#Any#Any#Any#Any#Any#Any#,20
Before Change
:param local_pep8_config: Set to true if autopep8 should use a config
file as if run normally from this directory.
return self.lint(filename,
file,
apply_config=local_pep8_config,
ignore=pep_ignore,
select=pep_select,
max_line_length=max_line_length,
indent_size=tab_width)
After Change
:param local_pep8_config: Set to true if autopep8 should use a config
file as if run normally from this directory.
options = {"ignore": pep_ignore,
"select": pep_select,
"max_line_length": max_line_length,
"indent_size": tab_width}
corrected = autopep8.fix_code("".join(file),
apply_config=local_pep8_config,
options=options).splitlines(True)
diffs = Diff.from_string_arrays(file, corrected).split_diff()
for diff in diffs:
yield Result(self,
"The code does not comply to PEP8.",
affected_code=(diff.range(filename),),
diffs={filename: diff})
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 15
Instances
Project Name: coala/coala-bears
Commit Name: 21e80571dc43d106931602b57051fb122f172ff2
Time: 2016-05-02
Author: mak95@arcor.de
File Name: bears/python/PEP8Bear.py
Class Name: PEP8Bear
Method Name: run
Project Name: coala/coala-bears
Commit Name: 21e80571dc43d106931602b57051fb122f172ff2
Time: 2016-05-02
Author: mak95@arcor.de
File Name: bears/python/PEP8Bear.py
Class Name: PEP8Bear
Method Name: run
Project Name: coala/coala-bears
Commit Name: 9f9a5a6a1e9b7ab4cf71ef35dee831937dfead92
Time: 2016-05-03
Author: mak95@arcor.de
File Name: bears/python/PyCommentedCodeBear.py
Class Name: PyCommentedCodeBear
Method Name: run
Project Name: coala/coala-bears
Commit Name: d9d9b8ab1c1afa14a043e0c52f91c19b05b36684
Time: 2016-05-03
Author: mak95@arcor.de
File Name: bears/python/PyUnusedCodeBear.py
Class Name: PyUnusedCodeBear
Method Name: run