Siggg/culottes

View on GitHub
src/app/citizen/citizen.component.ts

Summary

Maintainability
F
3 days
Test Coverage

Function sendVote has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  async sendVote(vote, weiAmount) {
    let component = this;
    component.vote = vote;
    let nameChange = false;
    let estimatedGas;
Severity: Major
Found in src/app/citizen/citizen.component.ts - About 2 hrs to fix

    Function ngOnInit has 56 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      async ngOnInit() {
        this.getAddress();
        this.revolutionAddress = this
          .web3Service
          .revolutionAddress;
    Severity: Major
    Found in src/app/citizen/citizen.component.ts - About 2 hrs to fix

      Function cakeVote has 40 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        async cakeVote(vote) {
          let canVote = true;
          let addressIsValid = true;
          let component = this;
      
      
      Severity: Minor
      Found in src/app/citizen/citizen.component.ts - About 1 hr to fix

        Function sendVote has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
        Open

          async sendVote(vote, weiAmount) {
            let component = this;
            component.vote = vote;
            let nameChange = false;
            let estimatedGas;
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts - About 35 mins to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function cakeVote has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
        Open

          async cakeVote(vote) {
            let canVote = true;
            let addressIsValid = true;
            let component = this;
        
        
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts - About 35 mins to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

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

            this.web3Service
              .artifactsToContract(contractABI, this.revolutionAddress)
              .then((web3_eth_contract) => {
                this.web3_eth_contract = web3_eth_contract;
            
        Severity: Major
        Found in src/app/citizen/citizen.component.ts and 1 other location - About 1 day to fix
        src/app/factory/factory.component.ts on lines 59..108

        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 242.

        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

        Identical blocks of code found in 2 locations. Consider refactoring.
        Open

            this.web3Service.addSigner(this.web3_eth_contract)
              .then((contract) => {
                this.web3_eth_contract = contract;
            if (nameChange == true) {
                  return contract.voteAndSetName(vote, this.address, this.name, { gasLimit: estimatedGas });  
        Severity: Major
        Found in src/app/citizen/citizen.component.ts and 1 other location - About 4 hrs to fix
        src/app/factory/factory.component.ts on lines 193..214

        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 133.

        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

        Identical blocks of code found in 2 locations. Consider refactoring.
        Open

            function updateUIOnBlock(blockNumber) {
              component.transactionPending = false;
              component.confirmationProgress += 1; // up to 24 
              component.confirmationPercent = Math.round(100 * component.confirmationProgress / 24);
              console.log('confirmation received, with number and %: ', component.confirmationProgress, component.confirmationPercent);
        Severity: Major
        Found in src/app/citizen/citizen.component.ts and 1 other location - About 3 hrs to fix
        src/app/factory/factory.component.ts on lines 186..192

        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 98.

        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

        Identical blocks of code found in 2 locations. Consider refactoring.
        Open

                if (hashtag == null || hashtag.length == 0) {
                  this.hashtagWithoutSymbol = "CulottesRevolution";
                } else if (hashtag[0] != '#') {
                  this.hashtagWithoutSymbol = hashtag;
                  hashtag = '#' + hashtag;
        Severity: Major
        Found in src/app/citizen/citizen.component.ts and 1 other location - About 1 hr to fix
        src/app/revolution/revolution.component.ts on lines 78..86

        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

        space indentation expected
        Open

            criteria: String = "default criteria from citizen.component.ts";
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        space indentation expected
        Open

            distributionAmount: number = 0;
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        space indentation expected
        Open

            showErrorMessageForVote: boolean = false;
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        space indentation expected
        Open

            // Get revolution's hashtag
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        space indentation expected
        Open

            console.log("name: ", name);
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        space indentation expected
        Open

            this.name = name;
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        space indentation expected
        Open

            nameChange = true;
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        Identifier 'myName' is never reassigned; use 'const' instead of 'let'.
        Open

              let myName = await this.web3_eth_contract.getName(this.address);
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: prefer-const

        Requires that variable declarations use const instead of let and var if possible.

        If a variable is only assigned to once when it is declared, it should be declared using 'const'

        Notes
        • Has Fix

        Config

        An optional object containing the property "destructuring" with two possible values:

        • "any" (default) - If any variable in destructuring can be const, this rule warns for those variables.
        • "all" - Only warns if all variables in destructuring can be const.
        Examples
        "prefer-const": true
        "prefer-const": true,[object Object]
        Schema
        {
          "type": "object",
          "properties": {
            "destructuring": {
              "type": "string",
              "enum": [
                "all",
                "any"
              ]
            }
          }
        }

        For more information see this page.

        " should be '
        Open

                    .next("distributionAmount at this revolution is null!");
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts 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

              .parseUnits(this.amount.toString(), "ether");
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts 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.

        space indentation expected
        Open

            address: String = "0x";
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        space indentation expected
        Open

            revolutionAddress: String = "0x0000...";
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        space indentation expected
        Open

            transactionConfirmed = false;
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        Type boolean trivially inferred from a boolean literal, remove type annotation
        Open

            showErrorMessageForBalance: boolean = false;
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: no-inferrable-types

        Disallows explicit type declarations for variables or parameters initialized to a number, string, or boolean.

        Rationale

        Explicit types where they can be easily inferred by the compiler make code more verbose.

        Notes
        • TypeScript Only
        • Has Fix

        Config

        Two arguments may be optionally provided:

        • ignore-params allows specifying an inferrable type annotation for function params. This can be useful when combining with the typedef rule.
        • ignore-properties allows specifying an inferrable type annotation for class properties.
        Examples
        "no-inferrable-types": true
        "no-inferrable-types": true,ignore-params
        "no-inferrable-types": true,ignore-params,ignore-properties
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ignore-params",
              "ignore-properties"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        " should be '
        Open

            name: String = "";
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts 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

            console.log("name: ", name);
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts 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

            console.log("estimatedGas: ", estimatedGas);
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts 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

              if (myName != this.name) {
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: triple-equals

        Requires === and !== in place of == and !=.

        Config

        Two arguments may be optionally provided:

        • "allow-null-check" allows == and != when comparing to null.
        • "allow-undefined-check" allows == and != when comparing to undefined.
        Examples
        "triple-equals": true
        "triple-equals": true,allow-null-check
        "triple-equals": true,allow-undefined-check
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "allow-null-check",
              "allow-undefined-check"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        space indentation expected
        Open

            vote: boolean = undefined;
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        trailing whitespace
        Open

              component.confirmationProgress += 1; // up to 24 
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: no-trailing-whitespace

        Disallows trailing whitespace at the end of a line.

        Rationale

        Keeps version control diffs clean as it prevents accidental whitespace from being committed.

        Notes
        • Has Fix

        Config

        Possible settings are:

        • "ignore-template-strings": Allows trailing whitespace in template strings.
        • "ignore-comments": Allows trailing whitespace in comments.
        • "ignore-jsdoc": Allows trailing whitespace only in JSDoc comments.
        • "ignore-blank-lines": Allows trailing whitespace on empty lines.
        Examples
        "no-trailing-whitespace": true
        "no-trailing-whitespace": true,ignore-comments
        "no-trailing-whitespace": true,ignore-jsdoc
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ignore-comments",
              "ignore-jsdoc",
              "ignore-template-strings",
              "ignore-blank-lines"
            ]
          }
        }

        For more information see this page.

        " should be '
        Open

                errorDuringVote: String = "";
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts 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.

        space indentation expected
        Open

            web3_eth_contract: any;
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        space indentation expected
        Open

              return undefined;
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

            console.log("balance: ", this.accountBalance);
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts 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.

        space indentation expected
        Open

            
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        trailing whitespace
        Open

                  return contract.voteAndSetName(vote, this.address, this.name, { gasLimit: estimatedGas });  
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: no-trailing-whitespace

        Disallows trailing whitespace at the end of a line.

        Rationale

        Keeps version control diffs clean as it prevents accidental whitespace from being committed.

        Notes
        • Has Fix

        Config

        Possible settings are:

        • "ignore-template-strings": Allows trailing whitespace in template strings.
        • "ignore-comments": Allows trailing whitespace in comments.
        • "ignore-jsdoc": Allows trailing whitespace only in JSDoc comments.
        • "ignore-blank-lines": Allows trailing whitespace on empty lines.
        Examples
        "no-trailing-whitespace": true
        "no-trailing-whitespace": true,ignore-comments
        "no-trailing-whitespace": true,ignore-jsdoc
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ignore-comments",
              "ignore-jsdoc",
              "ignore-template-strings",
              "ignore-blank-lines"
            ]
          }
        }

        For more information see this page.

        " should be '
        Open

                  this.hashtagWithoutSymbol = "CulottesRevolution";
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts 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

                  this.web3Service.removeEventListener("block", updateUIOnBlock);
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts 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

              console.log("Vote by: " + this.account);
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts 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

            if (this.address != "" && this.address != null) {
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: triple-equals

        Requires === and !== in place of == and !=.

        Config

        Two arguments may be optionally provided:

        • "allow-null-check" allows == and != when comparing to null.
        • "allow-undefined-check" allows == and != when comparing to undefined.
        Examples
        "triple-equals": true
        "triple-equals": true,allow-null-check
        "triple-equals": true,allow-undefined-check
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "allow-null-check",
              "allow-undefined-check"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        trailing whitespace
        Open

            
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: no-trailing-whitespace

        Disallows trailing whitespace at the end of a line.

        Rationale

        Keeps version control diffs clean as it prevents accidental whitespace from being committed.

        Notes
        • Has Fix

        Config

        Possible settings are:

        • "ignore-template-strings": Allows trailing whitespace in template strings.
        • "ignore-comments": Allows trailing whitespace in comments.
        • "ignore-jsdoc": Allows trailing whitespace only in JSDoc comments.
        • "ignore-blank-lines": Allows trailing whitespace on empty lines.
        Examples
        "no-trailing-whitespace": true
        "no-trailing-whitespace": true,ignore-comments
        "no-trailing-whitespace": true,ignore-jsdoc
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ignore-comments",
              "ignore-jsdoc",
              "ignore-template-strings",
              "ignore-blank-lines"
            ]
          }
        }

        For more information see this page.

        " should be '
        Open

                console.log("distributionAmount: ", distributionAmount);
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts 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

            console.log("Vote by this account: " + this.account);
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts 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.

        space indentation expected
        Open

            // Get revolution's distributionAmout
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        space indentation expected
        Open

            } else {
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        trailing whitespace
        Open

          
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: no-trailing-whitespace

        Disallows trailing whitespace at the end of a line.

        Rationale

        Keeps version control diffs clean as it prevents accidental whitespace from being committed.

        Notes
        • Has Fix

        Config

        Possible settings are:

        • "ignore-template-strings": Allows trailing whitespace in template strings.
        • "ignore-comments": Allows trailing whitespace in comments.
        • "ignore-jsdoc": Allows trailing whitespace only in JSDoc comments.
        • "ignore-blank-lines": Allows trailing whitespace on empty lines.
        Examples
        "no-trailing-whitespace": true
        "no-trailing-whitespace": true,ignore-comments
        "no-trailing-whitespace": true,ignore-jsdoc
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ignore-comments",
              "ignore-jsdoc",
              "ignore-template-strings",
              "ignore-blank-lines"
            ]
          }
        }

        For more information see this page.

        " should be '
        Open

            hashtagWithoutSymbol: String = "CulottesRevolution";
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts 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.

        space indentation expected
        Open

            revolutionBlockchain: String = "";
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        space indentation expected
        Open

            transactionHashes = [];
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        space indentation expected
        Open

            console.log('vote and set it to: ', this.name);
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        space indentation expected
        Open

            if (nameChange == true) {
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        space indentation expected
        Open

              return contract.vote(vote, this.address, { gasLimit: estimatedGas });
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

            address: String = "0x";
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts 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

            revolutionAddress: String = "0x0000...";
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts 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

            if (this.account == this.address && this.address != "" && this.address != undefined ) {
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: triple-equals

        Requires === and !== in place of == and !=.

        Config

        Two arguments may be optionally provided:

        • "allow-null-check" allows == and != when comparing to null.
        • "allow-undefined-check" allows == and != when comparing to undefined.
        Examples
        "triple-equals": true
        "triple-equals": true,allow-null-check
        "triple-equals": true,allow-undefined-check
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "allow-null-check",
              "allow-undefined-check"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        != should be !==
        Open

            if (this.account == this.address && this.address != "" && this.address != undefined ) {
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: triple-equals

        Requires === and !== in place of == and !=.

        Config

        Two arguments may be optionally provided:

        • "allow-null-check" allows == and != when comparing to null.
        • "allow-undefined-check" allows == and != when comparing to undefined.
        Examples
        "triple-equals": true
        "triple-equals": true,allow-null-check
        "triple-equals": true,allow-undefined-check
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "allow-null-check",
              "allow-undefined-check"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        trailing whitespace
        Open

          
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: no-trailing-whitespace

        Disallows trailing whitespace at the end of a line.

        Rationale

        Keeps version control diffs clean as it prevents accidental whitespace from being committed.

        Notes
        • Has Fix

        Config

        Possible settings are:

        • "ignore-template-strings": Allows trailing whitespace in template strings.
        • "ignore-comments": Allows trailing whitespace in comments.
        • "ignore-jsdoc": Allows trailing whitespace only in JSDoc comments.
        • "ignore-blank-lines": Allows trailing whitespace on empty lines.
        Examples
        "no-trailing-whitespace": true
        "no-trailing-whitespace": true,ignore-comments
        "no-trailing-whitespace": true,ignore-jsdoc
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ignore-comments",
              "ignore-jsdoc",
              "ignore-template-strings",
              "ignore-blank-lines"
            ]
          }
        }

        For more information see this page.

        " should be '
        Open

            criteria: String = "default criteria from citizen.component.ts";
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts 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

            if (this.address != "" && this.address != null) {
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts 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

                if (hashtag == null || hashtag.length == 0) {
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: triple-equals

        Requires === and !== in place of == and !=.

        Config

        Two arguments may be optionally provided:

        • "allow-null-check" allows == and != when comparing to null.
        • "allow-undefined-check" allows == and != when comparing to undefined.
        Examples
        "triple-equals": true
        "triple-equals": true,allow-null-check
        "triple-equals": true,allow-undefined-check
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "allow-null-check",
              "allow-undefined-check"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        space indentation expected
        Open

            name: String = "";
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        space indentation expected
        Open

            culottes: any;
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        space indentation expected
        Open

            showErrorMessageForBalance: boolean = false;
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        Type boolean trivially inferred from a boolean literal, remove type annotation
        Open

            showErrorMessageForAddress: boolean = false;
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: no-inferrable-types

        Disallows explicit type declarations for variables or parameters initialized to a number, string, or boolean.

        Rationale

        Explicit types where they can be easily inferred by the compiler make code more verbose.

        Notes
        • TypeScript Only
        • Has Fix

        Config

        Two arguments may be optionally provided:

        • ignore-params allows specifying an inferrable type annotation for function params. This can be useful when combining with the typedef rule.
        • ignore-properties allows specifying an inferrable type annotation for class properties.
        Examples
        "no-inferrable-types": true
        "no-inferrable-types": true,ignore-params
        "no-inferrable-types": true,ignore-params,ignore-properties
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ignore-params",
              "ignore-properties"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        Type number trivially inferred from a number literal, remove type annotation
        Open

            confirmationProgress: number = 0;
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: no-inferrable-types

        Disallows explicit type declarations for variables or parameters initialized to a number, string, or boolean.

        Rationale

        Explicit types where they can be easily inferred by the compiler make code more verbose.

        Notes
        • TypeScript Only
        • Has Fix

        Config

        Two arguments may be optionally provided:

        • ignore-params allows specifying an inferrable type annotation for function params. This can be useful when combining with the typedef rule.
        • ignore-properties allows specifying an inferrable type annotation for class properties.
        Examples
        "no-inferrable-types": true
        "no-inferrable-types": true,ignore-params
        "no-inferrable-types": true,ignore-params,ignore-properties
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ignore-params",
              "ignore-properties"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        Type number trivially inferred from a number literal, remove type annotation
        Open

                confirmationPercent: number = 0;
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: no-inferrable-types

        Disallows explicit type declarations for variables or parameters initialized to a number, string, or boolean.

        Rationale

        Explicit types where they can be easily inferred by the compiler make code more verbose.

        Notes
        • TypeScript Only
        • Has Fix

        Config

        Two arguments may be optionally provided:

        • ignore-params allows specifying an inferrable type annotation for function params. This can be useful when combining with the typedef rule.
        • ignore-properties allows specifying an inferrable type annotation for class properties.
        Examples
        "no-inferrable-types": true
        "no-inferrable-types": true,ignore-params
        "no-inferrable-types": true,ignore-params,ignore-properties
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ignore-params",
              "ignore-properties"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        unused expression, expected an assignment or function call
        Open

                console.error;
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: no-unused-expression

        Disallows unused expression statements.

        Unused expressions are expression statements which are not assignments or function calls (and thus usually no-ops).

        Rationale

        Detects potential errors where an assignment or function call was intended.

        Config

        Three arguments may be optionally provided:

        • allow-fast-null-checks allows to use logical operators to perform fast null checks and perform method or function calls for side effects (e.g. e && e.preventDefault()).
        • allow-new allows 'new' expressions for side effects (e.g. new ModifyGlobalState();.
        • allow-tagged-template allows tagged templates for side effects (e.g. this.add\foo`;`.
        Examples
        "no-unused-expression": true
        "no-unused-expression": true,allow-fast-null-checks
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "allow-fast-null-checks",
              "allow-new",
              "allow-tagged-template"
            ]
          },
          "minLength": 0,
          "maxLength": 3
        }

        For more information see this page.

        " should be '
        Open

                console.log("this.address: ", this.address);
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts 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

                } else if (hashtag[0] != '#') {
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: triple-equals

        Requires === and !== in place of == and !=.

        Config

        Two arguments may be optionally provided:

        • "allow-null-check" allows == and != when comparing to null.
        • "allow-undefined-check" allows == and != when comparing to undefined.
        Examples
        "triple-equals": true
        "triple-equals": true,allow-null-check
        "triple-equals": true,allow-undefined-check
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "allow-null-check",
              "allow-undefined-check"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        Type number trivially inferred from a number literal, remove type annotation
        Open

            distributionAmount: number = 0;
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: no-inferrable-types

        Disallows explicit type declarations for variables or parameters initialized to a number, string, or boolean.

        Rationale

        Explicit types where they can be easily inferred by the compiler make code more verbose.

        Notes
        • TypeScript Only
        • Has Fix

        Config

        Two arguments may be optionally provided:

        • ignore-params allows specifying an inferrable type annotation for function params. This can be useful when combining with the typedef rule.
        • ignore-properties allows specifying an inferrable type annotation for class properties.
        Examples
        "no-inferrable-types": true
        "no-inferrable-types": true,ignore-params
        "no-inferrable-types": true,ignore-params,ignore-properties
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ignore-params",
              "ignore-properties"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        Type boolean trivially inferred from a boolean literal, remove type annotation
        Open

            showErrorMessageForVote: boolean = false;
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: no-inferrable-types

        Disallows explicit type declarations for variables or parameters initialized to a number, string, or boolean.

        Rationale

        Explicit types where they can be easily inferred by the compiler make code more verbose.

        Notes
        • TypeScript Only
        • Has Fix

        Config

        Two arguments may be optionally provided:

        • ignore-params allows specifying an inferrable type annotation for function params. This can be useful when combining with the typedef rule.
        • ignore-properties allows specifying an inferrable type annotation for class properties.
        Examples
        "no-inferrable-types": true
        "no-inferrable-types": true,ignore-params
        "no-inferrable-types": true,ignore-params,ignore-properties
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ignore-params",
              "ignore-properties"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        " should be '
        Open

                console.log("hashtag: ", hashtag);
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts 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

            console.log("Stake (in wei): ", weiAmount);
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts 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.

        space indentation expected
        Open

            accountBalance: number = undefined;
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        space indentation expected
        Open

            amount: number = undefined;
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        == should be ===
        Open

            if (this.account == this.address && this.address != "" && this.address != undefined ) {
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: triple-equals

        Requires === and !== in place of == and !=.

        Config

        Two arguments may be optionally provided:

        • "allow-null-check" allows == and != when comparing to null.
        • "allow-undefined-check" allows == and != when comparing to undefined.
        Examples
        "triple-equals": true
        "triple-equals": true,allow-null-check
        "triple-equals": true,allow-undefined-check
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "allow-null-check",
              "allow-undefined-check"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        space indentation expected
        Open

            confirmationProgress: number = 0;
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        space indentation expected
        Open

            // Get revolution's criteria
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        space indentation expected
        Open

              return this.web3_eth_contract.getName(this.address);
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        " should be '
        Open

                this.web3Service.addEventListener("block", updateUIOnBlock);
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts 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

            console.log("Check amount");
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts 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.

        space indentation expected
        Open

            showErrorMessageForAddress: boolean = false;
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        space indentation expected
        Open

            hashtagWithoutSymbol: String = "CulottesRevolution";
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        Identifier 'component' is never reassigned; use 'const' instead of 'let'.
        Open

            let component = this;
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: prefer-const

        Requires that variable declarations use const instead of let and var if possible.

        If a variable is only assigned to once when it is declared, it should be declared using 'const'

        Notes
        • Has Fix

        Config

        An optional object containing the property "destructuring" with two possible values:

        • "any" (default) - If any variable in destructuring can be const, this rule warns for those variables.
        • "all" - Only warns if all variables in destructuring can be const.
        Examples
        "prefer-const": true
        "prefer-const": true,[object Object]
        Schema
        {
          "type": "object",
          "properties": {
            "destructuring": {
              "type": "string",
              "enum": [
                "all",
                "any"
              ]
            }
          }
        }

        For more information see this page.

        " should be '
        Open

                    .formatUnits(distributionAmount, "ether"));
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts 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

            if (this.account == this.address && this.address != "" && this.address != undefined ) {
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts 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.

        space indentation expected
        Open

            showErrorMessageForAmount: boolean = false;
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        space indentation expected
        Open

            if (this.address != "" && this.address != null) {
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        Type boolean trivially inferred from a boolean literal, remove type annotation
        Open

            transactionPending: boolean = false;
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: no-inferrable-types

        Disallows explicit type declarations for variables or parameters initialized to a number, string, or boolean.

        Rationale

        Explicit types where they can be easily inferred by the compiler make code more verbose.

        Notes
        • TypeScript Only
        • Has Fix

        Config

        Two arguments may be optionally provided:

        • ignore-params allows specifying an inferrable type annotation for function params. This can be useful when combining with the typedef rule.
        • ignore-properties allows specifying an inferrable type annotation for class properties.
        Examples
        "no-inferrable-types": true
        "no-inferrable-types": true,ignore-params
        "no-inferrable-types": true,ignore-params,ignore-properties
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ignore-params",
              "ignore-properties"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        space indentation expected
        Open

            account: any;
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        space indentation expected
        Open

            transactionPending: boolean = false;
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        space indentation expected
        Open

            }
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: indent

        Enforces indentation with tabs or spaces.

        Rationale

        Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programmatic manipulation.

        Notes
        • Has Fix

        Config

        One of the following arguments must be provided:

        • spaces enforces consistent spaces.
        • tabs enforces consistent tabs.

        A second optional argument specifies indentation size:

        • 2 enforces 2 space indentation.
        • 4 enforces 4 space indentation.

        Indentation size is required for auto-fixing, but not for rule checking.

        NOTE: auto-fixing will only convert invalid indent whitespace to the desired type, it will not fix invalid whitespace sizes.

        Examples
        "indent": true,spaces
        "indent": true,spaces,4
        "indent": true,tabs,2
        Schema
        {
          "type": "array",
          "items": [
            {
              "type": "string",
              "enum": [
                "tabs",
                "spaces"
              ]
            },
            {
              "type": "number",
              "enum": [
                2,
                4
              ]
            }
          ],
          "minLength": 0,
          "maxLength": 5
        }

        For more information see this page.

        Type boolean trivially inferred from a boolean literal, remove type annotation
        Open

            showErrorMessageForAmount: boolean = false;
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: no-inferrable-types

        Disallows explicit type declarations for variables or parameters initialized to a number, string, or boolean.

        Rationale

        Explicit types where they can be easily inferred by the compiler make code more verbose.

        Notes
        • TypeScript Only
        • Has Fix

        Config

        Two arguments may be optionally provided:

        • ignore-params allows specifying an inferrable type annotation for function params. This can be useful when combining with the typedef rule.
        • ignore-properties allows specifying an inferrable type annotation for class properties.
        Examples
        "no-inferrable-types": true
        "no-inferrable-types": true,ignore-params
        "no-inferrable-types": true,ignore-params,ignore-properties
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ignore-params",
              "ignore-properties"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        Identifier 'component' is never reassigned; use 'const' instead of 'let'.
        Open

            let component = this;
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: prefer-const

        Requires that variable declarations use const instead of let and var if possible.

        If a variable is only assigned to once when it is declared, it should be declared using 'const'

        Notes
        • Has Fix

        Config

        An optional object containing the property "destructuring" with two possible values:

        • "any" (default) - If any variable in destructuring can be const, this rule warns for those variables.
        • "all" - Only warns if all variables in destructuring can be const.
        Examples
        "prefer-const": true
        "prefer-const": true,[object Object]
        Schema
        {
          "type": "object",
          "properties": {
            "destructuring": {
              "type": "string",
              "enum": [
                "all",
                "any"
              ]
            }
          }
        }

        For more information see this page.

        " should be '
        Open

            revolutionBlockchain: String = "";
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts 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

                console.log("criteria: ", criteria);
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts 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

            console.log("Check balance");
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts 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

            if (this.account == undefined) {
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: triple-equals

        Requires === and !== in place of == and !=.

        Config

        Two arguments may be optionally provided:

        • "allow-null-check" allows == and != when comparing to null.
        • "allow-undefined-check" allows == and != when comparing to undefined.
        Examples
        "triple-equals": true
        "triple-equals": true,allow-null-check
        "triple-equals": true,allow-undefined-check
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "allow-null-check",
              "allow-undefined-check"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        == should be ===
        Open

            if (nameChange == true) {
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: triple-equals

        Requires === and !== in place of == and !=.

        Config

        Two arguments may be optionally provided:

        • "allow-null-check" allows == and != when comparing to null.
        • "allow-undefined-check" allows == and != when comparing to undefined.
        Examples
        "triple-equals": true
        "triple-equals": true,allow-null-check
        "triple-equals": true,allow-undefined-check
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "allow-null-check",
              "allow-undefined-check"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        == should be ===
        Open

            if (canVote == true) {
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: triple-equals

        Requires === and !== in place of == and !=.

        Config

        Two arguments may be optionally provided:

        • "allow-null-check" allows == and != when comparing to null.
        • "allow-undefined-check" allows == and != when comparing to undefined.
        Examples
        "triple-equals": true
        "triple-equals": true,allow-null-check
        "triple-equals": true,allow-undefined-check
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "allow-null-check",
              "allow-undefined-check"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        missing whitespace
        Open

            } catch(e) {
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: whitespace

        Enforces whitespace style conventions.

        Rationale

        Helps maintain a readable, consistent style in your codebase.

        Notes
        • Has Fix

        Config

        Several arguments may be optionally provided:

        • "check-branch" checks branching statements (if/else/for/while) are followed by whitespace.
        • "check-decl"checks that variable declarations have whitespace around the equals token.
        • "check-operator" checks for whitespace around operator tokens.
        • "check-module" checks for whitespace in import & export statements.
        • "check-separator" checks for whitespace after separator tokens (,/;).
        • "check-rest-spread" checks that there is no whitespace after rest/spread operator (...).
        • "check-type" checks for whitespace before a variable type specification.
        • "check-typecast" checks for whitespace between a typecast and its target.
        • "check-type-operator" checks for whitespace between type operators | and &.
        • "check-preblock" checks for whitespace before the opening brace of a block.
        • "check-postbrace" checks for whitespace after an opening brace.
        Examples
        "whitespace": true,check-branch,check-operator,check-typecast
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "check-branch",
              "check-decl",
              "check-operator",
              "check-module",
              "check-separator",
              "check-rest-spread",
              "check-type",
              "check-typecast",
              "check-type-operator",
              "check-preblock",
              "check-postbrace"
            ]
          },
          "minLength": 0,
          "maxLength": 11
        }

        For more information see this page.

        == should be ===
        Open

            if (nameChange == true) {
        Severity: Minor
        Found in src/app/citizen/citizen.component.ts by tslint

        Rule: triple-equals

        Requires === and !== in place of == and !=.

        Config

        Two arguments may be optionally provided:

        • "allow-null-check" allows == and != when comparing to null.
        • "allow-undefined-check" allows == and != when comparing to undefined.
        Examples
        "triple-equals": true
        "triple-equals": true,allow-null-check
        "triple-equals": true,allow-undefined-check
        Schema
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "allow-null-check",
              "allow-undefined-check"
            ]
          },
          "minLength": 0,
          "maxLength": 2
        }

        For more information see this page.

        There are no issues that match your filters.

        Category
        Status