4341 Commits

Author SHA1 Message Date
abosch
3130de0bb1 Remove sout - #41 2016-11-14 20:47:32 +01:00
abosch
4578e6f4b9 Start migration of ktLint test cases - #41 2016-11-14 20:44:57 +01:00
abosch
9f50ffc8b4 Add compileFromContent to kt compiler and mark it unstable - #41 2016-11-14 20:44:39 +01:00
abosch
b799ce0a3e Add unstable annotation which indicates experimental members - #41 2016-11-14 20:43:48 +01:00
abosch
8686b34cbb Make auto correct to be enabled as default which makes testing easier, in production the global flag autoCorrect in the yaml config must still be turned on - #41 2016-11-14 20:43:00 +01:00
abosch
83e613bb32 Apply formatting - #41 2016-11-10 23:28:17 +01:00
abosch
3bcdf30c0f Migrate remaining rules from ktlint - #41 2016-11-10 22:38:13 +01:00
abosch
70227ffa32 Correct test case - Closes#43 2016-11-10 21:34:39 +01:00
abosch
f5bfc8665b Return Detektion object after detekt.run() was called, unifying all possible results - Closes#43 2016-11-10 21:12:58 +01:00
abosch
45fa74eb11 Support auto correction of smelly code locations - #43 2016-11-10 20:13:42 +01:00
abosch
00e956bfc9 Improve the using inside gradle build section 2016-11-10 17:08:22 +01:00
abosch
45b5fc4945 Extend readme for new withConfig function - Closes#42 2016-11-10 17:03:43 +01:00
abosch
953bcf2b83 Simplify configuration usage for api users - Closes#42 2016-11-10 16:56:53 +01:00
abosch
60bfeffcb1 Lazily create new instances of rule sets and pass rule set sub configuration for rules - #42 2016-11-10 16:30:40 +01:00
abosch
16c9ede355 Start migrating ktlint formatting rules - #41 2016-11-10 15:32:40 +01:00
abosch
2247154690 Include junit-jupiter - Closes#40 2016-11-09 15:03:26 +01:00
abosch
8fb691f6b4 Consider only lambda extensions which help to skip checks or iterating - Closes#38 2016-11-09 14:20:01 +01:00
abosch
c735ddf9a0 Implement ThrowException rules - Closes#32 2016-11-09 13:40:29 +01:00
abosch
8881c67564 Implement CatchException rules - Closes#31 2016-11-09 13:09:41 +01:00
abosch
febd0f290b Implement NestedBlockDepth rule - Closes#34 2016-11-09 12:01:20 +01:00
abosch
fdf1724610 Implement ExplicitGCCall rule - Closes#30 2016-11-09 11:16:43 +01:00
abosch
a1b4f6876e Implement ExplicitGCCall rule - Closes#29 2016-11-09 11:09:27 +01:00
abosch
c4b2d71614 Extends EqualsWithHashCode rule to support nested classes - Closes#29 2016-11-08 21:41:33 +01:00
abosch
70417d563c Implement EqualsWithHashCode rule - Closes#29 2016-11-08 21:13:17 +01:00
abosch
a76a1741d9 Move junit platform plugin to parent gradle build - Closes#21 2016-11-08 20:34:09 +01:00
abosch
77642b7556 Clean up gradle multiproject configuration - Closes#21 2016-11-08 20:16:56 +01:00
abosch
b00c353dbb Implement DuplicateCaseInWhen rule - Closes#28 2016-11-08 18:10:43 +01:00
abosch
f0c561aaae Implement EmptyWhenBlock rule - Closes#27 2016-11-08 17:46:53 +01:00
abosch
bd20b7a6df Use the maven-publish plugin everywhere - Closes#33 2016-11-08 13:37:04 +01:00
abosch
83a386a061 Write documentation for detekt-api module - Closes#18 M2 2016-11-07 00:18:30 +01:00
abosch
b0a68dd00c Implement empty code rules - Closes#26 2016-11-06 01:07:48 +01:00
abosch
3e6775bb7d Remove detekt-gradle-plugin from build 2016-11-03 13:14:45 +01:00
abosch
b2afe1afb9 Use kotlin highlighting for custom ruleset section 2016-11-03 12:34:52 +01:00
abosch
3b73167ce4 Write using detekt in custom gradle projects - Closes#25 2016-11-03 12:31:05 +01:00
abosch
e0393c71e1 Ignore empty strings for filters and rulesets 2016-11-03 12:17:40 +01:00
abosch
d717330b99 Delete test and add it to ignore 2016-11-03 12:16:57 +01:00
abosch
a8f759a0d5 Use name in compact string instead of entity signature 2016-11-03 10:48:25 +01:00
abosch
6e0f7c3d91 Write detekt gradle plugin - #24 2016-11-03 10:33:09 +01:00
abosch
4c6fe814bc Increment version to m2 - Closes#23 2016-10-29 23:30:36 +02:00
ArtiSmarti
8d18312144 Add default detekt config yaml file - Closes#20 M1 2016-10-26 22:19:22 +02:00
ArtiSmarti
78fd7a4628 Change naming of empty config constant inside object literal as it is not a real constant 2016-10-26 21:27:42 +02:00
ArtiSmarti
3f82d70138 Consider constants when evaluating variable naming conventions - Closes#19 2016-10-26 21:24:16 +02:00
ArtiSmarti
866e2bd77f Ensure filters and rulesets can be really empty and not having one empty element - Closes#2 2016-10-26 21:23:24 +02:00
ArtiSmarti
7d3a457b99 Store relative paths for findings - Closes#16 2016-10-26 21:00:16 +02:00
Artur Bosch
33bf0e0623 Add license 2016-10-23 21:12:22 +00:00
ArtiSmarti
2dd9287fc7 Add newline in jcommander usage message in readme 2016-10-23 23:11:03 +02:00
ArtiSmarti
cab16eab27 Update all spek versions to 1.1.19 2016-10-23 22:43:01 +02:00
ArtiSmarti
43d20f2b84 Add java keyword to code highlighting 2016-10-23 22:12:37 +02:00
ArtiSmarti
7b5861b461 Add new testing your rules section 2016-10-23 22:11:54 +02:00
ArtiSmarti
da612fb86f Write readme 2016-10-23 22:05:54 +02:00