Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25992] Add default clang-format to the Android/iOS module template

GitHub Issuen/a
TypeStory
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2018-05-23T10:15:45.000+0000
Affected Version/sn/a
Fix Version/sRelease 7.3.0
Componentsn/a
Labelsandroid, ios, template
ReporterMichael Gangolf
AssigneeHans Knöchel
Created2018-04-28T11:16:49.000+0000
Updated2018-07-09T17:49:41.000+0000

Description

Having the Axway clang-format files is nice to check the modules syntax and adjust it to the same coding style. This PR will add it to the default iOS/Android module template so it can be used in all modules right away: https://github.com/appcelerator/titanium_mobile/pull/10015 A linting section was added to the README

Comments

  1. Samir Mohammed 2018-07-09

    *Closing ticket.* Verified improvement in SDK Version 7.3.0.v20180613110103. *FR Passed. Test Steps:*

    Used brew to install clang-format

    Created a new module

    Cd in to the root then example folder to locate the app.js

    Ran clang-format -style=file -i app.js

    Able to notice the coding style changes

    *Test Environment*
       APPC Studio: 5.0.0.201712081732
       APPC CLI: 7.0.4
       Operating System Name: Mac OS High Sierra
       Operating System Version: 10.13
       Node.js Version: 8.9.1
       Xcode 9.2
       

JSON Source