Merged
Conversation
daneov
added a commit
to daneov/swift-style-guide
that referenced
this pull request
Dec 19, 2016
* Chained method recommendations. * Change style for empty arrays and dictionary initialization. * remove spurrious 'the' * add golden path * Remove c-style for loops (kodecocodes#155) * Fixes kodecocodes#138 -- don't use c-style loops * Fix spacing. Fixes kodecocodes#138 * Move protocol conformance to a section called Code Organization (kodecocodes#149) * rules for abbreviations (kodecocodes#150) * recommendation to not include parenthesis (kodecocodes#151) * recommendation to not include parenthesis * add parens to TOC * names for protocols (kodecocodes#152) * function versus method (kodecocodes#153) * recommendation on when to use free function vs method * remove extra space * elide class name from selector when possible (kodecocodes#156) * add recommendation to omit class name from selectors when possible * remove escaped octothorpes * Guide -> Guidelines * whitespace * Lazy init recommendation (kodecocodes#157) * lazy initialization example * add some notes * add access control info kodecocodes#97 (kodecocodes#158) * switch dynamic and lazy kodecocodes#97 * fix typo * space * formatting fix * for -> while * fix missing brace * add Ray Fix to Credits * fixed description from Joshua Greene (kodecocodes#161) * add recommendation on generic type parameter names Fixes kodecocodes#159 (kodecocodes#160) * add discussion of static. fixes kodecocodes#131 (kodecocodes#163) * add discussion of static. fixes kodecocodes#131 * clarify global functions * Colon space (kodecocodes#164) * spaces and colons * exceptions, examples of bad colon spacing * remove errant * * fixes kodecocodes#162 (kodecocodes#166) * discuss lifetime issues (kodecocodes#167) * add recommendation about final (kodecocodes#169) * navigation fix * clarification to type names * fix capitalization, spelling * fix incorrect white space (via Sam Davies) * Add self as maintainer. (via Ray Wenderlich) * more spacing * Add clarification to access control order * addressing issue kodecocodes#137 * addressing kodecocodes#173 about type constants and global constants * tighten selector text; abbreviate context as it is more noise than understanding kodecocodes#137 * remove extra space after periods * use term type properties more consistantly kodecocodes#173 * code escape static let kodecocodes#173 * fix navigation kodecocodes#173 * type properties -> variable type properties kodecocodes#173 * Fixes kodecocodes#174: update enumerations to API Design Guidelines * Make generic type examples compile for Swift 3 and conform to naming guidelines. * Reformat guard spacing. Add lets to make compile for Swift 3. * Remove reference to M_PI with Double.pi. Remove pi example for root2. * Update closures for Swift 3. * PascalCase naming fix (kodecocodes#208) Sorry for the long delay on this. * Added colons space exceptions (kodecocodes#202) * Added Style Guide License section (kodecocodes#216) * Implementation of kodecocodes#223 (kodecocodes#225) * Added "No trailing whitespaces" rule From Linux Kernel Conventions https://www.kernel.org/doc/Documentation/CodingStyle: "Do not leave trailing whitespace at the ends of lines." Discussion on Stack Overflow - http://programmers.stackexchange.com/questions/121555/why-is-trailing-whitespace-a-big-deal. * added Vadim Eisenberg as a contributor https://github.com/vadimeisenbergibm * fixed position of Vadim Eisenberg to be in alphabetic order after Collin Eberhard and before Ray Fix * remove referece to ++ and --. implementation of kodecocodes#222 * add a contributing guide * revamp the section on naming to reference API design guidelines kodecocodes#218 * remove section on naming protocols and enums in deference tof API design guidelines * remove dead navigation * revised rules for names in prose kodecocodes#219 * formatting gliches kodecocodes#219 * add white space rules * add note about parenthesis kodecocodes#193 * fix typo * add delegate advice kodecocodes#175 (via @fabienwarniez) * Type inferred context kodecocodes#230 * fix TOC * update goals * update goals kodecocodes#231 * Split credits and license into separate files * fix spacing in project settings screenshot kodecocodes#197 * add requirements on organization and bundle identifier kodecocodes#198 * remove fluff and add more keypoints to the API guidelines summary * make unused code examples compile for swift 3 * Update spacing for closure example kodecocodes#189. * follow API design guidelines for items.mergeSorted() * spellos * grammar * remove section on struct initializers kodecocodes#234 * update control loops to swift 3 * clarify text * add link to raywenderlich.com * shuffle image around * Update access control kodecocodes#235 * adding a let as required by the Swift 3 compiler (kodecocodes#236) * Added contributor (kodecocodes#238) * Alphabetize credits. * Wrap rule. Wording slightly modified. kodecocodes#233 * fix Circle sample code kodecocodes#239 * typo * Improve wording of the newline character sentence (kodecocodes#253) - Add the word “single” to make it a bit more clear that there should not be multiple blank lines at the end of a file - “new line character” -> “newline character” - “end of file” -> “end of each file” * Fix indentation and formatting of trailing closure syntax example (kodecocodes#248) - Fix indentation to use 2 spaces - Remove the line break before the “animations” parameter in the “Not Preferred” example so that its formatting is consistent with the code in the “Preferred” example. While this style is still technically not preferred, this section is about whether or not to use trailing closure syntax. This way it is also easier for the reader to see at a glance what the difference is without having to mentally account for the line break. * Remove extra space after “let e” in example (kodecocodes#247) * Fix indentation to use 2 spaces instead of 3 (kodecocodes#246) * Add a single space after commas (kodecocodes#245) * Minor typo fixes (kodecocodes#242) * Fix style for else statement (kodecocodes#244) Even though the else statement being on a new line is technically “Not Preferred” the styling for the else statement is not what is being demonstrated, and so it should not differ between the “Preferred” and “Not Preferred” examples. * Add missing word (kodecocodes#243) "rather than an instance" -> "rather than on an instance" * remove obsolete semicolon exception issue kodecocodes#251 * fix typo kodecocodes#249 * strive to make your code compile without errors * clarify use of self and remove non-working example kodecocodes#241 * put self in code fence * Issue kodecocodes#240 (generic example) (kodecocodes#255) * Use `swap` for single uppercase letter generic parameter example (kodecocodes#240) * Add Jessy Catterwaul to the credits * Fixes kodecocodes#252. Don’t include the () when using the shortest form of method call. * Use softer language for marking classes final. * The new update branch is called update. * add an Updated for Swift 3 subtitle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.