dappros/ethora

View on GitHub
client-web/src/pages/Signon/Tnc.tsx

Summary

Maintainability
F
1 wk
Test Coverage

File Tnc.tsx has 1866 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import Box from "@mui/material/Box";
import Button from "@mui/material/Button";
import "./Tnc.scss";

type TProps = {
Severity: Major
Found in client-web/src/pages/Signon/Tnc.tsx - About 5 days to fix

Similar blocks of code found in 16 locations. Consider refactoring.
Open

          <tr>
            <td>Serious</td>
            <td>NA</td>
            <td>8</td>
            <td>4</td>
Severity: Major
Found in client-web/src/pages/Signon/Tnc.tsx and 15 other locations - About 1 hr to fix
client-web/src/pages/Signon/Tnc.tsx on lines 109..114
client-web/src/pages/Signon/Tnc.tsx on lines 115..120
client-web/src/pages/Signon/Tnc.tsx on lines 121..126
client-web/src/pages/Signon/Tnc.tsx on lines 127..132
client-web/src/pages/Signon/Tnc.tsx on lines 133..138
client-web/src/pages/Signon/Tnc.tsx on lines 139..144
client-web/src/pages/Signon/Tnc.tsx on lines 151..156
client-web/src/pages/Signon/Tnc.tsx on lines 163..168
client-web/src/pages/Signon/Tnc.tsx on lines 169..174
client-web/src/pages/Signon/Tnc.tsx on lines 181..186
client-web/src/pages/Signon/Tnc.tsx on lines 187..192
client-web/src/pages/Signon/Tnc.tsx on lines 193..198
client-web/src/pages/Signon/Tnc.tsx on lines 199..204
client-web/src/pages/Signon/Tnc.tsx on lines 211..216
client-web/src/pages/Signon/Tnc.tsx on lines 217..222

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 64.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 16 locations. Consider refactoring.
Open

          <tr>
            <td>Minor</td>
            <td>NA</td>
            <td>80</td>
            <td>40</td>
Severity: Major
Found in client-web/src/pages/Signon/Tnc.tsx and 15 other locations - About 1 hr to fix
client-web/src/pages/Signon/Tnc.tsx on lines 109..114
client-web/src/pages/Signon/Tnc.tsx on lines 115..120
client-web/src/pages/Signon/Tnc.tsx on lines 121..126
client-web/src/pages/Signon/Tnc.tsx on lines 127..132
client-web/src/pages/Signon/Tnc.tsx on lines 133..138
client-web/src/pages/Signon/Tnc.tsx on lines 139..144
client-web/src/pages/Signon/Tnc.tsx on lines 151..156
client-web/src/pages/Signon/Tnc.tsx on lines 157..162
client-web/src/pages/Signon/Tnc.tsx on lines 163..168
client-web/src/pages/Signon/Tnc.tsx on lines 181..186
client-web/src/pages/Signon/Tnc.tsx on lines 187..192
client-web/src/pages/Signon/Tnc.tsx on lines 193..198
client-web/src/pages/Signon/Tnc.tsx on lines 199..204
client-web/src/pages/Signon/Tnc.tsx on lines 211..216
client-web/src/pages/Signon/Tnc.tsx on lines 217..222

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 64.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 16 locations. Consider refactoring.
Open

          <tr>
            <td>singular event or series of related events</td>
            <td>£5,000</td>
            <td>£100,000</td>
            <td>£300,000</td>
Severity: Major
Found in client-web/src/pages/Signon/Tnc.tsx and 15 other locations - About 1 hr to fix
client-web/src/pages/Signon/Tnc.tsx on lines 109..114
client-web/src/pages/Signon/Tnc.tsx on lines 115..120
client-web/src/pages/Signon/Tnc.tsx on lines 121..126
client-web/src/pages/Signon/Tnc.tsx on lines 127..132
client-web/src/pages/Signon/Tnc.tsx on lines 133..138
client-web/src/pages/Signon/Tnc.tsx on lines 139..144
client-web/src/pages/Signon/Tnc.tsx on lines 151..156
client-web/src/pages/Signon/Tnc.tsx on lines 157..162
client-web/src/pages/Signon/Tnc.tsx on lines 163..168
client-web/src/pages/Signon/Tnc.tsx on lines 169..174
client-web/src/pages/Signon/Tnc.tsx on lines 181..186
client-web/src/pages/Signon/Tnc.tsx on lines 187..192
client-web/src/pages/Signon/Tnc.tsx on lines 193..198
client-web/src/pages/Signon/Tnc.tsx on lines 199..204
client-web/src/pages/Signon/Tnc.tsx on lines 217..222

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 64.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 16 locations. Consider refactoring.
Open

          <tr>
            <td>Backups frequency</td>
            <td>N/A</td>
            <td>N/A</td>
            <td>monthly</td>
Severity: Major
Found in client-web/src/pages/Signon/Tnc.tsx and 15 other locations - About 1 hr to fix
client-web/src/pages/Signon/Tnc.tsx on lines 109..114
client-web/src/pages/Signon/Tnc.tsx on lines 115..120
client-web/src/pages/Signon/Tnc.tsx on lines 121..126
client-web/src/pages/Signon/Tnc.tsx on lines 133..138
client-web/src/pages/Signon/Tnc.tsx on lines 139..144
client-web/src/pages/Signon/Tnc.tsx on lines 151..156
client-web/src/pages/Signon/Tnc.tsx on lines 157..162
client-web/src/pages/Signon/Tnc.tsx on lines 163..168
client-web/src/pages/Signon/Tnc.tsx on lines 169..174
client-web/src/pages/Signon/Tnc.tsx on lines 181..186
client-web/src/pages/Signon/Tnc.tsx on lines 187..192
client-web/src/pages/Signon/Tnc.tsx on lines 193..198
client-web/src/pages/Signon/Tnc.tsx on lines 199..204
client-web/src/pages/Signon/Tnc.tsx on lines 211..216
client-web/src/pages/Signon/Tnc.tsx on lines 217..222

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 64.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 16 locations. Consider refactoring.
Open

          <tr>
            <th>Pricing plan</th>
            <th>Free</th>
            <th>Standard</th>
            <th>Enterprise</th>
Severity: Major
Found in client-web/src/pages/Signon/Tnc.tsx and 15 other locations - About 1 hr to fix
client-web/src/pages/Signon/Tnc.tsx on lines 115..120
client-web/src/pages/Signon/Tnc.tsx on lines 121..126
client-web/src/pages/Signon/Tnc.tsx on lines 127..132
client-web/src/pages/Signon/Tnc.tsx on lines 133..138
client-web/src/pages/Signon/Tnc.tsx on lines 139..144
client-web/src/pages/Signon/Tnc.tsx on lines 151..156
client-web/src/pages/Signon/Tnc.tsx on lines 157..162
client-web/src/pages/Signon/Tnc.tsx on lines 163..168
client-web/src/pages/Signon/Tnc.tsx on lines 169..174
client-web/src/pages/Signon/Tnc.tsx on lines 181..186
client-web/src/pages/Signon/Tnc.tsx on lines 187..192
client-web/src/pages/Signon/Tnc.tsx on lines 193..198
client-web/src/pages/Signon/Tnc.tsx on lines 199..204
client-web/src/pages/Signon/Tnc.tsx on lines 211..216
client-web/src/pages/Signon/Tnc.tsx on lines 217..222

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 64.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 16 locations. Consider refactoring.
Open

          <tr>
            <td>Critical</td>
            <td>NA</td>
            <td>4</td>
            <td>1</td>
Severity: Major
Found in client-web/src/pages/Signon/Tnc.tsx and 15 other locations - About 1 hr to fix
client-web/src/pages/Signon/Tnc.tsx on lines 109..114
client-web/src/pages/Signon/Tnc.tsx on lines 115..120
client-web/src/pages/Signon/Tnc.tsx on lines 121..126
client-web/src/pages/Signon/Tnc.tsx on lines 127..132
client-web/src/pages/Signon/Tnc.tsx on lines 133..138
client-web/src/pages/Signon/Tnc.tsx on lines 139..144
client-web/src/pages/Signon/Tnc.tsx on lines 157..162
client-web/src/pages/Signon/Tnc.tsx on lines 163..168
client-web/src/pages/Signon/Tnc.tsx on lines 169..174
client-web/src/pages/Signon/Tnc.tsx on lines 181..186
client-web/src/pages/Signon/Tnc.tsx on lines 187..192
client-web/src/pages/Signon/Tnc.tsx on lines 193..198
client-web/src/pages/Signon/Tnc.tsx on lines 199..204
client-web/src/pages/Signon/Tnc.tsx on lines 211..216
client-web/src/pages/Signon/Tnc.tsx on lines 217..222

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 64.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 16 locations. Consider refactoring.
Open

          <tr>
            <td>Moderate</td>
            <td>NA</td>
            <td>16</td>
            <td>6</td>
Severity: Major
Found in client-web/src/pages/Signon/Tnc.tsx and 15 other locations - About 1 hr to fix
client-web/src/pages/Signon/Tnc.tsx on lines 109..114
client-web/src/pages/Signon/Tnc.tsx on lines 115..120
client-web/src/pages/Signon/Tnc.tsx on lines 121..126
client-web/src/pages/Signon/Tnc.tsx on lines 127..132
client-web/src/pages/Signon/Tnc.tsx on lines 133..138
client-web/src/pages/Signon/Tnc.tsx on lines 139..144
client-web/src/pages/Signon/Tnc.tsx on lines 151..156
client-web/src/pages/Signon/Tnc.tsx on lines 157..162
client-web/src/pages/Signon/Tnc.tsx on lines 169..174
client-web/src/pages/Signon/Tnc.tsx on lines 181..186
client-web/src/pages/Signon/Tnc.tsx on lines 187..192
client-web/src/pages/Signon/Tnc.tsx on lines 193..198
client-web/src/pages/Signon/Tnc.tsx on lines 199..204
client-web/src/pages/Signon/Tnc.tsx on lines 211..216
client-web/src/pages/Signon/Tnc.tsx on lines 217..222

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 64.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 16 locations. Consider refactoring.
Open

          <tr>
            <td>Uptime guarantee</td>
            <td>N/A</td>
            <td>99%</td>
            <td>99.9%</td>
Severity: Major
Found in client-web/src/pages/Signon/Tnc.tsx and 15 other locations - About 1 hr to fix
client-web/src/pages/Signon/Tnc.tsx on lines 109..114
client-web/src/pages/Signon/Tnc.tsx on lines 115..120
client-web/src/pages/Signon/Tnc.tsx on lines 127..132
client-web/src/pages/Signon/Tnc.tsx on lines 133..138
client-web/src/pages/Signon/Tnc.tsx on lines 139..144
client-web/src/pages/Signon/Tnc.tsx on lines 151..156
client-web/src/pages/Signon/Tnc.tsx on lines 157..162
client-web/src/pages/Signon/Tnc.tsx on lines 163..168
client-web/src/pages/Signon/Tnc.tsx on lines 169..174
client-web/src/pages/Signon/Tnc.tsx on lines 181..186
client-web/src/pages/Signon/Tnc.tsx on lines 187..192
client-web/src/pages/Signon/Tnc.tsx on lines 193..198
client-web/src/pages/Signon/Tnc.tsx on lines 199..204
client-web/src/pages/Signon/Tnc.tsx on lines 211..216
client-web/src/pages/Signon/Tnc.tsx on lines 217..222

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 64.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 16 locations. Consider refactoring.
Open

          <tr>
            <td>Critical</td>
            <td>NA</td>
            <td>6</td>
            <td>3</td>
Severity: Major
Found in client-web/src/pages/Signon/Tnc.tsx and 15 other locations - About 1 hr to fix
client-web/src/pages/Signon/Tnc.tsx on lines 109..114
client-web/src/pages/Signon/Tnc.tsx on lines 115..120
client-web/src/pages/Signon/Tnc.tsx on lines 121..126
client-web/src/pages/Signon/Tnc.tsx on lines 127..132
client-web/src/pages/Signon/Tnc.tsx on lines 133..138
client-web/src/pages/Signon/Tnc.tsx on lines 139..144
client-web/src/pages/Signon/Tnc.tsx on lines 151..156
client-web/src/pages/Signon/Tnc.tsx on lines 157..162
client-web/src/pages/Signon/Tnc.tsx on lines 163..168
client-web/src/pages/Signon/Tnc.tsx on lines 169..174
client-web/src/pages/Signon/Tnc.tsx on lines 187..192
client-web/src/pages/Signon/Tnc.tsx on lines 193..198
client-web/src/pages/Signon/Tnc.tsx on lines 199..204
client-web/src/pages/Signon/Tnc.tsx on lines 211..216
client-web/src/pages/Signon/Tnc.tsx on lines 217..222

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 64.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 16 locations. Consider refactoring.
Open

          <tr>
            <td>aggregate liability</td>
            <td>£10,000</td>
            <td>£150,000</td>
            <td>£500,000</td>
Severity: Major
Found in client-web/src/pages/Signon/Tnc.tsx and 15 other locations - About 1 hr to fix
client-web/src/pages/Signon/Tnc.tsx on lines 109..114
client-web/src/pages/Signon/Tnc.tsx on lines 115..120
client-web/src/pages/Signon/Tnc.tsx on lines 121..126
client-web/src/pages/Signon/Tnc.tsx on lines 127..132
client-web/src/pages/Signon/Tnc.tsx on lines 133..138
client-web/src/pages/Signon/Tnc.tsx on lines 139..144
client-web/src/pages/Signon/Tnc.tsx on lines 151..156
client-web/src/pages/Signon/Tnc.tsx on lines 157..162
client-web/src/pages/Signon/Tnc.tsx on lines 163..168
client-web/src/pages/Signon/Tnc.tsx on lines 169..174
client-web/src/pages/Signon/Tnc.tsx on lines 181..186
client-web/src/pages/Signon/Tnc.tsx on lines 187..192
client-web/src/pages/Signon/Tnc.tsx on lines 193..198
client-web/src/pages/Signon/Tnc.tsx on lines 199..204
client-web/src/pages/Signon/Tnc.tsx on lines 211..216

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 64.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 16 locations. Consider refactoring.
Open

          <tr>
            <td>Subscription fee, per calendar month</td>
            <td>0 USD</td>
            <td>99 USD</td>
            <td>Custom</td>
Severity: Major
Found in client-web/src/pages/Signon/Tnc.tsx and 15 other locations - About 1 hr to fix
client-web/src/pages/Signon/Tnc.tsx on lines 109..114
client-web/src/pages/Signon/Tnc.tsx on lines 121..126
client-web/src/pages/Signon/Tnc.tsx on lines 127..132
client-web/src/pages/Signon/Tnc.tsx on lines 133..138
client-web/src/pages/Signon/Tnc.tsx on lines 139..144
client-web/src/pages/Signon/Tnc.tsx on lines 151..156
client-web/src/pages/Signon/Tnc.tsx on lines 157..162
client-web/src/pages/Signon/Tnc.tsx on lines 163..168
client-web/src/pages/Signon/Tnc.tsx on lines 169..174
client-web/src/pages/Signon/Tnc.tsx on lines 181..186
client-web/src/pages/Signon/Tnc.tsx on lines 187..192
client-web/src/pages/Signon/Tnc.tsx on lines 193..198
client-web/src/pages/Signon/Tnc.tsx on lines 199..204
client-web/src/pages/Signon/Tnc.tsx on lines 211..216
client-web/src/pages/Signon/Tnc.tsx on lines 217..222

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 64.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 16 locations. Consider refactoring.
Open

          <tr>
            <td>Serious</td>
            <td>NA</td>
            <td>16</td>
            <td>8</td>
Severity: Major
Found in client-web/src/pages/Signon/Tnc.tsx and 15 other locations - About 1 hr to fix
client-web/src/pages/Signon/Tnc.tsx on lines 109..114
client-web/src/pages/Signon/Tnc.tsx on lines 115..120
client-web/src/pages/Signon/Tnc.tsx on lines 121..126
client-web/src/pages/Signon/Tnc.tsx on lines 127..132
client-web/src/pages/Signon/Tnc.tsx on lines 133..138
client-web/src/pages/Signon/Tnc.tsx on lines 139..144
client-web/src/pages/Signon/Tnc.tsx on lines 151..156
client-web/src/pages/Signon/Tnc.tsx on lines 157..162
client-web/src/pages/Signon/Tnc.tsx on lines 163..168
client-web/src/pages/Signon/Tnc.tsx on lines 169..174
client-web/src/pages/Signon/Tnc.tsx on lines 181..186
client-web/src/pages/Signon/Tnc.tsx on lines 193..198
client-web/src/pages/Signon/Tnc.tsx on lines 199..204
client-web/src/pages/Signon/Tnc.tsx on lines 211..216
client-web/src/pages/Signon/Tnc.tsx on lines 217..222

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 64.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 16 locations. Consider refactoring.
Open

          <tr>
            <td>Backups retention</td>
            <td>N/A</td>
            <td>N/A</td>
            <td>3 months</td>
Severity: Major
Found in client-web/src/pages/Signon/Tnc.tsx and 15 other locations - About 1 hr to fix
client-web/src/pages/Signon/Tnc.tsx on lines 109..114
client-web/src/pages/Signon/Tnc.tsx on lines 115..120
client-web/src/pages/Signon/Tnc.tsx on lines 121..126
client-web/src/pages/Signon/Tnc.tsx on lines 127..132
client-web/src/pages/Signon/Tnc.tsx on lines 139..144
client-web/src/pages/Signon/Tnc.tsx on lines 151..156
client-web/src/pages/Signon/Tnc.tsx on lines 157..162
client-web/src/pages/Signon/Tnc.tsx on lines 163..168
client-web/src/pages/Signon/Tnc.tsx on lines 169..174
client-web/src/pages/Signon/Tnc.tsx on lines 181..186
client-web/src/pages/Signon/Tnc.tsx on lines 187..192
client-web/src/pages/Signon/Tnc.tsx on lines 193..198
client-web/src/pages/Signon/Tnc.tsx on lines 199..204
client-web/src/pages/Signon/Tnc.tsx on lines 211..216
client-web/src/pages/Signon/Tnc.tsx on lines 217..222

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 64.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 16 locations. Consider refactoring.
Open

          <tr>
            <td>Moderate</td>
            <td>NA</td>
            <td>64</td>
            <td>32</td>
Severity: Major
Found in client-web/src/pages/Signon/Tnc.tsx and 15 other locations - About 1 hr to fix
client-web/src/pages/Signon/Tnc.tsx on lines 109..114
client-web/src/pages/Signon/Tnc.tsx on lines 115..120
client-web/src/pages/Signon/Tnc.tsx on lines 121..126
client-web/src/pages/Signon/Tnc.tsx on lines 127..132
client-web/src/pages/Signon/Tnc.tsx on lines 133..138
client-web/src/pages/Signon/Tnc.tsx on lines 139..144
client-web/src/pages/Signon/Tnc.tsx on lines 151..156
client-web/src/pages/Signon/Tnc.tsx on lines 157..162
client-web/src/pages/Signon/Tnc.tsx on lines 163..168
client-web/src/pages/Signon/Tnc.tsx on lines 169..174
client-web/src/pages/Signon/Tnc.tsx on lines 181..186
client-web/src/pages/Signon/Tnc.tsx on lines 187..192
client-web/src/pages/Signon/Tnc.tsx on lines 199..204
client-web/src/pages/Signon/Tnc.tsx on lines 211..216
client-web/src/pages/Signon/Tnc.tsx on lines 217..222

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 64.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 16 locations. Consider refactoring.
Open

          <tr>
            <td>Concurrent users</td>
            <td>10</td>
            <td>50</td>
            <td>1000</td>
Severity: Major
Found in client-web/src/pages/Signon/Tnc.tsx and 15 other locations - About 1 hr to fix
client-web/src/pages/Signon/Tnc.tsx on lines 109..114
client-web/src/pages/Signon/Tnc.tsx on lines 115..120
client-web/src/pages/Signon/Tnc.tsx on lines 121..126
client-web/src/pages/Signon/Tnc.tsx on lines 127..132
client-web/src/pages/Signon/Tnc.tsx on lines 133..138
client-web/src/pages/Signon/Tnc.tsx on lines 151..156
client-web/src/pages/Signon/Tnc.tsx on lines 157..162
client-web/src/pages/Signon/Tnc.tsx on lines 163..168
client-web/src/pages/Signon/Tnc.tsx on lines 169..174
client-web/src/pages/Signon/Tnc.tsx on lines 181..186
client-web/src/pages/Signon/Tnc.tsx on lines 187..192
client-web/src/pages/Signon/Tnc.tsx on lines 193..198
client-web/src/pages/Signon/Tnc.tsx on lines 199..204
client-web/src/pages/Signon/Tnc.tsx on lines 211..216
client-web/src/pages/Signon/Tnc.tsx on lines 217..222

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 64.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 16 locations. Consider refactoring.
Open

          <tr>
            <td>Minor</td>
            <td>NA</td>
            <td>120</td>
            <td>60</td>
Severity: Major
Found in client-web/src/pages/Signon/Tnc.tsx and 15 other locations - About 1 hr to fix
client-web/src/pages/Signon/Tnc.tsx on lines 109..114
client-web/src/pages/Signon/Tnc.tsx on lines 115..120
client-web/src/pages/Signon/Tnc.tsx on lines 121..126
client-web/src/pages/Signon/Tnc.tsx on lines 127..132
client-web/src/pages/Signon/Tnc.tsx on lines 133..138
client-web/src/pages/Signon/Tnc.tsx on lines 139..144
client-web/src/pages/Signon/Tnc.tsx on lines 151..156
client-web/src/pages/Signon/Tnc.tsx on lines 157..162
client-web/src/pages/Signon/Tnc.tsx on lines 163..168
client-web/src/pages/Signon/Tnc.tsx on lines 169..174
client-web/src/pages/Signon/Tnc.tsx on lines 181..186
client-web/src/pages/Signon/Tnc.tsx on lines 187..192
client-web/src/pages/Signon/Tnc.tsx on lines 193..198
client-web/src/pages/Signon/Tnc.tsx on lines 211..216
client-web/src/pages/Signon/Tnc.tsx on lines 217..222

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 64.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

          <tr>
            <th>Liability cap</th>
            <td></td>
            <td></td>
            <td></td>
Severity: Major
Found in client-web/src/pages/Signon/Tnc.tsx and 2 other locations - About 1 hr to fix
client-web/src/pages/Signon/Tnc.tsx on lines 145..150
client-web/src/pages/Signon/Tnc.tsx on lines 175..180

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 61.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

          <tr>
            <th>Support Services requests reaction times (business hours)</th>
            <td></td>
            <td></td>
            <td></td>
Severity: Major
Found in client-web/src/pages/Signon/Tnc.tsx and 2 other locations - About 1 hr to fix
client-web/src/pages/Signon/Tnc.tsx on lines 175..180
client-web/src/pages/Signon/Tnc.tsx on lines 205..210

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 61.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

          <tr>
            <th>Support Services issue resolution times (business hours)</th>
            <td></td>
            <td></td>
            <td></td>
Severity: Major
Found in client-web/src/pages/Signon/Tnc.tsx and 2 other locations - About 1 hr to fix
client-web/src/pages/Signon/Tnc.tsx on lines 145..150
client-web/src/pages/Signon/Tnc.tsx on lines 205..210

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 61.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

" should be '
Open

import Button from "@mui/material/Button";
Severity: Minor
Found in client-web/src/pages/Signon/Tnc.tsx by tslint

Rule: quotemark

Enforces quote character for string literals.

Notes
  • Has Fix

Config

Five arguments may be optionally provided:

  • "single" enforces single quotes.
  • "double" enforces double quotes.
  • "backtick" enforces backticks.
  • "jsx-single" enforces single quotes for JSX attributes.
  • "jsx-double" enforces double quotes for JSX attributes.
  • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
  • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
Examples
"quotemark": true,single,avoid-escape,avoid-template
"quotemark": true,single,jsx-double
Schema
{
  "type": "array",
  "items": {
    "type": "string",
    "enum": [
      "single",
      "double",
      "backtick",
      "jsx-single",
      "jsx-double",
      "avoid-escape",
      "avoid-template"
    ]
  },
  "minLength": 0,
  "maxLength": 5
}

For more information see this page.

" should be '
Open

import "./Tnc.scss";
Severity: Minor
Found in client-web/src/pages/Signon/Tnc.tsx by tslint

Rule: quotemark

Enforces quote character for string literals.

Notes
  • Has Fix

Config

Five arguments may be optionally provided:

  • "single" enforces single quotes.
  • "double" enforces double quotes.
  • "backtick" enforces backticks.
  • "jsx-single" enforces single quotes for JSX attributes.
  • "jsx-double" enforces double quotes for JSX attributes.
  • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
  • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
Examples
"quotemark": true,single,avoid-escape,avoid-template
"quotemark": true,single,jsx-double
Schema
{
  "type": "array",
  "items": {
    "type": "string",
    "enum": [
      "single",
      "double",
      "backtick",
      "jsx-single",
      "jsx-double",
      "avoid-escape",
      "avoid-template"
    ]
  },
  "minLength": 0,
  "maxLength": 5
}

For more information see this page.

Missing semicolon
Open

  }
