Skip to content

Commit 5c11598

Browse files
fix: remove trailing spaces
Most of the coding style guides ask to remove trailing spaces, also, current .editorconfig has the same config.
1 parent ca968cf commit 5c11598

File tree

17 files changed

+27
-27
lines changed

17 files changed

+27
-27
lines changed

.drone.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ pipeline:
1414
- ./packager/publish_deb_rpm.sh
1515
secrets: ['packagecloud_token']
1616
when:
17-
event: tag
17+
event: tag
1818
build_apk:
1919
group: build
2020
image: keymetrics/alpine-pm2-builder:latest
2121
environment:
2222
- AWS_REPO_BUCKET=alpine-apk.pm2.io
2323
secrets: ['apk_rsa_priv_key', 'apk_rsa_pub_key', 'aws_access_key_id', 'aws_secret_access_key']
2424
when:
25-
event: tag
25+
event: tag

.github/CONTRIBUTING.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ We 'd like to keep our master branch as clean as possible, please avoid PRs on m
1212

1313
## Fire an issue
1414

15-
When you got an issue by using pm2, you will fire an issue on [github](https://github.com/Unitech/pm2). We'll be glad to help or to fix it but the more data you give the most fast it would be resolved.
15+
When you got an issue by using pm2, you will fire an issue on [github](https://github.com/Unitech/pm2). We'll be glad to help or to fix it but the more data you give the most fast it would be resolved.
1616
Please try following these rules it will make the task easier for you and for us:
1717

1818
#### 1. Search through issues if it hasn't been resolved yet
19-
#### 2. Make sure that you provide following informations:
19+
#### 2. Make sure that you provide following informations:
2020
- pm2 version `pm2 --version`
2121
- nodejs version `node --version`
2222
- operating system
@@ -27,7 +27,7 @@ Please try following these rules it will make the task easier for you and for us
2727
- How may I reproduce this? (this isn't easy in some cases)
2828
- Are you using a cluster module? Are you trying to catch SIGTERM signals? With `code` if possible.
2929

30-
#### 4. Think global
30+
#### 4. Think global
3131
If your issue is too specific we might not be able to help and stackoverflow might be a better place to seak for an answer
3232

3333
#### 5. Be clear and format issues with [markdown](http://daringfireball.net/projects/markdown/)
@@ -37,4 +37,4 @@ Note that we might understand english, german and french but english is prefered
3737

3838
```DEBUG=pm2:* PM2_DEBUG=true ./bin/pm2 --no-daemon start my-buggy-thing.js```
3939

40-
If your issue is flagged as `need data` be sure that there won't be any upgrade unless we can have enough data to reproduce.
40+
If your issue is flagged as `need data` be sure that there won't be any upgrade unless we can have enough data to reproduce.

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ npm install git-changelog -g
111111

112112
### usage
113113

114-
Edit .changelogrc
115-
Change "version_name" to the next version to release (example 1.1.2).
114+
Edit .changelogrc
115+
Change "version_name" to the next version to release (example 1.1.2).
116116
Change "tag" to the latest existing tag (example 1.1.1).
117117

118118
Run the following command into pm2 directory

changelogTemplate.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<% if(logo) { %><img width="710px" src="<%= logo %>" alt="pm2 logo" /> <% } %>
22
<% if(logo) { %># <%= title %> <% } %>
3-
<% if(intro) { %><%= '\n' %><%= intro %><%= '\n' %><% } %>
3+
<% if(intro) { %><%= '\n' %><%= intro %><%= '\n' %><% } %>
44
<% if(version && (version.name || version.number)) { %>##<% if(version.name){%> <%= version.name %><% } %> <% if(version.date){ %>( <%= version.date %> )<% } %><%= '\n' %><% } %>
5-
<% _.forEach(sections, function(section){
5+
<% _.forEach(sections, function(section){
66
if(section.commitsCount > 0) { %>
77
## <%= section.title %>
88
<% _.forEach(section.commits, function(commit){ %> - <%= printCommit(commit, true) %><% }) %>
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"min_uptime" : "100",
3-
"max_restarts" : "400",
3+
"max_restarts" : "400",
44
"name" : "auto-kill",
55
"script" : "./examples/killfast.js"
66
}

examples/misc-examples/exit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
// process.on('exit', function() {
2+
// process.on('exit', function() {
33
// console.log('About to exit.');
44
// });
55

examples/start-a-binary/ls

-66.4 KB
Binary file not shown.

lib/completion.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ exports.complete = function complete(name, completer, cb) {
5353
// Really, one should not be tossing away EPIPE errors, or any
5454
// errors, so casually. But, without this, `. <(npm completion)`
5555
// can never ever work on OS X.
56-
// -- isaacs
56+
// -- isaacs
5757
// https://github.com/isaacs/npm/blob/master/lib/completion.js#L162
5858
if (er.errno === "EPIPE") er = null
5959
cb(er, null, content);

lib/tools/xdg-open

+2-2
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ detectDE()
415415
DE=gnome;
416416
;;
417417
LXDE|Lubuntu)
418-
DE=lxde;
418+
DE=lxde;
419419
;;
420420
MATE)
421421
DE=mate;
@@ -428,7 +428,7 @@ detectDE()
428428

429429
if [ x"$DE" = x"" ]; then
430430
# fallback to uname output for other platforms
431-
case "$(uname 2>/dev/null)" in
431+
case "$(uname 2>/dev/null)" in
432432
Darwin)
433433
DE=darwin;
434434
;;

packager/setup.deb.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ REPOSITORY_OWNER="Keymetrics"
44

55
show_banner ()
66
{
7-
echo
7+
echo
88
echo "__/\\\\\\\\\\\\\\\\\\\\\\\\\\____/\\\\\\\\____________/\\\\\\\\____/\\\\\\\\\\\\\\\\\\_____"
99
echo " _\\/\\\\\\/////////\\\\\\_\\/\\\\\\\\\\\\________/\\\\\\\\\\\\__/\\\\\\///////\\\\\\___"
1010
echo " _\\/\\\\\\_______\\/\\\\\\_\\/\\\\\\//\\\\\\____/\\\\\\//\\\\\\_\\///______\\//\\\\\\__"
@@ -209,7 +209,7 @@ main ()
209209
if [ "$CURR_USER" == "" ]; then
210210
CURR_USER=$USER
211211
fi
212-
212+
213213
if [ "$CURR_USER" == "root" ] || [ "$CURR_USER" == "" ]; then
214214
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
215215
echo "WARNING: You are either running this script as root or the"

packager/setup.rpm.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ REPOSITORY_OWNER="Keymetrics"
44

55
show_banner ()
66
{
7-
echo
7+
echo
88
echo "__/\\\\\\\\\\\\\\\\\\\\\\\\\\____/\\\\\\\\____________/\\\\\\\\____/\\\\\\\\\\\\\\\\\\_____"
99
echo " _\\/\\\\\\/////////\\\\\\_\\/\\\\\\\\\\\\________/\\\\\\\\\\\\__/\\\\\\///////\\\\\\___"
1010
echo " _\\/\\\\\\_______\\/\\\\\\_\\/\\\\\\//\\\\\\____/\\\\\\//\\\\\\_\\///______\\//\\\\\\__"
@@ -158,7 +158,7 @@ install_pm2 ()
158158
if [ "$CURR_USER" == "" ]; then
159159
CURR_USER=$USER
160160
fi
161-
161+
162162
if [ "$CURR_USER" == "root" ] || [ "$CURR_USER" == "" ]; then
163163
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
164164
echo "WARNING: You are either running this script as root or the"
@@ -171,7 +171,7 @@ install_pm2 ()
171171
echo -n "Adding $CURR_USER to group pm2..."
172172
usermod -aG pm2 $CURR_USER
173173
echo "done."
174-
fi
174+
fi
175175
}
176176

177177
main ()
@@ -188,7 +188,7 @@ main ()
188188
yum_repo_path=/etc/yum.repos.d/Keymetrics_pm2.repo
189189
install_node
190190
fi
191-
191+
192192
echo "Downloading repository file: ${yum_repo_config_url}"
193193

194194
curl -sSf "${yum_repo_config_url}" > $yum_repo_path

test/benchmarks/monit.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export RESULT_FILE=$RESULT_FILE
66

77
launch() {
88
echo "========= `date`" >> $RESULT_FILE
9-
nohup ./monit-daemon.sh &> monit.log &
9+
nohup ./monit-daemon.sh &> monit.log &
1010
}
1111

1212
ppkill() {

test/fixtures/args.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ if (process.argv.indexOf('-d') == -1 || process.argv.indexOf('-a') == -1) {
55
} else {
66
setInterval(function() {
77
console.log('ok');
8-
}, 500);
8+
}, 500);
99
}

test/fixtures/git/index

36 Bytes
Binary file not shown.

test/fixtures/mjs/ecosystem.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
2+
33
apps : [
44

55

test/helpers/plan.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var assert = require('assert');
66
* @method Plan
77
* @param {} count
88
* @param {} done
9-
* @return
9+
* @return
1010
*/
1111
function Plan(count, done) {
1212
this.done = done;
@@ -17,7 +17,7 @@ function Plan(count, done) {
1717
* Description
1818
* @method ok
1919
* @param {} expression
20-
* @return
20+
* @return
2121
*/
2222
Plan.prototype.ok = function(expression) {
2323
assert(expression);

test/programmatic/misc_commands.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe('Misc commands', function() {
3434
should(err).be.null();
3535
done();
3636
});
37-
});
37+
});
3838

3939
it('should restart them', function(done) {
4040
pm2.restart('all', function(err, data) {

0 commit comments

Comments
 (0)