├── .github
└── CODEOWNERS
├── LICENSE
├── README.md
├── SECURITY.md
├── eclipse
├── eclipse-Java-save-action.png
├── sonar-cleanup.xml
├── sonar-formatter.xml
├── sonar-wildcard-exports.epf
└── sonar.importorder
├── git
└── dogfood.sh
├── intellij
├── codestyle_sonar_developer_toolset.xml
├── intellij-code-style.png
├── intellij-eclipse-formatter_4_5_1.png
├── intellij-groovy-indents.png
├── intellij-imports.png
├── intellij-java-indents.png
├── intellij-javascript-prettier.png
├── intellij-javscript-actionsonsave.png
├── intellij-kotlin-imports.png
├── intellij-kotlin-indents.png
├── intellij-kotlin-other.png
├── intellij-maven-runner.png
├── intellij-scala-import-layout.PNG
├── intellij-typescript-imports.png
├── intellij-xml-indents.png
└── intellij-xml-other.png
└── windows
└── README.md
/.github/CODEOWNERS:
--------------------------------------------------------------------------------
1 | .github/CODEOWNERS @sonarsource/platform-eng-xp-squad
2 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU LESSER GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 |
9 | This version of the GNU Lesser General Public License incorporates
10 | the terms and conditions of version 3 of the GNU General Public
11 | License, supplemented by the additional permissions listed below.
12 |
13 | 0. Additional Definitions.
14 |
15 | As used herein, "this License" refers to version 3 of the GNU Lesser
16 | General Public License, and the "GNU GPL" refers to version 3 of the GNU
17 | General Public License.
18 |
19 | "The Library" refers to a covered work governed by this License,
20 | other than an Application or a Combined Work as defined below.
21 |
22 | An "Application" is any work that makes use of an interface provided
23 | by the Library, but which is not otherwise based on the Library.
24 | Defining a subclass of a class defined by the Library is deemed a mode
25 | of using an interface provided by the Library.
26 |
27 | A "Combined Work" is a work produced by combining or linking an
28 | Application with the Library. The particular version of the Library
29 | with which the Combined Work was made is also called the "Linked
30 | Version".
31 |
32 | The "Minimal Corresponding Source" for a Combined Work means the
33 | Corresponding Source for the Combined Work, excluding any source code
34 | for portions of the Combined Work that, considered in isolation, are
35 | based on the Application, and not on the Linked Version.
36 |
37 | The "Corresponding Application Code" for a Combined Work means the
38 | object code and/or source code for the Application, including any data
39 | and utility programs needed for reproducing the Combined Work from the
40 | Application, but excluding the System Libraries of the Combined Work.
41 |
42 | 1. Exception to Section 3 of the GNU GPL.
43 |
44 | You may convey a covered work under sections 3 and 4 of this License
45 | without being bound by section 3 of the GNU GPL.
46 |
47 | 2. Conveying Modified Versions.
48 |
49 | If you modify a copy of the Library, and, in your modifications, a
50 | facility refers to a function or data to be supplied by an Application
51 | that uses the facility (other than as an argument passed when the
52 | facility is invoked), then you may convey a copy of the modified
53 | version:
54 |
55 | a) under this License, provided that you make a good faith effort to
56 | ensure that, in the event an Application does not supply the
57 | function or data, the facility still operates, and performs
58 | whatever part of its purpose remains meaningful, or
59 |
60 | b) under the GNU GPL, with none of the additional permissions of
61 | this License applicable to that copy.
62 |
63 | 3. Object Code Incorporating Material from Library Header Files.
64 |
65 | The object code form of an Application may incorporate material from
66 | a header file that is part of the Library. You may convey such object
67 | code under terms of your choice, provided that, if the incorporated
68 | material is not limited to numerical parameters, data structure
69 | layouts and accessors, or small macros, inline functions and templates
70 | (ten or fewer lines in length), you do both of the following:
71 |
72 | a) Give prominent notice with each copy of the object code that the
73 | Library is used in it and that the Library and its use are
74 | covered by this License.
75 |
76 | b) Accompany the object code with a copy of the GNU GPL and this license
77 | document.
78 |
79 | 4. Combined Works.
80 |
81 | You may convey a Combined Work under terms of your choice that,
82 | taken together, effectively do not restrict modification of the
83 | portions of the Library contained in the Combined Work and reverse
84 | engineering for debugging such modifications, if you also do each of
85 | the following:
86 |
87 | a) Give prominent notice with each copy of the Combined Work that
88 | the Library is used in it and that the Library and its use are
89 | covered by this License.
90 |
91 | b) Accompany the Combined Work with a copy of the GNU GPL and this license
92 | document.
93 |
94 | c) For a Combined Work that displays copyright notices during
95 | execution, include the copyright notice for the Library among
96 | these notices, as well as a reference directing the user to the
97 | copies of the GNU GPL and this license document.
98 |
99 | d) Do one of the following:
100 |
101 | 0) Convey the Minimal Corresponding Source under the terms of this
102 | License, and the Corresponding Application Code in a form
103 | suitable for, and under terms that permit, the user to
104 | recombine or relink the Application with a modified version of
105 | the Linked Version to produce a modified Combined Work, in the
106 | manner specified by section 6 of the GNU GPL for conveying
107 | Corresponding Source.
108 |
109 | 1) Use a suitable shared library mechanism for linking with the
110 | Library. A suitable mechanism is one that (a) uses at run time
111 | a copy of the Library already present on the user's computer
112 | system, and (b) will operate properly with a modified version
113 | of the Library that is interface-compatible with the Linked
114 | Version.
115 |
116 | e) Provide Installation Information, but only if you would otherwise
117 | be required to provide such information under section 6 of the
118 | GNU GPL, and only to the extent that such information is
119 | necessary to install and execute a modified version of the
120 | Combined Work produced by recombining or relinking the
121 | Application with a modified version of the Linked Version. (If
122 | you use option 4d0, the Installation Information must accompany
123 | the Minimal Corresponding Source and Corresponding Application
124 | Code. If you use option 4d1, you must provide the Installation
125 | Information in the manner specified by section 6 of the GNU GPL
126 | for conveying Corresponding Source.)
127 |
128 | 5. Combined Libraries.
129 |
130 | You may place library facilities that are a work based on the
131 | Library side by side in a single library together with other library
132 | facilities that are not Applications and are not covered by this
133 | License, and convey such a combined library under terms of your
134 | choice, if you do both of the following:
135 |
136 | a) Accompany the combined library with a copy of the same work based
137 | on the Library, uncombined with any other library facilities,
138 | conveyed under the terms of this License.
139 |
140 | b) Give prominent notice with the combined library that part of it
141 | is a work based on the Library, and explaining where to find the
142 | accompanying uncombined form of the same work.
143 |
144 | 6. Revised Versions of the GNU Lesser General Public License.
145 |
146 | The Free Software Foundation may publish revised and/or new versions
147 | of the GNU Lesser General Public License from time to time. Such new
148 | versions will be similar in spirit to the present version, but may
149 | differ in detail to address new problems or concerns.
150 |
151 | Each version is given a distinguishing version number. If the
152 | Library as you received it specifies that a certain numbered version
153 | of the GNU Lesser General Public License "or any later version"
154 | applies to it, you have the option of following the terms and
155 | conditions either of that published version or of any later version
156 | published by the Free Software Foundation. If the Library as you
157 | received it does not specify a version number of the GNU Lesser
158 | General Public License, you may choose any version of the GNU Lesser
159 | General Public License ever published by the Free Software Foundation.
160 |
161 | If the Library as you received it specifies that a proxy can decide
162 | whether future versions of the GNU Lesser General Public License shall
163 | apply, that proxy's public statement of acceptance of any version is
164 | permanent authorization for you to choose that version for the
165 | Library.
166 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Developer Toolset for Sonar-* Projects
2 |
3 | Toolset for the developers contributing to http://github.com/SonarSource and http://github.com/SonarCommunity repositories.
4 |
5 | ## SonarLint
6 |
7 | [Dogfooding](https://en.wikipedia.org/wiki/Eating_your_own_dog_food) is a core principle at SonarSource. Installing [SonarLint](http://sonarlint.org/) in your favorite IDE is strongly recommended. Any feedback should be provided on:
8 | * for SonarSourcer: the [category Dogfooding>SonarLint of the internal forum](https://discuss.sonarsource.com/c/dogfood/sl) and/or the Slack channels:\
9 | SonarLint for Eclipse: [#squad-ide-eclipse](https://sonarsource.slack.com/archives/C03QE05EX26)\
10 | SonarLint for IntelliJ: [#squad-ide-intellij-family](https://sonarsource.slack.com/archives/C03QDTTJ5JP)\
11 | SonarLint for Visual Studio: [#squad-ide-visualstudio](https://sonarsource.slack.com/archives/C03PE8P8TK6)\
12 | SonarLint for Visual Studio Code: [#squad-ide-vscode](https://sonarsource.slack.com/archives/C03M0AJ3BKR)
13 | * for community: the [SonarSource forum](https://community.sonarsource.com/), using the tag `sonarlint`.
14 |
15 | The "connected mode" feature should also be enabled and configured with https://next.sonarqube.com/ or https://sonarcloud.io, depending on projects.
16 |
17 | Eclipse users should also rely on the dogfooding Eclipse Update Site in order to experiment latest milestones:
18 | * Help → Install New Software ...
19 | * Add a repository pointing to https://binaries.sonarsource.com/SonarLint-for-Eclipse/dogfood/
20 | * Initially install the plug-in, to check for updates: Help → Check for Updates
21 |
22 | Intellij users should also rely on the development marketplace in order to experiment latest milestones:
23 | * Open Settings → Plugins → Manage plugins repositories
24 | * Add a custom plugin repository pointing to https://repox.jfrog.io/repox/sonarsource-public-builds/org/sonarsource/sonarlint/intellij/sonarlint-intellij/updatePlugins.xml
25 |
26 | ## Git
27 |
28 | If you have never used Git before, you need to do some setup first. Run the following commands so that Git knows your name and email.
29 |
30 | git config --global user.name "Your Name"
31 | git config --global user.email "your@email.com"
32 |
33 | Setup line endings preferences:
34 |
35 | # For Unix/Mac users
36 | git config --global core.autocrlf input
37 | git config --global core.safecrlf true
38 |
39 | # For Windows users
40 | git config --global core.autocrlf true
41 | git config --global core.safecrlf true
42 |
43 | On Windows, you must explicitly tell Git to use long paths so you won't run into issues with files in deeply nested directories:
44 |
45 | git config --global core.longpaths true
46 |
47 | The merge is working pretty well on small repositories (with move and rename of files). But it's not working on large repositories as the detection of file renaming is O(n²), so we need to update some threshold (more explanations are available in this post : http://blogs.atlassian.com/2011/10/confluence_git_rename_merge_oh_my/) :
48 |
49 | git config --global merge.renameLimit 10000
50 |
51 | #### Commit messages
52 |
53 | Commits must relate to a JIRA issue. Convention for messages inspired by http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html :
54 |
55 | * The first line should be short (72 chars or less) and auto-descriptive in a format "", for example "SONAR-1937 Code review"
56 | * Write your commit message in present imperative tense: "Fix bug" and not "Fixed bug".
57 | * The second line is blank.
58 | * Next lines optionally define a short summary of changes (wrap them to about 72 chars or so).
59 |
60 | Example :
61 |
62 | SONAR-2204,SONAR-2259 Fix URL encoding
63 |
64 | * For correct URL encoding we must encode parameters on lower level -
65 | in Query itself, but not in concrete implementation of Connector,
66 | because in Query we can distinguish concrete parts of URL.
67 |
68 | * Moreover in this case any additional encoding routines in Connector
69 | are useless, so were removed.
70 |
71 | If the change concerns a documentation-only change, then prefix it with "DOC ".
72 |
73 | ## GitHub Configuration
74 |
75 | The following points must be respected in the GitHub account settings:
76 | * If using your personal Github Account, the sonarsource email address must be set as primary
77 | * Uncheck "Keep my email addresses private"
78 | * The same name must be used in the Github profile and in the local git config key user.name
79 |
80 | ## Eclipse Configuration
81 |
82 | Eclipse settings are available in the directory [/eclipse](/eclipse).
83 |
84 | ### Imports
85 |
86 | [sonar-formatter.xml](/eclipse/sonar-formatter.xml):
87 | positions new lines, comments, spaces, parentheses, etc. To be imported in Window > Preferences > Java > Code Style > Formatter.
88 |
89 | [sonar.importorder](/eclipse/sonar.importorder):
90 | organizes the "import" lines. To be imported in Window > Preferences > Java > Code Style > Organize Imports.
91 |
92 | [sonar-cleanup.xml](/eclipse/sonar-cleanup.xml):
93 | cleans up the code, by organizing imports, formating source code, correcting indentation, etc.
94 | To be imported in Window > Preferences > Java > Code Style > Clean Up.
95 |
96 | In Windows > Preferences > Java > Editor > Save Actions, check the checkboxes to perform the clean
97 | up at every "save" action. The "additional actions" displayed should be configured as well.
98 |
99 | 
100 |
101 | ### Additional Configuration
102 |
103 | In Window > Preferences > Maven > Errors/Warnings, set "Plugin execution not covered by lifecycle execution" to "Ignore". This will silence out error messages when importing your Maven projects
104 |
105 | On Windows, in Window > Preferences > General > Workspace, set "Text file encoding" to "UTF-8" and "New text file line delimiter" to "Unix".
106 |
107 | ## Code Style Configuration for Intellij
108 |
109 | Intellij IDEA users must install the plugin [Adapter for Eclipse Code Formatter](http://plugins.jetbrains.com/plugin/?id=6546) and import Eclipse settings files:
110 | * check the "Use the Eclipse code formatter" option and use [sonar-formatter.xml](/eclipse/sonar-formatter.xml) as the Eclipse Java Formatter config file
111 | * check the "From file" option in the "Import order" section and use [sonar.importorder](/eclipse/sonar.importorder)
112 |
113 | You can either import the code style settings to IntelliJ IDEA by simply importing [this scheme](intellij/codestyle_sonar_developer_toolset.xml)
114 | in IDEA's code style settings (`Editor > 'Code Style' > Java > 'Scheme:' > ⚙️ > 'Import Scheme' > 'IntelliJ IDEA code style XML'`), or you can apply the settings manually (see below). The result should be the same.
115 |
116 | 
117 |
118 | Go to `Preferences/Settings > Editor > General` and check the option `Ensure every saved file ends with a line break` (under the `On Save` section).
119 |
120 | Go to `Preferences/Settings > Editor > Code Style > Java > Wrapping and Braces > Method declaration parameter` and uncheck `Align when multiline`
121 |
122 | Go to `Preferences/Settings > Editor > Code Style > Java > Tabs and Indents` and update:
123 | * `Tab size: 2`
124 | * `Indent: 2`
125 | * `Continuation indent: 2`
126 |
127 | Go to `Preferences/Settings > Editor > Code Style > Java > JavaDoc > Other` and uncheck `Generate "
" on empty lines`
128 |
129 | 
130 |
131 | Go to `Preferences/Settings > Editor > Code Style > Kotlin > Tabs and Indents` and update:
132 | * `Continuation indent: 4`
133 |
134 | 
135 |
136 | Go to `Preferences/Settings > Editor > Code Style > Kotlin > Imports` and update:
137 | * Check `Use single name import` in `Top-Level Symbols`
138 | * Check `Use single name import` in `Java Statics and Enum Members`
139 | * Remove all entries from the list `Packages to Use Imports with '*'`
140 |
141 | 
142 |
143 | Go to `Preferences/Settings > Editor > Code Style > Kotlin > Other` and update:
144 | * Check `Use trailing comma`
145 |
146 | 
147 |
148 | For Kotlin, we use the default 140 character line length.
149 |
150 | Go to `Preferences/Settings > Editor > Code Style > XML > Tabs and Indents` and update:
151 | * `Tab size: 2`
152 | * `Indent: 2`
153 | * `Continuation indent: 2`
154 |
155 | 
156 |
157 | Then go to `Preferences/Settings > Editor > Code Style > XML > Other` and set/check:
158 | * `Hard wrap at 140`
159 | * `Keep line breaks in text`
160 | * `Keep white spaces`
161 |
162 | 
163 |
164 | In order to correctly format build.gradle files, code style for Groovy has to be set.
165 |
166 | Then go to `Preferences/Settings > Editor > Code Style > Groovy` and set/check:
167 | * `Tab size: 2`
168 | * `Indent: 2`
169 | * `Continuation indent: 2`
170 |
171 | 
172 |
173 | IDEA must also be manually configured for imports : `Preferences/Settings > Editor > Code Style > Java > Imports`
174 | * Class count to use import with '*'" -> 999
175 | * Names count to use static import with '*' -> 999
176 | * Remove both lines from `Packages to Use Import with '*'`
177 | * Import Layout
178 | * import all other imports
179 | * <blank line>
180 | * import static all other imports
181 |
182 | 
183 |
184 | Then go to `Preferences/Settings > Editor > General > Auto import` and check "Optimize imports on the fly" for Java:
185 |
186 | 
187 |
188 | For Javascript (Typescript)
189 |
190 | Setup imports to sort correctly:
191 | 
192 |
193 | We use a tool called **Prettier**. In order to ensure it functions correctly, install the [Prettier plugin](https://www.jetbrains.com/help/idea/prettier.html).
194 | Once installed set the files as such:
195 | 
196 |
197 | The Prettier plugin requires IntelliJ Ultimate, but it's possible to use it without the plugin, e.g. [like this](https://github.com/SonarSource/sonar-developer-toolset/pull/32#issuecomment-1514574604).
198 |
199 | Then to make sure prettier is run correctly, modify the on save actions:
200 | 
201 |
202 | For Scala:
203 |
204 | Go to `Preferences/Settings > Editor > Code Style > Scala > Imports` and update:
205 | * Class count to use import with '_' -> 999
206 | * Ensure `Merge imports with the same prefix into one statement` is checked
207 | * Ensure to have the following `Import Layout` (it should be the default):
208 |
209 | 
210 |
211 | ## (Optional) Build Configuration for Intellij
212 |
213 | If the project uses maven and you experience problems with the built-in build system (*Build* ➡️ *Rebuild Project*) like long build times or build failures, you should [delegate the build to maven](https://www.jetbrains.com/help/idea/delegate-build-and-run-actions-to-maven.html#delegate_to_maven). Make sure to skip tests during the build:
214 |
215 | 
216 |
--------------------------------------------------------------------------------
/SECURITY.md:
--------------------------------------------------------------------------------
1 | # Reporting Security Issues
2 |
3 | A mature software vulnerability treatment process is a cornerstone of a robust information security management system. Contributions from the community play an important role in the evolution and security of our products, and in safeguarding the security and privacy of our users.
4 |
5 | If you believe you have discovered a security vulnerability in Sonar's products, we encourage you to report it immediately.
6 |
7 | To responsibly report a security issue, please email us at [security@sonarsource.com](mailto:security@sonarsource.com). Sonar’s security team will acknowledge your report, guide you through the next steps, or request additional information if necessary. Customers with a support contract can also report the vulnerability directly through the support channel.
8 |
9 | For security vulnerabilities found in third-party libraries, please also contact the library's owner or maintainer directly.
10 |
11 | ## Responsible Disclosure Policy
12 |
13 | For more information about disclosing a security vulnerability to Sonar, please refer to our community post: [Responsible Vulnerability Disclosure](https://community.sonarsource.com/t/responsible-vulnerability-disclosure/9317).
--------------------------------------------------------------------------------
/eclipse/eclipse-Java-save-action.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SonarSource/sonar-developer-toolset/a4ce2a02930e2848170c8da32b7d26953e1ea15f/eclipse/eclipse-Java-save-action.png
--------------------------------------------------------------------------------
/eclipse/sonar-cleanup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
--------------------------------------------------------------------------------
/eclipse/sonar-formatter.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
220 |
221 |
222 |
223 |
224 |
225 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
234 |
235 |
236 |
237 |
238 |
239 |
240 |
241 |
242 |
243 |
244 |
245 |
246 |
247 |
248 |
249 |
250 |
251 |
252 |
253 |
254 |
255 |
256 |
257 |
258 |
259 |
260 |
261 |
262 |
263 |
264 |
265 |
266 |
267 |
268 |
269 |
270 |
271 |
272 |
273 |
274 |
275 |
276 |
277 |
278 |
279 |
280 |
281 |
282 |
283 |
284 |
285 |
286 |
287 |
288 |
289 |
290 |
291 |
292 |
293 |
294 |
295 |
296 |
297 |
298 |
299 |
300 |
301 |
302 |
303 |
304 |
305 |
306 |
307 |
308 |
309 |
310 |
311 |
312 |
313 |
314 |
315 |
316 |
317 |
318 |
319 |
320 |
321 |
322 |
323 |
324 |
325 |
326 |
327 |
328 |
329 |
330 |
331 |
332 |
333 |
334 |
335 |
336 |
337 |
338 |
339 |
340 |
341 |
342 |
343 |
344 |
345 |
346 |
347 |
348 |
349 |
350 |
351 |
352 |
353 |
354 |
355 |
356 |
357 |
358 |
359 |
360 |
361 |
362 |
363 |
364 |
365 |
366 |
367 |
368 |
369 |
370 |
371 |
372 |
373 |
374 |
375 |
376 |
377 |
378 |
379 |
380 |
381 |
382 |
383 |
384 |
385 |
386 |
387 |
388 |
389 |
390 |
391 |
392 |
393 |
394 |
395 |
396 |
397 |
398 |
399 |
400 |
401 |
402 |
403 |
404 |
405 |
--------------------------------------------------------------------------------
/eclipse/sonar-wildcard-exports.epf:
--------------------------------------------------------------------------------
1 | #Wed, 15 Apr 2015 10:47:16 +0200
2 | /instance/org.eclipse.jdt.ui/org.eclipse.jdt.ui.ondemandthreshold=999
3 | /instance/org.eclipse.jdt.ui/org.eclipse.jdt.ui.staticondemandthreshold=999
4 |
5 |
--------------------------------------------------------------------------------
/eclipse/sonar.importorder:
--------------------------------------------------------------------------------
1 | #Organize Import Order
2 | #Mon May 18 16:12:43 CEST 2015
3 | 1=\#
4 | 0=
5 |
--------------------------------------------------------------------------------
/git/dogfood.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | set -euo pipefail
4 |
5 | featureBranch=$(git rev-parse --abbrev-ref HEAD)
6 | dogfoodBranch=dogfood/$featureBranch
7 |
8 | info() {
9 | echo "* $@"
10 | }
11 |
12 | branchExists() {
13 | git rev-parse -q --verify "$1" >/dev/null
14 | }
15 |
16 | if [ "$featureBranch" = "master" ]; then
17 | echo "You are on master, this script is intended to use on a feature branch. Exit."
18 | exit 1
19 | fi
20 |
21 | if [[ "$featureBranch" == branch-* ]]; then
22 | echo "You are on a release branch, this script is intended to use on a feature branch. Exit."
23 | exit 1
24 | fi
25 |
26 | if branchExists "$dogfoodBranch"; then
27 | info "dogfood branch '$dogfoodBranch' exists, replacing ..."
28 | git branch -D "$dogfoodBranch"
29 | git branch "$dogfoodBranch"
30 | else
31 | info "dogfood branch '$dogfoodBranch' does not exist, creating ..."
32 | git branch "$dogfoodBranch"
33 | fi
34 |
35 | info "pushing dogfood branch '$dogfoodBranch' to origin ..."
36 | git push origin "$dogfoodBranch" --force-with-lease
37 |
--------------------------------------------------------------------------------
/intellij/codestyle_sonar_developer_toolset.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
--------------------------------------------------------------------------------
/intellij/intellij-code-style.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SonarSource/sonar-developer-toolset/a4ce2a02930e2848170c8da32b7d26953e1ea15f/intellij/intellij-code-style.png
--------------------------------------------------------------------------------
/intellij/intellij-eclipse-formatter_4_5_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SonarSource/sonar-developer-toolset/a4ce2a02930e2848170c8da32b7d26953e1ea15f/intellij/intellij-eclipse-formatter_4_5_1.png
--------------------------------------------------------------------------------
/intellij/intellij-groovy-indents.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SonarSource/sonar-developer-toolset/a4ce2a02930e2848170c8da32b7d26953e1ea15f/intellij/intellij-groovy-indents.png
--------------------------------------------------------------------------------
/intellij/intellij-imports.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SonarSource/sonar-developer-toolset/a4ce2a02930e2848170c8da32b7d26953e1ea15f/intellij/intellij-imports.png
--------------------------------------------------------------------------------
/intellij/intellij-java-indents.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SonarSource/sonar-developer-toolset/a4ce2a02930e2848170c8da32b7d26953e1ea15f/intellij/intellij-java-indents.png
--------------------------------------------------------------------------------
/intellij/intellij-javascript-prettier.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SonarSource/sonar-developer-toolset/a4ce2a02930e2848170c8da32b7d26953e1ea15f/intellij/intellij-javascript-prettier.png
--------------------------------------------------------------------------------
/intellij/intellij-javscript-actionsonsave.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SonarSource/sonar-developer-toolset/a4ce2a02930e2848170c8da32b7d26953e1ea15f/intellij/intellij-javscript-actionsonsave.png
--------------------------------------------------------------------------------
/intellij/intellij-kotlin-imports.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SonarSource/sonar-developer-toolset/a4ce2a02930e2848170c8da32b7d26953e1ea15f/intellij/intellij-kotlin-imports.png
--------------------------------------------------------------------------------
/intellij/intellij-kotlin-indents.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SonarSource/sonar-developer-toolset/a4ce2a02930e2848170c8da32b7d26953e1ea15f/intellij/intellij-kotlin-indents.png
--------------------------------------------------------------------------------
/intellij/intellij-kotlin-other.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SonarSource/sonar-developer-toolset/a4ce2a02930e2848170c8da32b7d26953e1ea15f/intellij/intellij-kotlin-other.png
--------------------------------------------------------------------------------
/intellij/intellij-maven-runner.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SonarSource/sonar-developer-toolset/a4ce2a02930e2848170c8da32b7d26953e1ea15f/intellij/intellij-maven-runner.png
--------------------------------------------------------------------------------
/intellij/intellij-scala-import-layout.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SonarSource/sonar-developer-toolset/a4ce2a02930e2848170c8da32b7d26953e1ea15f/intellij/intellij-scala-import-layout.PNG
--------------------------------------------------------------------------------
/intellij/intellij-typescript-imports.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SonarSource/sonar-developer-toolset/a4ce2a02930e2848170c8da32b7d26953e1ea15f/intellij/intellij-typescript-imports.png
--------------------------------------------------------------------------------
/intellij/intellij-xml-indents.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SonarSource/sonar-developer-toolset/a4ce2a02930e2848170c8da32b7d26953e1ea15f/intellij/intellij-xml-indents.png
--------------------------------------------------------------------------------
/intellij/intellij-xml-other.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SonarSource/sonar-developer-toolset/a4ce2a02930e2848170c8da32b7d26953e1ea15f/intellij/intellij-xml-other.png
--------------------------------------------------------------------------------
/windows/README.md:
--------------------------------------------------------------------------------
1 | # Windows tools
2 |
3 | ## Application Manager
4 |
5 | * [Chocolatey](https://chocolatey.org/)
6 |
7 | ## Powershell
8 |
9 | * [posh-git](https://github.com/dahlbyk/posh-git)
10 |
11 | ## Terminal
12 |
13 | * [ConEmu](https://conemu.github.io/)
--------------------------------------------------------------------------------