Severity: Minor
Found in client-web/src/pages/Signon/Tnc.tsx by tslint

Rule: semicolon

Enforces consistent semicolon usage at the end of every statement.

Notes
  • Has Fix

Config

One of the following arguments must be provided:

  • "always" enforces semicolons at the end of every statement.
  • "never" disallows semicolons at the end of every statement except for when they are necessary.

The following arguments may be optionally provided:

  • "ignore-interfaces" skips checking semicolons at the end of interface members.
  • "ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
  • "strict-bound-class-methods" disables any special handling of bound class methods and treats them as any other assignment. This option overrides "ignore-bound-class-methods".
Examples
"semicolon": true,always
"semicolon": true,never
"semicolon": true,always,ignore-interfaces
"semicolon": true,always,ignore-bound-class-methods
Schema
{
  "type": "array",
  "items": [
    {
      "type": "string",
      "enum": [
        "always",
        "never"
      ]
    },
    {
      "type": "string",
      "enum": [
        "ignore-interfaces"
      ]
    }
  ],
  "additionalItems": false
}

For more information see this page.

" should be '
Open

    <Box className="tnc" style={{ padding: "20px" }}>
Severity: Minor
Found in client-web/src/pages/Signon/Tnc.tsx by tslint

Rule: quotemark

Enforces quote character for string literals.

