Provide fixits for some of the issues

Issue #31 on hold
Former user created an issue

It would be great to be able to fix some of the issues just by pressing a "fixit"-button. I think there are some low-hanging fruits like - adding a prefix to unprefixed category methods (UnprefixedCategoryMethod) - adding a prefix to unprefixed classes (UnprefixedClass) - remove redundant inclusion directive (RedundantInclude) - applying the null coalescing op (NullCoalescingOp) - replace the macro-based include guards (MacroBasedIncludeGuard) - ...

Some more complicated cases would be - generating a hash-method for classes that only implemented -isEqual (IsEqualAndHash-rule) - undetaching delegates in the dealloc-method (UndetachedDelegate) - enable compiler warnings (CompilerWarnings) - ...

This would really making the tool more worthy.

Comments (1)

  1. Ali Rantakari repo owner

    Thank you for the suggestion. I agree that this would be useful, but it currently has fairly low priority on the backlog.

  2. Log in to comment