FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
frontend/disallowed-strings.js at test-code-owners · devhttps/frontend · GitHub
devhttps
/
frontend
Public
forked from
guardian/frontend
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
frontend
/
disallowed-strings.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
30 lines (28 loc) · 1007 Bytes
Breadcrumbs
frontend
/
disallowed-strings.js
Copy path
File metadata and controls
30 lines (28 loc) · 1007 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
const
readerRevenueConfig
=
{
message
:
'Raw URLs to reader revenue sites are not allowed'
,
maxOccurrences
:
1
,
pathspecs
:
[
'*.js'
,
'*.scala'
,
'*.html'
]
,
}
;
// pathspecs are git pathspecs: https://git-scm.com/docs/gitglossary#gitglossary-aiddefpathspecapathspec
// To search all files under version control, set pathspecs to an empty array.
module
.
exports
=
[
// These are commented out because they would currently fail the build.
// Until we refactor to eliminate the duplicates, they can serve as examples
// in case anyone wants to add more immediately feasible rules!
// {
// regex: /membership\.theguardian\.com/,
// ...readerRevenueConfig
// },
// {
// regex: /contribute\.theguardian\.com/,
// ...readerRevenueConfig
// },
// {
// regex: /support\.theguardian\.com/,
// ...readerRevenueConfig
// },
// {
// regex: /subscribe\.theguardian\.com/,
// ...readerRevenueConfig
// }
]
;
Back
|
FazBrowse Home
|
New Git URL