Notes
  • Has Fix

Config

Five arguments may be optionally provided:

  • "single" enforces single quotes.
  • "double" enforces double quotes.
  • "backtick" enforces backticks.
  • "jsx-single" enforces single quotes for JSX attributes.
  • "jsx-double" enforces double quotes for JSX attributes.
  • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
  • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
Examples
"quotemark": true,single,avoid-escape,avoid-template
"quotemark": true,single,jsx-double
Schema
{
  "type": "array",
  "items": {
    "type": "string",
    "enum": [
      "single",
      "double",
      "backtick",
      "jsx-single",
      "jsx-double",
      "avoid-escape",
      "avoid-template"
    ]
  },
  "minLength": 0,
  "maxLength": 5
}

For more information see this page.

" should be '
Open

        <Button onClick={onAccept} variant="contained" color="success" size="large">Close</Button>
Severity: Minor
Found in client-web/src/pages/Signon/Tnc.tsx by tslint

Rule: quotemark

Enforces quote character for string literals.

Notes
  • Has Fix

Config

Five arguments may be optionally provided:

  • "single" enforces single quotes.
  • "double" enforces double quotes.
  • "backtick" enforces backticks.
  • "jsx-single" enforces single quotes for JSX attributes.
  • "jsx-double" enforces double quotes for JSX attributes.
  • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
  • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
