Skip to content

Upper camel case#17

Merged
adityatrivedi merged 21 commits intomasterfrom
at-upper-camel-case
Jun 1, 2015
Merged

Upper camel case#17
adityatrivedi merged 21 commits intomasterfrom
at-upper-camel-case

Conversation

@adityatrivedi
Copy link
Copy Markdown
Member

The following constructs have checks for UpperCamelCase names:

  • class names
  • enumeration types
  • enumeration values
  • struct names
  • protocol names

Resolves #8.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we rename this file to upperCamelCaseTests.swift or something along those lines? This file should only contain test cases for upper camel case checks. Then, you can put it into a folder where more swift test files can be added.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, I'll name it UpperCamelCaseTests.swift and add it to a centralized test directory.

Move the test file into “functional_tests” directory
The file will contain the expected output for
`UpperCamelCaseTests.swift` file.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How are you actually running this test?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the moment I pass in the file as an argument to the program and manually diff the output. In the near future (issue #20) a functional test harness will diff the generated output against the expected output.

* Multiple member values can appear on a single line, separated by commas
@nehasingh2293
Copy link
Copy Markdown
Member

👍

@a4sriniv
Copy link
Copy Markdown
Member

a4sriniv commented Jun 1, 2015

👍

@adityatrivedi adityatrivedi changed the title Upper Camel Case Name Checks Upper camel case Jun 1, 2015
adityatrivedi added a commit that referenced this pull request Jun 1, 2015
@adityatrivedi adityatrivedi merged commit 5bb8ddc into master Jun 1, 2015
@adityatrivedi adityatrivedi deleted the at-upper-camel-case branch June 1, 2015 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enforce UpperCamelCase naming convention

3 participants