danger-detekt 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 519b5534aedf9ac333eac8ae8c2e3befc3b977e0966d2d3196b6247d332f94e5
4
+ data.tar.gz: 59fd19632fcb324ee1cf7fc0c800fbb780a0e17366c2b9de4de128b152c3ccec
5
+ SHA512:
6
+ metadata.gz: 73cdb24c6447962f0d874cae3879e35e361e4e23908e07bcc84faee1d715e0c25d2a0abbf097fc698e1a37c0a532f28815f3484f4a0a6d64543df096691c3a84
7
+ data.tar.gz: 4368e2f955e4b8a4785cc45bbaea8d271ca6b5098d8c68de1426783dddf280ef183437d8425df9f6d5f2cbd71ad9338378dec5f867403019cc187e3cbcf1790c
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
@@ -0,0 +1,13 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="ModuleRunConfigurationManager">
4
+ <shared />
5
+ </component>
6
+ <component name="NewModuleRootManager">
7
+ <content url="file://$MODULE_DIR$" />
8
+ <orderEntry type="jdk" jdkName="ruby-2.6.1-p33 (2)" jdkType="RUBY_SDK" />
9
+ <orderEntry type="sourceFolder" forTests="false" />
10
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v2.0.1, ruby-2.6.1-p33 (2)) [gem]" level="application" />
11
+ <orderEntry type="library" scope="PROVIDED" name="minitest (v5.11.3, ruby-2.6.1-p33 (2)) [gem]" level="application" />
12
+ </component>
13
+ </module>
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Encoding" addBOMForNewFiles="with NO BOM" />
4
+ </project>
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="Rubocop" enabled="false" level="WARNING" enabled_by_default="false" />
5
+ </profile>
6
+ </component>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="JavaScriptSettings">
4
+ <option name="languageLevel" value="ES6" />
5
+ </component>
6
+ <component name="ProjectRootManager" version="2" project-jdk-name="ruby-2.6.1-p33" project-jdk-type="RUBY_SDK" />
7
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/danger-detekt.iml" filepath="$PROJECT_DIR$/.idea/danger-detekt.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,319 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="ca3414be-65df-4a5b-9f02-b138db3cfbd5" name="Default Changelist" comment="">
5
+ <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
6
+ <change beforePath="$PROJECT_DIR$/danger-detekt.gemspec" beforeDir="false" afterPath="$PROJECT_DIR$/danger-detekt.gemspec" afterDir="false" />
7
+ <change beforePath="$PROJECT_DIR$/lib/danger/detekt.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/danger/detekt.rb" afterDir="false" />
8
+ </list>
9
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
10
+ <option name="SHOW_DIALOG" value="false" />
11
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
12
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
13
+ <option name="LAST_RESOLUTION" value="IGNORE" />
14
+ </component>
15
+ <component name="CoverageDataManager">
16
+ <SUITE FILE_PATH="coverage/danger_detekt@IRB_console__danger_detekt.rcov" NAME="IRB console: danger-detekt Coverage Results" MODIFIED="1549629624970" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="danger-detekt" />
17
+ <SUITE FILE_PATH="coverage/danger_detekt@test_that_it_has_a_version_number__danger_detekt.rcov" NAME="test_that_it_has_a_version_number: danger-detekt Coverage Results" MODIFIED="1549629054274" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="danger-detekt" />
18
+ <SUITE FILE_PATH="coverage/danger_detekt@Unnamed.rcov" NAME="Unnamed Coverage Results" MODIFIED="1549629650245" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="danger-detekt" />
19
+ </component>
20
+ <component name="FileEditorManager">
21
+ <leaf>
22
+ <file pinned="false" current-in-tab="false">
23
+ <entry file="file://$PROJECT_DIR$/Gemfile">
24
+ <provider selected="true" editor-type-id="text-editor" />
25
+ </entry>
26
+ </file>
27
+ <file pinned="false" current-in-tab="true">
28
+ <entry file="file://$PROJECT_DIR$/danger-detekt.gemspec">
29
+ <provider selected="true" editor-type-id="text-editor">
30
+ <state relative-caret-position="255">
31
+ <caret line="15" column="2" selection-start-line="15" selection-start-column="2" selection-end-line="15" selection-end-column="2" />
32
+ </state>
33
+ </provider>
34
+ </entry>
35
+ </file>
36
+ <file pinned="false" current-in-tab="false">
37
+ <entry file="file://$PROJECT_DIR$/Rakefile">
38
+ <provider selected="true" editor-type-id="text-editor">
39
+ <state>
40
+ <caret selection-end-line="10" />
41
+ </state>
42
+ </provider>
43
+ </entry>
44
+ </file>
45
+ <file pinned="false" current-in-tab="false">
46
+ <entry file="file://$PROJECT_DIR$/test/test_helper.rb">
47
+ <provider selected="true" editor-type-id="text-editor" />
48
+ </entry>
49
+ </file>
50
+ <file pinned="false" current-in-tab="false">
51
+ <entry file="file://$PROJECT_DIR$/test/danger/detekt_test.rb">
52
+ <provider selected="true" editor-type-id="text-editor" />
53
+ </entry>
54
+ </file>
55
+ <file pinned="false" current-in-tab="false">
56
+ <entry file="file://$PROJECT_DIR$/lib/danger/detekt.rb">
57
+ <provider selected="true" editor-type-id="text-editor">
58
+ <state relative-caret-position="204">
59
+ <caret line="12" selection-start-line="12" selection-end-line="12" />
60
+ </state>
61
+ </provider>
62
+ </entry>
63
+ </file>
64
+ <file pinned="false" current-in-tab="false">
65
+ <entry file="file://$PROJECT_DIR$/lib/danger/detekt/version.rb">
66
+ <provider selected="true" editor-type-id="text-editor" />
67
+ </entry>
68
+ </file>
69
+ </leaf>
70
+ </component>
71
+ <component name="FindInProjectRecents">
72
+ <findStrings>
73
+ <find>ktl</find>
74
+ <find>ktlin</find>
75
+ <find>kt</find>
76
+ </findStrings>
77
+ </component>
78
+ <component name="Git.Settings">
79
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
80
+ </component>
81
+ <component name="IdeDocumentHistory">
82
+ <option name="CHANGED_PATHS">
83
+ <list>
84
+ <option value="$PROJECT_DIR$/lib/danger/detekt.rb" />
85
+ <option value="$PROJECT_DIR$/danger-detekt.gemspec" />
86
+ </list>
87
+ </option>
88
+ </component>
89
+ <component name="ProjectFrameBounds" extendedState="6">
90
+ <option name="x" value="108" />
91
+ <option name="y" value="-15" />
92
+ <option name="width" value="4533" />
93
+ <option name="height" value="1920" />
94
+ </component>
95
+ <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
96
+ <component name="ProjectView">
97
+ <navigator proportions="" version="1">
98
+ <foldersAlwaysOnTop value="true" />
99
+ </navigator>
100
+ <panes>
101
+ <pane id="Scope" />
102
+ <pane id="ProjectPane">
103
+ <subPane>
104
+ <expand>
105
+ <path>
106
+ <item name="danger-detekt" type="b2602c69:ProjectViewProjectNode" />
107
+ <item name="danger-detekt" type="462c0819:PsiDirectoryNode" />
108
+ </path>
109
+ <path>
110
+ <item name="danger-detekt" type="b2602c69:ProjectViewProjectNode" />
111
+ <item name="danger-detekt" type="462c0819:PsiDirectoryNode" />
112
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
113
+ </path>
114
+ <path>
115
+ <item name="danger-detekt" type="b2602c69:ProjectViewProjectNode" />
116
+ <item name="danger-detekt" type="462c0819:PsiDirectoryNode" />
117
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
118
+ <item name="danger" type="462c0819:PsiDirectoryNode" />
119
+ </path>
120
+ <path>
121
+ <item name="danger-detekt" type="b2602c69:ProjectViewProjectNode" />
122
+ <item name="danger-detekt" type="462c0819:PsiDirectoryNode" />
123
+ <item name="test" type="462c0819:PsiDirectoryNode" />
124
+ </path>
125
+ <path>
126
+ <item name="danger-detekt" type="b2602c69:ProjectViewProjectNode" />
127
+ <item name="danger-detekt" type="462c0819:PsiDirectoryNode" />
128
+ <item name="test" type="462c0819:PsiDirectoryNode" />
129
+ <item name="danger" type="462c0819:PsiDirectoryNode" />
130
+ </path>
131
+ </expand>
132
+ <select />
133
+ </subPane>
134
+ </pane>
135
+ </panes>
136
+ </component>
137
+ <component name="PropertiesComponent">
138
+ <property name="WebServerToolWindowFactoryState" value="false" />
139
+ <property name="last_opened_file_path" value="$PROJECT_DIR$/../danger-ktlint" />
140
+ <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
141
+ <property name="nodejs_npm_path_reset_for_default_project" value="true" />
142
+ <property name="settings.editor.selected.configurable" value="org.jetbrains.plugins.ruby.settings.RubyActiveModuleSdkConfigurable" />
143
+ </component>
144
+ <component name="RecentsManager">
145
+ <key name="MoveFile.RECENT_KEYS">
146
+ <recent name="C:\Projects\danger-detekt\lib\danger" />
147
+ </key>
148
+ </component>
149
+ <component name="RunDashboard">
150
+ <option name="ruleStates">
151
+ <list>
152
+ <RuleState>
153
+ <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
154
+ </RuleState>
155
+ <RuleState>
156
+ <option name="name" value="StatusDashboardGroupingRule" />
157
+ </RuleState>
158
+ </list>
159
+ </option>
160
+ </component>
161
+ <component name="RunManager" selected="Gem Command.Unnamed">
162
+ <configuration name="Unnamed" type="CommandRunConfigurationType" factoryName="Gem Command" nameIsGenerated="true">
163
+ <module name="danger-detekt" />
164
+ <COMMAND_RUN_CONFIGURATION NAME="RUBY_ARGS" VALUE="" />
165
+ <COMMAND_RUN_CONFIGURATION NAME="WORK DIR" VALUE="$MODULE_DIR$" />
166
+ <COMMAND_RUN_CONFIGURATION NAME="SHOULD_USE_SDK" VALUE="false" />
167
+ <COMMAND_RUN_CONFIGURATION NAME="ALTERN_SDK_NAME" VALUE="" />
168
+ <COMMAND_RUN_CONFIGURATION NAME="myPassParentEnvs" VALUE="true" />
169
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
170
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
171
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" track_test_folders="true" runner="rcov" />
172
+ <COMMAND_CONFIG_SETTINGS_ID NAME="GEM_NAME" VALUE="bundler" />
173
+ <COMMAND_CONFIG_SETTINGS_ID NAME="EXECUTABLE_NAME" VALUE="gem" />
174
+ <COMMAND_CONFIG_SETTINGS_ID NAME="EXECUTABLE_ARGS" VALUE="install./danger-detekt-0.1.0.gem" />
175
+ <COMMAND_CONFIG_SETTINGS_ID NAME="WORKING_DIR" VALUE="$MODULE_DIR$" />
176
+ <method v="2" />
177
+ </configuration>
178
+ <configuration name="IRB console: danger-detekt" type="IrbRunConfigurationType" factoryName="IRB console" temporary="true">
179
+ <module name="danger-detekt" />
180
+ <IRB_RUN_CONFIG NAME="RUBY_ARGS" VALUE="" />
181
+ <IRB_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$" />
182
+ <IRB_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
183
+ <IRB_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
184
+ <IRB_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
185
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
186
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
187
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" track_test_folders="true" runner="rcov" />
188
+ <IRB_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$APPLICATION_HOME_DIR$/rb/testing/runner/irb.rb" />
189
+ <IRB_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="--prompt simple" />
190
+ <IRB_RUN_CONFIG NAME="IS_RAILS_CONSOLE" VALUE="false" />
191
+ <method v="2" />
192
+ </configuration>
193
+ <configuration name="test_that_it_has_a_version_number: danger-detekt" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest" temporary="true">
194
+ <module name="danger-detekt" />
195
+ <predefined_log_file enabled="true" id="RUBY_TESTUNIT" />
196
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-Ilib:test" />
197
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
198
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
199
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
200
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
201
+ <envs>
202
+ <env name="JRUBY_OPTS" value="-X+O" />
203
+ </envs>
204
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
205
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
206
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" track_test_folders="true" runner="rcov" />
207
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
208
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/test/danger/detekt_test.rb" />
209
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
210
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="test_that_it_has_a_version_number" />
211
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_METHOD" />
212
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
213
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
214
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
215
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
216
+ <method v="2" />
217
+ </configuration>
218
+ <list>
219
+ <item itemvalue="Gem Command.Unnamed" />
220
+ <item itemvalue="Test::Unit/Shoulda/Minitest.test_that_it_has_a_version_number: danger-detekt" />
221
+ <item itemvalue="IRB console.IRB console: danger-detekt" />
222
+ </list>
223
+ <recent_temporary>
224
+ <list>
225
+ <item itemvalue="IRB console.IRB console: danger-detekt" />
226
+ <item itemvalue="Test::Unit/Shoulda/Minitest.test_that_it_has_a_version_number: danger-detekt" />
227
+ </list>
228
+ </recent_temporary>
229
+ </component>
230
+ <component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" />
231
+ <component name="SvnConfiguration">
232
+ <configuration />
233
+ </component>
234
+ <component name="TaskManager">
235
+ <task active="true" id="Default" summary="Default task">
236
+ <changelist id="ca3414be-65df-4a5b-9f02-b138db3cfbd5" name="Default Changelist" comment="" />
237
+ <created>1549627795933</created>
238
+ <option name="number" value="Default" />
239
+ <option name="presentableId" value="Default" />
240
+ <updated>1549627795933</updated>
241
+ <workItem from="1549627797412" duration="2928000" />
242
+ </task>
243
+ <servers />
244
+ </component>
245
+ <component name="TestHistory">
246
+ <history-entry file="test_that_it_has_a_version_number__danger-detekt - 2019.02.08 at 14h 16m 27s.xml">
247
+ <configuration name="test_that_it_has_a_version_number: danger-detekt" configurationId="TestUnitRunConfigurationType" />
248
+ </history-entry>
249
+ <history-entry file="test_that_it_has_a_version_number__danger-detekt - 2019.02.08 at 14h 30m 54s.xml">
250
+ <configuration name="test_that_it_has_a_version_number: danger-detekt" configurationId="TestUnitRunConfigurationType" />
251
+ </history-entry>
252
+ </component>
253
+ <component name="TimeTrackingManager">
254
+ <option name="totallyTimeSpent" value="2928000" />
255
+ </component>
256
+ <component name="ToolWindowManager">
257
+ <frame x="3832" y="-8" width="2576" height="1416" extended-state="6" />
258
+ <editor active="true" />
259
+ <layout>
260
+ <window_info id="Favorites" side_tool="true" />
261
+ <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.25" />
262
+ <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
263
+ <window_info anchor="bottom" id="Docker" show_stripe_button="false" />
264
+ <window_info anchor="bottom" id="Database Changes" />
265
+ <window_info anchor="bottom" id="Version Control" />
266
+ <window_info anchor="bottom" id="Terminal" />
267
+ <window_info anchor="bottom" id="Event Log" side_tool="true" />
268
+ <window_info anchor="bottom" id="Message" order="0" />
269
+ <window_info anchor="bottom" id="Find" order="1" />
270
+ <window_info anchor="bottom" id="Run" order="2" visible="true" weight="0.32969603" />
271
+ <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
272
+ <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
273
+ <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
274
+ <window_info anchor="bottom" id="TODO" order="6" />
275
+ <window_info anchor="right" id="Database" />
276
+ <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
277
+ <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
278
+ <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
279
+ </layout>
280
+ </component>
281
+ <component name="TypeScriptGeneratedFilesManager">
282
+ <option name="version" value="1" />
283
+ </component>
284
+ <component name="editorHistoryManager">
285
+ <entry file="file://$PROJECT_DIR$/lib/danger/detekt/version.rb">
286
+ <provider selected="true" editor-type-id="text-editor" />
287
+ </entry>
288
+ <entry file="file://$PROJECT_DIR$/test/test_helper.rb">
289
+ <provider selected="true" editor-type-id="text-editor" />
290
+ </entry>
291
+ <entry file="file://$PROJECT_DIR$/test/danger/detekt_test.rb">
292
+ <provider selected="true" editor-type-id="text-editor" />
293
+ </entry>
294
+ <entry file="file://$PROJECT_DIR$/lib/danger/detekt.rb">
295
+ <provider selected="true" editor-type-id="text-editor">
296
+ <state relative-caret-position="204">
297
+ <caret line="12" selection-start-line="12" selection-end-line="12" />
298
+ </state>
299
+ </provider>
300
+ </entry>
301
+ <entry file="file://$PROJECT_DIR$/Gemfile">
302
+ <provider selected="true" editor-type-id="text-editor" />
303
+ </entry>
304
+ <entry file="file://$PROJECT_DIR$/Rakefile">
305
+ <provider selected="true" editor-type-id="text-editor">
306
+ <state>
307
+ <caret selection-end-line="10" />
308
+ </state>
309
+ </provider>
310
+ </entry>
311
+ <entry file="file://$PROJECT_DIR$/danger-detekt.gemspec">
312
+ <provider selected="true" editor-type-id="text-editor">
313
+ <state relative-caret-position="255">
314
+ <caret line="15" column="2" selection-start-line="15" selection-start-column="2" selection-end-line="15" selection-end-column="2" />
315
+ </state>
316
+ </provider>
317
+ </entry>
318
+ </component>
319
+ </project>
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.1
7
+ before_install: gem install bundler -v 2.0.1
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at vaios.tsitsonis@theblueground.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in danger-detekt.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Vaios Tsitsonis
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,43 @@
1
+ # Danger::Detekt
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/danger/detekt`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'danger-detekt'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install danger-detekt
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/danger-detekt. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the Danger::Detekt project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/danger-detekt/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ task :default => :test
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "danger/detekt"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,31 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "danger/detekt/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "danger-detekt"
8
+ spec.version = Danger::Detekt::VERSION
9
+ spec.authors = ["Vaios Tsitsonis"]
10
+ spec.email = ["vaios.tsitsonis@theblueground.com"]
11
+
12
+ spec.summary = %q{detekt plugin for danger}
13
+ spec.description = %q{This plugin is used in order to integrate detekt in danger}
14
+ spec.homepage = "https://github.com/St4B/danger-detekt.git"
15
+ spec.license = "MIT"
16
+
17
+ # Specify which files should be added to the gem when it is released.
18
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
19
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
20
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
21
+ end
22
+ spec.bindir = "exe"
23
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
+ spec.require_paths = ["lib"]
25
+
26
+ spec.add_runtime_dependency 'danger-plugin-api', '~> 1.0'
27
+
28
+ spec.add_development_dependency "bundler", "~> 2.0"
29
+ spec.add_development_dependency "rake", "~> 10.0"
30
+ spec.add_development_dependency "minitest", "~> 5.0"
31
+ end
@@ -0,0 +1,42 @@
1
+ require "danger/detekt/version"
2
+
3
+ module Danger
4
+ class Detekt < Plugin
5
+ def run()
6
+ unless detekt_exists?
7
+ fail("You should install detekt first.")
8
+ return
9
+ end
10
+
11
+ targets = target_files(git.added_files + git.modified_files)
12
+ return if targets.empty?
13
+
14
+ results = JSON.parse(`detekt #{targets.join(' ')} --reporter=json --relative`)
15
+ return if results.empty?
16
+
17
+ send_markdown_comment(results)
18
+ end
19
+
20
+ def target_files(changed_files)
21
+ changed_files.select do |file|
22
+ file.end_with?('.kt')
23
+ end
24
+ end
25
+
26
+ def send_markdown_comment(results)
27
+ results.each {|result|
28
+ result['errors'].each {|error|
29
+ file = "#{result['file']}#L#{error['line']}"
30
+ message = "#{github.html_link(file)}: #{error['message']}"
31
+ fail(message)
32
+ }
33
+ }
34
+ end
35
+
36
+ def detekt_exists?
37
+ system 'which detekt > /dev/null 2>&1'
38
+ end
39
+ end
40
+ end
41
+
42
+
@@ -0,0 +1,5 @@
1
+ module Danger
2
+ module Detekt
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,118 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: danger-detekt
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Vaios Tsitsonis
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-02-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: danger-plugin-api
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: minitest
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '5.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '5.0'
69
+ description: This plugin is used in order to integrate detekt in danger
70
+ email:
71
+ - vaios.tsitsonis@theblueground.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - ".idea/danger-detekt.iml"
78
+ - ".idea/encodings.xml"
79
+ - ".idea/inspectionProfiles/Project_Default.xml"
80
+ - ".idea/misc.xml"
81
+ - ".idea/modules.xml"
82
+ - ".idea/vcs.xml"
83
+ - ".idea/workspace.xml"
84
+ - ".travis.yml"
85
+ - CODE_OF_CONDUCT.md
86
+ - Gemfile
87
+ - LICENSE.txt
88
+ - README.md
89
+ - Rakefile
90
+ - bin/console
91
+ - bin/setup
92
+ - danger-detekt.gemspec
93
+ - lib/danger/detekt.rb
94
+ - lib/danger/detekt/version.rb
95
+ homepage: https://github.com/St4B/danger-detekt.git
96
+ licenses:
97
+ - MIT
98
+ metadata: {}
99
+ post_install_message:
100
+ rdoc_options: []
101
+ require_paths:
102
+ - lib
103
+ required_ruby_version: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ version: '0'
108
+ required_rubygems_version: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: '0'
113
+ requirements: []
114
+ rubygems_version: 3.0.1
115
+ signing_key:
116
+ specification_version: 4
117
+ summary: detekt plugin for danger
118
+ test_files: []