Examples
"quotemark": true,single,avoid-escape,avoid-template
"quotemark": true,single,jsx-double
Schema
{
  "type": "array",
  "items": {
    "type": "string",
    "enum": [
      "single",
      "double",
      "backtick",
      "jsx-single",
      "jsx-double",
      "avoid-escape",
      "avoid-template"
    ]
  },
  "minLength": 0,
  "maxLength": 5
}

For more information see this page.

" should be '
Open

        <Button onClick={onAccept} variant="contained" color="success" size="large">Close</Button>
Severity: Minor
Found in client-web/src/pages/Signon/Tnc.tsx by tslint

Rule: quotemark

Enforces quote character for string literals.

Notes
  • Has Fix

Config

Five arguments may be optionally provided:

  • "single" enforces single quotes.
  • "double" enforces double quotes.
  • "backtick" enforces backticks.
  • "jsx-single" enforces single quotes for JSX attributes.
  • "jsx-double" enforces double quotes for JSX attributes.
  • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
  • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
Examples
"quotemark": true,single,avoid-escape,avoid-template
"quotemark": true,single,jsx-double
Schema
{
  "type": "array",
  "items": {
    "type": "string",
    "enum": [
      "single",
      "double",
      "backtick",
      "jsx-single",
      "jsx-double",
      "avoid-escape",
      "avoid-template"
    ]
  },
  "minLength": 0,
  "maxLength": 5
}

