Bug 11519

Summary: check for four-space indented in python metadata
Product: [Yocto Project Subprojects] Patchwork/Patchtest Reporter: Leonardo Sandoval Gonzalez <leonardo.sandoval.gonzalez>
Component: Patchtest TestsuiteAssignee: Daniela Plascencia <daniela.plascencia>
Status: RESOLVED OBSOLETE QA Contact:
Severity: enhancement    
Priority: Medium CC: bluelightning, ross.burton
Version: 2.4   
Target Milestone: 2.5 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Leonardo Sandoval Gonzalez 2017-05-17 14:46:26 UTC
According to [1] "Python functions must be four space indented - no tabs."

[1] http://www.openembedded.org/wiki/Styleguide#Format_Guidelines
Comment 1 Daniela Plascencia 2017-05-18 15:04:23 UTC
(In reply to comment #0)
> According to [1] "Python functions must be four space indented - no tabs."
> 
> [1] http://www.openembedded.org/wiki/Styleguide#Format_Guidelines

There's a Pylint option that catches tab indentation. We are already using Pylint to test Python code and I think changing a couple parameters will do the work. Do you think a new check is needed?
Comment 2 Leonardo Sandoval Gonzalez 2017-05-18 15:07:16 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > According to [1] "Python functions must be four space indented - no tabs."
> > 
> > [1] http://www.openembedded.org/wiki/Styleguide#Format_Guidelines
> 
> There's a Pylint option that catches tab indentation. We are already using
> Pylint to test Python code and I think changing a couple parameters will do
> the work. Do you think a new check is needed?

understood, then the pylint implementation should be the path to take.
Comment 3 Daniela Plascencia 2017-09-25 17:52:32 UTC
Changing to 2.5 M1. I'm planning to tackle most of the test-suite enhancements on such milestone.
Comment 4 Leonardo Sandoval Gonzalez 2017-10-20 14:45:23 UTC
This is not a M+, and can be work on M2.
Comment 5 Daniela Plascencia 2017-11-30 20:46:17 UTC
The test already checks for indentation errors/inconsistencies, but this issue is now obsolete as the pylint test case has to be refactored.
I'm filing a new issue for tracking the refactoring process.