History log of /haiku/src/tools/checkstyle/checkstyle.py
Revision Date Author Comments
# eb198a09 25-Sep-2022 Oscar Lesta <oscar.lesta@gmail.com>

checkstyle.py: Python 3 compatibility, part two.

Previous patch was tested only with single files arguments, thus
missing the usage of "os.path.walk()" (that was removed on 3.0).

Use "os.walk()" instead, that has been available since Python 2.3.

Change-Id: Ia290bebaa950466ac5f1d978f0a5e710a8e3da88
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5696
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>


# dee0cb70 29-Aug-2022 Oscar Lesta <oscar.lesta@gmail.com>

checkstyle.py: make it compatible with Python 3.x

* Change prints to be compatible with 2.x and 3.x.
* Use html.escape instead of cgi.escape on Python >= 3.8.
* Make integer division explicit.

Change-Id: Ib9b236816e8fa07741c02d0e79629c4aa0ed6676
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5603
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>


# 54ffc00e 19-Jan-2022 urnenfeld <oliver.ruiz.dorantes@gmail.com>

checkstyle: Update 80 columns rule to 100 as per coding guidelines

Change-Id: I17d8a74ec332a0073bd9d85ce23093b285a8e2d8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4875
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# 006a34e4 29-Nov-2014 Stéphane Aulery <saulery@free.fr>

CodingStyle checking tool directory:

- Don't crash when a [.svn] cache directory is missing
- Ignores the cache directories of the main VCS : bazaar, git, mercurial, svn

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

Fixes #11532.


# fe055bf3 21-Sep-2015 Jeroen Oortwijn <oortwijn@gmail.com>

change html output to confirm to XHTML Strict

Several errors in the html output caused WebPositive to not render
the file completely.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

Fixes #12387.


# 2e1e7847 19-Jun-2015 Augustin Cavalier <waddlesplash@gmail.com>

checkstyle: add #! line, fix filemode.


# 6eafb4b0 19-Jun-2015 Augustin Cavalier <waddlesplash@gmail.com>

Replace a few references to Subversion with Git.

There are a whole bunch more of these around, but these were the
ones I was confident replacing.


# 2ec4a3b1 06-Nov-2009 Alexandre Deckner <alex@zappotek.com>

* Use os.path.walk to visit directories
* Use \w instead of [a-zA-Z0-9] in some regex's
* Add switch to the "space after control statement" rule
* Added pointer/reference style rule


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33921 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ae762f31 04-Nov-2009 Alexandre Deckner <alex@zappotek.com>

* Add multi file/directory support
* Refined some rules to not include the new-line
* Added 'windows line ending' rule
* Enhanced the html output, not an expert there though



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33889 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 214f735e 31-Oct-2009 Alexandre Deckner <alex@zappotek.com>

* Style checker for the Haiku C++ coding guidelines
* Added an html report output with highlights and tooltips
* Still a few false positives and rules missing. Some regex could be reworked
* TODO: ignore some rules when in comments, multifile support



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33856 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2e1e7847634fe2354ccede9951d53c8f2ea7a4b1 19-Jun-2015 Augustin Cavalier <waddlesplash@gmail.com>

checkstyle: add #! line, fix filemode.


# 6eafb4b041ad79cb936b2041fdb9c56b1209cc10 19-Jun-2015 Augustin Cavalier <waddlesplash@gmail.com>

Replace a few references to Subversion with Git.

There are a whole bunch more of these around, but these were the
ones I was confident replacing.


# 2ec4a3b13ff6d8f36b9a8bfd0368a26ab111017f 06-Nov-2009 Alexandre Deckner <alex@zappotek.com>

* Use os.path.walk to visit directories
* Use \w instead of [a-zA-Z0-9] in some regex's
* Add switch to the "space after control statement" rule
* Added pointer/reference style rule


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33921 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ae762f316d8acbd136e6cae4fe73b3f75634e3d8 04-Nov-2009 Alexandre Deckner <alex@zappotek.com>

* Add multi file/directory support
* Refined some rules to not include the new-line
* Added 'windows line ending' rule
* Enhanced the html output, not an expert there though



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33889 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 214f735e3441372e058defd81803e3570c99e92b 31-Oct-2009 Alexandre Deckner <alex@zappotek.com>

* Style checker for the Haiku C++ coding guidelines
* Added an html report output with highlights and tooltips
* Still a few false positives and rules missing. Some regex could be reworked
* TODO: ignore some rules when in comments, multifile support



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33856 a95241bf-73f2-0310-859d-f6bbb57e9c96