For more information see this page.

" should be '
Open

          The Customer is "{company}", a company, represented by {firstName}{" "}
Severity: Minor
Found in client-web/src/pages/Signon/Tnc.tsx by tslint

Rule: quotemark

Enforces quote character for string literals.

Notes
  • Has Fix

Config

Five arguments may be optionally provided:

  • "single" enforces single quotes.
  • "double" enforces double quotes.
  • "backtick" enforces backticks.
  • "jsx-single" enforces single quotes for JSX attributes.
  • "jsx-double" enforces double quotes for JSX attributes.
  • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
  • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
Examples
"quotemark": true,single,avoid-escape,avoid-template
"quotemark": true,single,jsx-double
Schema
{
  "type": "array",
  "items": {
    "type": "string",
    "enum": [
      "single",
      "double",
      "backtick",
      "jsx-single",
      "jsx-double",
      "avoid-escape",
      "avoid-template"
    ]
  },
  "minLength": 0,
  "maxLength": 5
}

For more information see this page.

" should be '
Open

    <Box className="tnc" style={{ padding: "20px" }}>
Severity: Minor
Found in client-web/src/pages/Signon/Tnc.tsx by tslint

Rule: quotemark

Enforces quote character for string literals.

Notes
  • Has Fix

Config

Five arguments may be optionally provided:

  • "single" enforces single quotes.
  • "double" enforces double quotes.
  • "backtick" enforces backticks.
  • "jsx-single" enforces single quotes for JSX attributes.
  • "jsx-double" enforces double quotes for JSX attributes.
  • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
  • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
