Sort reserved words (#6000)
* Sort reserved words * Remove duplicate words * Make it a set * Nope, it cannot be a set
This commit is contained in:
parent
085c0d1e01
commit
3258bc357a
1 changed files with 189 additions and 210 deletions
|
|
@ -1,236 +1,215 @@
|
|||
class ReservedWords
|
||||
BASE_WORDS = %w[
|
||||
enter
|
||||
internal
|
||||
signout_confirm
|
||||
notifications
|
||||
search
|
||||
feedback_messages
|
||||
api
|
||||
delayed_job_admin
|
||||
users
|
||||
settings
|
||||
about
|
||||
additional_content_boxes
|
||||
features
|
||||
reports
|
||||
privacy
|
||||
terms
|
||||
readinglist
|
||||
videos
|
||||
video_states
|
||||
twilio_tokens
|
||||
twitter
|
||||
latest
|
||||
contact
|
||||
merch
|
||||
onboarding_update
|
||||
onboarding_checkbox_update
|
||||
rlygenerator
|
||||
orlygenerator
|
||||
rlyslack
|
||||
rlyweb
|
||||
rly
|
||||
connect
|
||||
chat_channels
|
||||
challenge
|
||||
email_subscriptions
|
||||
social_previews
|
||||
code-of-conduct
|
||||
report-abuse
|
||||
infiniteloop
|
||||
faq
|
||||
chat
|
||||
one-of-us
|
||||
swagnets
|
||||
security
|
||||
phishing
|
||||
blocks
|
||||
buffered_articles
|
||||
tags
|
||||
analytics
|
||||
reactions
|
||||
follows
|
||||
csv_exports
|
||||
live_articles
|
||||
new
|
||||
dashboard
|
||||
feed
|
||||
sedaily
|
||||
1024
|
||||
404
|
||||
500
|
||||
byte
|
||||
bit
|
||||
about
|
||||
account
|
||||
additional_content_boxes
|
||||
admin
|
||||
administrate
|
||||
ads
|
||||
advertising
|
||||
amp
|
||||
anal
|
||||
analysis
|
||||
analytics
|
||||
answers
|
||||
api
|
||||
app
|
||||
article
|
||||
articles
|
||||
podcasts
|
||||
medium
|
||||
bytes
|
||||
flip
|
||||
membership
|
||||
track
|
||||
tag
|
||||
bits
|
||||
binary
|
||||
infiniteloop
|
||||
loop
|
||||
infinite
|
||||
forloop
|
||||
programming
|
||||
bit
|
||||
bits
|
||||
blocks
|
||||
buffered_articles
|
||||
butt
|
||||
byte
|
||||
bytes
|
||||
cast
|
||||
challenge
|
||||
changelog
|
||||
chat
|
||||
chat_channels
|
||||
code
|
||||
code-of-conduct
|
||||
coffee
|
||||
comment
|
||||
comments
|
||||
computer
|
||||
connect
|
||||
contact
|
||||
csv_exports
|
||||
daily
|
||||
dash
|
||||
dashboard
|
||||
day
|
||||
deep
|
||||
delayed_job_admin
|
||||
delete
|
||||
design
|
||||
designer
|
||||
destroy
|
||||
dev
|
||||
developer
|
||||
job
|
||||
jobs
|
||||
tv
|
||||
amp
|
||||
live
|
||||
online
|
||||
future
|
||||
jokes
|
||||
funny
|
||||
funnies
|
||||
developertea
|
||||
tea
|
||||
coffee
|
||||
javascript
|
||||
java
|
||||
ruby
|
||||
python
|
||||
haskell
|
||||
dev
|
||||
day
|
||||
night
|
||||
ons
|
||||
daily
|
||||
nightly
|
||||
changelog
|
||||
design
|
||||
jobs
|
||||
designer
|
||||
programming
|
||||
programmer
|
||||
links
|
||||
top
|
||||
drole
|
||||
edit
|
||||
el
|
||||
email_subscriptions
|
||||
enter
|
||||
faq
|
||||
features
|
||||
feed
|
||||
feedback_messages
|
||||
flip
|
||||
followers
|
||||
following
|
||||
follows
|
||||
forloop
|
||||
fuck
|
||||
fun
|
||||
funnies
|
||||
funny
|
||||
future
|
||||
gag
|
||||
gags
|
||||
getting-started
|
||||
gigs
|
||||
start
|
||||
startups
|
||||
shoutouts
|
||||
about
|
||||
merch
|
||||
merchandise
|
||||
tos
|
||||
github
|
||||
hack
|
||||
hackers
|
||||
haskell
|
||||
help
|
||||
terms
|
||||
privacy
|
||||
robots
|
||||
infinite
|
||||
infiniteloop
|
||||
internal
|
||||
iot
|
||||
java
|
||||
javascript
|
||||
job
|
||||
job_application
|
||||
job_applications
|
||||
job_listings
|
||||
jobs
|
||||
joke
|
||||
jokes
|
||||
journal
|
||||
ki
|
||||
kilo
|
||||
kilobyte
|
||||
megabyte
|
||||
mega
|
||||
settings
|
||||
account
|
||||
dashboard
|
||||
dash
|
||||
me
|
||||
user
|
||||
ads
|
||||
analytics
|
||||
analysis
|
||||
advertising
|
||||
contact
|
||||
legal
|
||||
hack
|
||||
started
|
||||
push_notification_subscriptions
|
||||
notification_subscriptions
|
||||
getting-started
|
||||
hackers
|
||||
podcast
|
||||
pod
|
||||
following
|
||||
followers
|
||||
cast
|
||||
pc
|
||||
mac
|
||||
linux
|
||||
github
|
||||
opensource
|
||||
oss
|
||||
software
|
||||
live
|
||||
articles
|
||||
article
|
||||
computer
|
||||
journal
|
||||
joke
|
||||
jokes
|
||||
gags
|
||||
funny
|
||||
fun
|
||||
gag
|
||||
drole
|
||||
job_listings
|
||||
comment
|
||||
comments
|
||||
pulse
|
||||
pulses
|
||||
repos
|
||||
repo
|
||||
app
|
||||
job_applications
|
||||
job_application
|
||||
kis
|
||||
rly
|
||||
orly
|
||||
orlybooks
|
||||
oreilly
|
||||
leaders
|
||||
leaderboard
|
||||
leader
|
||||
latest
|
||||
things
|
||||
iot
|
||||
yes
|
||||
social
|
||||
rails
|
||||
script
|
||||
work
|
||||
1024
|
||||
binary
|
||||
retro
|
||||
leader
|
||||
leaderboard
|
||||
leaders
|
||||
legal
|
||||
libraries
|
||||
library
|
||||
links
|
||||
linux
|
||||
listen
|
||||
live
|
||||
live_articles
|
||||
loop
|
||||
mac
|
||||
machinelearning
|
||||
mag
|
||||
magazine
|
||||
me
|
||||
medium
|
||||
mega
|
||||
megabyte
|
||||
membership
|
||||
merch
|
||||
merchandise
|
||||
new
|
||||
new
|
||||
news
|
||||
edit
|
||||
delete
|
||||
update
|
||||
destroy
|
||||
admin
|
||||
administrate
|
||||
deep
|
||||
machinelearning
|
||||
code
|
||||
tech
|
||||
night
|
||||
nightly
|
||||
notification_subscriptions
|
||||
notifications
|
||||
onboarding_checkbox_update
|
||||
onboarding_update
|
||||
one-of-us
|
||||
online
|
||||
ons
|
||||
opensource
|
||||
library
|
||||
libraries
|
||||
anal
|
||||
org
|
||||
orgs
|
||||
organizations
|
||||
questions
|
||||
answers
|
||||
rss
|
||||
feed
|
||||
sounds
|
||||
listen
|
||||
ops
|
||||
opps
|
||||
el
|
||||
butt
|
||||
fuck
|
||||
ops
|
||||
oreilly
|
||||
org
|
||||
organizations
|
||||
orgs
|
||||
orly
|
||||
orlybooks
|
||||
orlygenerator
|
||||
oss
|
||||
pc
|
||||
phishing
|
||||
pod
|
||||
podcast
|
||||
podcasts
|
||||
privacy
|
||||
programmer
|
||||
programming
|
||||
pulse
|
||||
pulses
|
||||
push_notification_subscriptions
|
||||
python
|
||||
questions
|
||||
rails
|
||||
reactions
|
||||
readinglist
|
||||
repo
|
||||
report-abuse
|
||||
reports
|
||||
repos
|
||||
retro
|
||||
rly
|
||||
rlygenerator
|
||||
rlyslack
|
||||
rlyweb
|
||||
robots
|
||||
rss
|
||||
ruby
|
||||
script
|
||||
search
|
||||
security
|
||||
sedaily
|
||||
settings
|
||||
shoutouts
|
||||
signout_confirm
|
||||
social
|
||||
social_previews
|
||||
software
|
||||
sounds
|
||||
start
|
||||
started
|
||||
startups
|
||||
swagnets
|
||||
tag
|
||||
tags
|
||||
tea
|
||||
tech
|
||||
terms
|
||||
things
|
||||
top
|
||||
tos
|
||||
track
|
||||
tv
|
||||
twilio_tokens
|
||||
twitter
|
||||
update
|
||||
user
|
||||
users
|
||||
video_states
|
||||
videos
|
||||
welcome
|
||||
work
|
||||
yes
|
||||
].freeze
|
||||
|
||||
class << self
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue