Codecheck rule "missing_space_after_access_type_symbol" conflicts with clang-format

Bug #1619208 reported by GunChleoc
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Low
Unassigned

Bug Description

After running clang-format, the codecheck rule "missing_space_after_access_type_symbol" will be triggered for some files.

Revision history for this message
GunChleoc (gunchleoc) wrote :

This is becoming impractical, so I'm attaching the rule here and deleting it from the code base.

Changed in widelands:
status: New → Confirmed
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Found this when looking for another codecheck-related issue and I have two questions. First off, is this the same as bug 1610731? It seems to be the same underlying issue, but I don't know the details.

Secondly, based on your comment, if the offending rule has been removed from the codebase, is this now considered fixed or was the intention to create a version of the rule which would coexist with clang-format?

Revision history for this message
GunChleoc (gunchleoc) wrote :

When we started using clang-format, we decided to jus drop some rules, and to attack some conflicting ones to bugs.

With some more experience under my belt, I am now in favor of dropping all conflicting codecheck rules that concern formatting only like this one.

They make Travis fail when the code doesn't conform, preventing us from merging. However, they will be automatically fixed by Bunnybot anyway during the merge because Bunnybot is runnng clang-format. So there is no need for them any more really.

if I can get a +1, I will mark all related bugs as invalid or won't fix.

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Sounds reasonable to me. Though since the conflict is resolved, one could also argue to mark them as fix committed, it just so happened it got solved by removing the codechecks. :)

Revision history for this message
GunChleoc (gunchleoc) wrote :

Good point - fix committed it is.

Fixed by automating clang-format.

Changed in widelands:
status: Confirmed → Fix Committed
Revision history for this message
GunChleoc (gunchleoc) wrote :

Fixed in build20-rc1

Changed in widelands:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.