Examples
"quotemark": true,single,avoid-escape,avoid-template
"quotemark": true,single,jsx-double
Schema
{
  "type": "array",
  "items": {
    "type": "string",
    "enum": [
      "single",
      "double",
      "backtick",
      "jsx-single",
      "jsx-double",
      "avoid-escape",
      "avoid-template"
    ]
  },
  "minLength": 0,
  "maxLength": 5
}

For more information see this page.

" should be '
Open

import Box from "@mui/material/Box";
Severity: Minor
Found in client-web/src/pages/Signon/Tnc.tsx by tslint

Rule: quotemark

Enforces quote character for string literals.

Notes
  • Has Fix

Config

Five arguments may be optionally provided:

  • "single" enforces single quotes.
  • "double" enforces double quotes.
  • "backtick" enforces backticks.
  • "jsx-single" enforces single quotes for JSX attributes.
  • "jsx-double" enforces double quotes for JSX attributes.
  • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
  • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
Examples
"quotemark": true,single,avoid-escape,avoid-template
"quotemark": true,single,jsx-double
Schema
{
  "type": "array",
  "items": {
    "type": "string",
    "enum": [
      "single",
      "double",
      "backtick",
      "jsx-single",
      "jsx-double",
      "avoid-escape",
      "avoid-template"
    ]
  },
  "minLength": 0,
  "maxLength": 5
}

