Commit Graph

30 Commits

Author SHA1 Message Date
JP Simard e546ecb094 add checkstyle reporter. addresses #277 2015-12-25 02:31:38 -05:00
JP Simard 8d529f1804 Fix multibyte handling in many rules 2015-12-24 20:59:15 -05:00
Norio Nomura 859e8b2f03 Change to fail on YAML parser error if configuration file is required
This will help user to noticing YAML parser error.
2015-12-23 15:29:19 +09:00
Norio Nomura a1f734e55d Add printing error when Yaml.load(_:) returns error
This will help finding error from YAML parser without using third-party YAML validator.
2015-12-23 15:08:54 +09:00
Yasuhiro Inami 05efe54d28 Add ClosingBraceRule. 2015-12-19 15:59:32 +09:00
michallaskowski f3e5277641 Exclude files from included folders. 2015-12-13 01:20:49 +01:00
JP Simard f9f9d3c10e get correctable rules by casting configured rules as CorrectableRule 2015-12-05 21:09:43 -08:00
JP Simard 7a12c49560 Don't correct if a rule is disabled locally 2015-12-05 21:09:43 -08:00
JP Simard c08c300c20 Don't correct if a rule is disabled globally 2015-12-05 21:09:43 -08:00
JP Simard 5be62adfd4 report corrections 2015-12-05 21:09:43 -08:00
JP Simard f30b0791db autocorrect trailing semicolon violations 2015-12-05 21:09:43 -08:00
JP Simard e953a3a57b autocorrect trailing newline violations 2015-12-05 21:09:43 -08:00
JP Simard cea94ce255 autocorrect trailing whitespace violations 2015-12-05 21:09:43 -08:00
JP Simard 7933d7c23a add dictionary of corrections to RuleDescription
pre-correction keys map to post-correction values
2015-12-05 21:09:43 -08:00
JP Simard a01ebc5167 introduce CorrectableRule protocol and Linter.correct() 2015-12-05 21:09:43 -08:00
JP Simard 0ca4221161 move Configuration.lintableFilesForPath out of extension and into framework 2015-12-05 20:49:49 -08:00
JP Simard c257fc7180 add RuleDescription.consoleDescription 2015-11-30 01:48:45 -08:00
JP Simard 9cc9e64374 add Valid Docs rule 2015-11-29 21:58:16 -08:00
Marcelo Fabri 1fec14180f Adding LegacyConstructorRule 2015-11-29 01:46:06 -02:00
JP Simard e0df8df817 Merge pull request #216 from realm/jp-queue-logs
Fix an issue where logs would be printed asynchronously
2015-11-18 08:21:07 -08:00
JP Simard 173c0058ca Merge pull request #217 from crimsonwoods/fix_issue_213_wrong_line_number_is_detected
Fix an issue: wrong line number and/or index is reported
2015-11-17 19:44:57 -08:00
crimsonwoods 4806e31f23 Rename lineAndCharacterForByteOffset to lineAndCharacterForCharacterOffset.
According to a change 247f02eff4,
method name should be changed.
2015-11-18 12:05:08 +09:00
JP Simard 306a80a00a Fix an issue where logs would be printed asynchronously. Fixes #200. 2015-11-17 18:15:13 -08:00
JP Simard 73896ee04c add force try rule 2015-11-17 16:51:37 -08:00
JP Simard c31f33b49e check isEmpty rather than test count against zero 2015-11-17 13:17:24 -08:00
JP Simard d269bde1fa allow trailing semicolons in comments 2015-11-17 11:41:02 -08:00
JP Simard 0a2b9e8a54 add trailing semicolon rule 2015-11-17 10:46:26 -08:00
JP Simard 1048fb05e7 clean up Configuration.swift 2015-11-17 10:40:54 -08:00
JP Simard 989127cbe0 [StyleViolation] use RuleDescription's description when reason is nil
Many cases just used a static string that was nearly identical to the rule
description as the `reason` parameter when initializing a StyleViolation.
2015-11-17 10:25:57 -08:00
JP Simard 8a30cb2e3d organize Xcode project
make Extensions, Models & Protocols groups under SourceKittenFramework
2015-11-15 15:07:25 -08:00