[TIMOB-25992] Add default clang-format to the Android/iOS module template
GitHub Issue | n/a |
---|---|
Type | Story |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-05-23T10:15:45.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 7.3.0 |
Components | n/a |
Labels | android, ios, template |
Reporter | Michael Gangolf |
Assignee | Hans Knöchel |
Created | 2018-04-28T11:16:49.000+0000 |
Updated | 2018-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
*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 theapp.js
Ran
clang-format -style=file -i app.js
Able to notice the coding style changes
*Test Environment*