tree: 024eb36b21764c95b73aed3c23429d6b68b53363 [path history] [tgz]
  1. test/
  2. .gitignore
  3. cipd.yaml
  4. Makefile
  5. objective_c_style.go
  6. objective_c_style_test.go
  7. README.md
go/src/infra/tricium/functions/objective-c-style/README.md

Objective-C Style Checker

Performs the following checks:

  1. Tricium analyzer checking inappropriate use of get prefix in Objective-C methods.

    Flags Objective-C methods which have “get” prefix and return type other than void or don't have any arguments, which could be used for out arguments.

    See this guide for more details: https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/CodingGuidelines/Articles/NamingMethods.html#:~:text=The%20use%20of%20%22get%22%20is%20unnecessary,%20unless%20one%20or%20more%20values%20are%20returned%20indirectly.

Consumes Tricium FILES and produces Tricium RESULTS comments.

Development and Testing

Local testing:

$ go build
$ ./objective-c-style --input=test --output=output