forked from guardian/frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
disallowed-strings.js
30 lines (28 loc) · 1007 Bytes
/
disallowed-strings.js
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
// }
];