No description
Find a file
Alys fb4d3e44d3 improve code and tests for banned words and slurs (#10211)
* remove removePunctuationFromString function from test code

It's not needed now that the test banned words don't contain underscores.

* prevent tests accidentally throwing messageGroupChatSpam

This commit makes the user for most tests have contributor tiers so
that the user can't trigger the messageGroupChatSpam error message
(for posting messages too quickly).

This is useful when some of the tests fail due to broken code
because that makes more messages be posted than expected. If the user
doesn't have tiers, the messageGroupChatSpam error message would be
triggered, which gives misleading information about the test failure.

* add tests for banned swear and slur words posted in mixed case

* allow banned word error message to show bad words in the same case the user typed them

* stop using randomly-chosen real banned words in tests

The test modified in this commit had been using real banned words,
which meant that those words were being displayed to the contributors
when the test failed.

NB the 'check all banned words are matched' test also uses the real
banned words but the test failure messages don't show the words.

* improve translatability of bannedWordUsed error message
2018-04-08 15:31:37 +02:00
.ebextensions Old Client Cleanup (#9141) 2017-10-12 16:44:28 +02:00
.github update github templates for new website and wiki page locations 2017-10-31 21:25:01 +10:00
database_reports Clean up references to repo as HabitRPG/habitrpg (#8742) 2017-06-06 18:51:54 -07:00
gulp Node 8 (WIP) (#9946) 2018-03-15 19:59:36 +01:00
keys/google change Google iap-live for Android mobile app gem purchases, at negue's request 2015-12-03 06:22:59 +10:00
kubernetes Kubernetes support for dev environments (#8753) 2017-07-01 09:30:08 -07:00
migrations chore(news): Bailey 2018-04-01 02:59:54 +00:00
scripts Node 8 (WIP) (#9946) 2018-03-15 19:59:36 +01:00
test improve code and tests for banned words and slurs (#10211) 2018-04-08 15:31:37 +02:00
vagrant_scripts Node 8 (WIP) (#9946) 2018-03-15 19:59:36 +01:00
webpack fix svgo options 2018-02-14 12:05:53 +01:00
website improve code and tests for banned words and slurs (#10211) 2018-04-08 15:31:37 +02:00
.babelrc Node 8 (WIP) (#9946) 2018-03-15 19:59:36 +01:00
.buildpacks refactor(tasks) improve UI consistency 2014-11-27 10:32:57 +00:00
.codeclimate.yml Only list javascript in .codeclimate.yml 2015-08-02 17:54:05 +02:00
.dockerignore Docker improvements (#8297) 2016-12-28 09:33:24 +01:00
.editorconfig Create .editorconfig 2016-09-07 08:44:57 -05:00
.eslintignore Upgrade tests tools and lint migrations and scripts (part 2) (#9998) 2018-02-17 18:11:24 +01:00
.eslintrc fix: eslint: re-order packages 2016-12-26 16:04:36 +01:00
.gitignore Old Client Cleanup (#9141) 2017-10-12 16:44:28 +02:00
.nodemonignore Node 8 (WIP) (#9946) 2018-03-15 19:59:36 +01:00
.nvmrc Node 8 (WIP) (#9946) 2018-03-15 19:59:36 +01:00
.travis.yml Node 8 (WIP) (#9946) 2018-03-15 19:59:36 +01:00
apidoc.json chore: Remove versioning from apidoc 2016-05-25 11:11:39 -05:00
config.json.example fix(logging): only start Stackimpact in prod (#10112) 2018-03-08 13:12:45 -06:00
docker-compose.dev.yml Update the docker compose process (#9724) 2018-01-29 14:56:08 -06:00
docker-compose.yml Update the docker compose process (#9724) 2018-01-29 14:56:08 -06:00
Dockerfile Docker: yarn is not necessary anymore 2018-03-23 16:20:00 +01:00
Dockerfile-Production chore(i18n): update locales 2018-04-05 21:08:53 +00:00
gulpfile.js Upgrade gulp (and gulp deps) (#9950) 2018-02-04 18:18:10 +01:00
LICENSE Fix grammar mistakes in license file 2016-06-21 06:42:20 -05:00
package-lock.json 4.36.0 2018-04-05 21:09:10 +00:00
package.json 4.36.0 2018-04-05 21:09:10 +00:00
Procfile API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
README.md docs(readme): add Greenkeeper badge (#10050) 2018-02-24 12:46:42 +01:00
VAGRANT.md HabitRPG -> Habitica text changes 2015-07-31 18:05:10 +10:00
Vagrantfile.example Update Vagrantfile.example to forward port 8080 (#9732) 2018-01-12 16:32:09 -06:00

Habitica Build Status Code Climate Coverage Status Bountysource Open Source Helpers

Greenkeeper badge

Habitica is an open source habit building program which treats your life like a Role Playing Game. Level up as you succeed, lose HP as you fail, earn money to buy weapons and armor.

We need more programmers! Your assistance will be greatly appreciated.

For an introduction to the technologies used and how the software is organized, refer to Guidance for Blacksmiths.

To set up a local install of Habitica for development and testing on various platforms, see Setting up Habitica Locally.