docbrown/app/lib/constants/settings/rate_limit.rb
dependabot[bot] 816855ce3b
Bump rubocop from 1.17.0 to 1.18.0 (#14107)
* Bump rubocop from 1.17.0 to 1.18.0

Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.17.0 to 1.18.0.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.17.0...v1.18.0)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* yarn install

* Fix violations

* Restore the default aligned setting

* Trigger Travis CI

* Escape HTML

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: rhymes <github@rhymes.dev>
2021-07-01 13:51:49 +02:00

17 lines
603 B
Ruby

module Constants
module Settings
module RateLimit
DETAILS = {
spam_trigger_terms: {
description: "Individual (case insensitive) phrases that trigger spam alerts, comma separated.",
placeholder: "used cars near you, pokemon go hack"
},
user_considered_new_days: {
description: "The number of days a user is considered new. The default is 3 days, but you "\
"can disable this entirely by inputting 0.",
placeholder: ::Settings::RateLimit.user_considered_new_days
}
}.freeze
end
end
end