For more information see this page.

" should be '
Open

      <h3 style={{ textAlign: "center" }}>SaaS terms and conditions</h3>
Severity: Minor
Found in client-web/src/pages/Signon/Tnc.tsx by tslint

Rule: quotemark

Enforces quote character for string literals.

Notes
  • Has Fix

Config

Five arguments may be optionally provided:

  • "single" enforces single quotes.
  • "double" enforces double quotes.
  • "backtick" enforces backticks.
  • "jsx-single" enforces single quotes for JSX attributes.
  • "jsx-double" enforces double quotes for JSX attributes.
  • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
  • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
Examples
"quotemark": true,single,avoid-escape,avoid-template
"quotemark": true,single,jsx-double
Schema
{
  "type": "array",
  "items": {
    "type": "string",
    "enum": [
      "single",
      "double",
      "backtick",
      "jsx-single",
      "jsx-double",
      "avoid-escape",
      "avoid-template"
    ]
  },
  "minLength": 0,
  "maxLength": 5
}

For more information see this page.

" should be '
Open

          {firstName} {lastName}, an individual, available at e-mail address:{" "}
Severity: Minor
Found in client-web/src/pages/Signon/Tnc.tsx by tslint

Rule: quotemark

Enforces quote character for string literals.

Notes
  • Has Fix

