Scott Hoyt
0691b79a08
Rename Rule Configurations.
2016-01-23 17:42:13 -08:00
Scott Hoyt
873edb724b
Provided convenience property params for RuleLevelsConfig.
2016-01-23 17:42:13 -08:00
Scott Hoyt
05a65afc72
Removed ViolationLeveLRule in favor of ConfigurationProviderRule.
2016-01-23 17:42:13 -08:00
JP Simard
ace0999154
update SourceKitten to 0.8.0
2016-01-22 19:19:15 -08:00
Norio Nomura
7c4b7f34ac
Reduce creation of Location
...
Performance improvement is small on real usage.
But, it reduces the duration of `make test`
from:
```
…
✓ testTypeBodyLengths (15.942 seconds)
…
Executed 70 tests, with 0 failures (0 unexpected) in 22.355 (22.393) seconds
```
to:
```
…
✓ testTypeBodyLengths (8.197 seconds)
…
Executed 70 tests, with 0 failures (0 unexpected) in 14.455 (14.500) seconds
```
2016-01-23 11:59:56 +09:00
Marcelo Fabri
d68161da96
Renaming functions to make clear that whitespace only lines are ignored too
2016-01-21 22:29:38 -08:00
Marcelo Fabri
3416217927
TypeBodyLengthRule should not count comment and whitespace lines
2016-01-21 22:29:38 -08:00
Marcelo Fabri
75a4f2f2dc
Changing reason message
2016-01-14 21:24:24 -08:00
Marcelo Fabri
12eb3fece7
Updating reason message
2016-01-14 20:47:17 -08:00
Marcelo Fabri
579872cd30
Handling multiline comments and correcting line count on violation reason
2016-01-14 20:26:20 -08:00
Marcelo Fabri
ea33640296
Caching
2016-01-14 20:25:51 -08:00
Marcelo Fabri
72f401497d
Refactoring
2016-01-14 20:25:51 -08:00
Marcelo Fabri
07c076689b
Address performance issues
2016-01-14 20:24:47 -08:00
Marcelo Fabri
04b2510926
FunctionBodyLengthRule should not count comment lines
2016-01-14 20:24:47 -08:00
Scott Hoyt
62a0d83f9b
Migrated FunctionBodyLengthRule to ViolationLevelRule.
2016-01-13 19:45:27 -08:00
Sebastian Grail
2d27db5e1f
Fix typo in FunctionBodyLengthRule and TypeBodyLengthRule
2016-01-04 15:38:54 +11:00
JP Simard
8d529f1804
Fix multibyte handling in many rules
2015-12-24 20:59:15 -05: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
76b30ee19b
make all rule descriptions follow a consistent format
2015-11-17 10:18:29 -08:00
JP Simard
8e12dbd81d
move ASTRule function implementations into a protocol extension
2015-11-04 15:39:29 -08:00
JP Simard
0335f155ab
Perform major refactor of rule description, identifiers and examples
...
Fixes #183 .
2015-11-04 12:24:33 -08:00
JP Simard
5cb80cfd22
All rules now print their identifiers in reports. Fixes #180 .
2015-11-04 10:30:36 -08:00
Gilles Grousset
7feb26ebe2
Refactored Rule reference in StyleViolation
...
Now uses a String with the rule identifier
2015-11-03 13:31:29 +01:00
Gilles Grousset
7328b41da8
Added rule reference to StyleViolation
...
- Added rule reference to StyleViolation
- Added rule_id field on JSONReporter and CSVReporter
2015-11-01 02:00:04 +01:00
Keith Smiley
fa97ce073a
Update rule descriptions to not include specifics
...
Now that configuration of rules has been added, having these hard coded
lengths is no longer valid.
2015-09-30 13:22:37 -07:00
JP Simard
25017c4ea4
[Configuration] allow configuring parameterized rules from the configuration file
2015-09-21 11:08:29 -07:00
JP Simard
fe5f1affc9
ViolationSeverity is now only .Warning and .Error
2015-08-30 22:21:59 -07:00
JP Simard
29536759d1
update for Xcode 7 Beta 6
2015-08-27 14:20:51 -07:00
JP Simard
e95625ee79
update for swift 2
2015-08-27 14:20:51 -07:00
Nikolaj Schumacher
d8e0047ed2
Add caching of Structure and SyntaxMap.
...
There is no need to read them individually for every rule.
This cuts execution time by more than 50%.
2015-05-26 17:24:08 +02:00
JP Simard
a68a886d3f
minor tweaks
2015-05-25 15:23:21 -07:00
Chris Eidhof
e7a4e9f651
Rename examples from correct/failure to non-triggering and triggering
2015-05-25 14:46:14 -07:00
Chris Eidhof
20fd31672a
List of all the rules
2015-05-25 14:46:13 -07:00
Chris Eidhof
89ea957b05
Changed RuleExample to be a struct
2015-05-25 14:46:13 -07:00
JP Simard
e2df0546d3
Split Rule into Rule and ParameterizedRule protocols ( fixes #21 )
2015-05-20 18:27:16 +02:00
JP Simard
fc625656ae
[ASTRule] Made several rules conform to ASTRule
2015-05-19 15:36:07 +02:00
Aaron Daub
15a100153d
Have the Rule protocol define its members as non-static so that we can pass around instances of Rule
2015-05-19 07:44:11 +02:00
JP Simard
43032d86c2
Only report the highest severity violation for function and type body rules
2015-05-18 06:47:12 +02:00
JP Simard
8753bece31
VariableNameRule
2015-05-18 06:06:49 +02:00
JP Simard
e4c05d592a
FunctionBodyLengthRule
2015-05-18 05:58:57 +02:00