Config

Five arguments may be optionally provided:

  • "single" enforces single quotes.
  • "double" enforces double quotes.
  • "backtick" enforces backticks.
  • "jsx-single" enforces single quotes for JSX attributes.
  • "jsx-double" enforces double quotes for JSX attributes.
  • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
  • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
Examples
"quotemark": true,single,avoid-escape,avoid-template
"quotemark": true,single,jsx-double
Schema
{
  "type": "array",
  "items": {
    "type": "string",
    "enum": [
      "single",
      "double",
      "backtick",
      "jsx-single",
      "jsx-double",
      "avoid-escape",
      "avoid-template"
    ]
  },
  "minLength": 0,
  "maxLength": 5
}

For more information see this page.

Missing semicolon
Open

    setTermsOpen(false)
Severity: Minor
Found in client-web/src/pages/Signon/Tnc.tsx by tslint

Rule: semicolon

Enforces consistent semicolon usage at the end of every statement.

Notes
  • Has Fix

Config

One of the following arguments must be provided:

  • "always" enforces semicolons at the end of every statement.
  • "never" disallows semicolons at the end of every statement except for when they are necessary.

The following arguments may be optionally provided:

  • "ignore-interfaces" skips checking semicolons at the end of interface members.
  • "ignore-bound-class-methods" skips checking semicolons at the end of bound class methods.
  • "strict-bound-class-methods" disables any special handling of bound class methods and treats them as any other assignment. This option overrides "ignore-bound-class-methods".
Examples
"semicolon": true,always
"semicolon": true,never
"semicolon": true,always,ignore-interfaces
"semicolon": true,always,ignore-bound-class-methods
Schema
{
  "type": "array",
  "items": [
    {
      "type": "string",
      "enum": [
        "always",
        "never"
      ]
    },
    {
      "type": "string",
      "enum": [
        "ignore-interfaces"
      ]
    }
  ],
  "additionalItems": false
}

For more information see this page.

" should be '
Open

        <Button onClick={onAccept} variant="contained" color="success" size="large">Close</Button>
Severity: Minor
Found in client-web/src/pages/Signon/Tnc.tsx by tslint

Rule: quotemark

Enforces quote character for string literals.

Notes
  • Has Fix

Config

Five arguments may be optionally provided:

  • "single" enforces single quotes.
  • "double" enforces double quotes.
  • "backtick" enforces backticks.
  • "jsx-single" enforces single quotes for JSX attributes.
  • "jsx-double" enforces double quotes for JSX attributes.
  • "avoid-template" forbids single-line untagged template strings that do not contain string interpolations. Note that backticks may still be used if "avoid-escape" is enabled and both single and double quotes are present in the string (the latter option takes precedence).
  • "avoid-escape" allows you to use the "other" quotemark in cases where escaping would normally be required. For example, [true, "double", "avoid-escape"] would not report a failure on the string literal 'Hello "World"'.
Examples
"quotemark": true,single,avoid-escape,avoid-template
"quotemark": true,single,jsx-double
Schema
{
  "type": "array",
  "items": {
    "type": "string",
    "enum": [
      "single",
      "double",
      "backtick",
      "jsx-single",
      "jsx-double",
      "avoid-escape",
      "avoid-template"
    ]
  },
  "minLength": 0,
  "maxLength": 5
}

For more information see this page.

There are no issues that match your filters.

Category
Status