├── .editorconfig ├── .eslintignore ├── .eslintrc.js ├── .gitattributes ├── .github ├── ISSUE_TEMPLATE.md └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── .gitmodules ├── .ncurc.js ├── .npmignore ├── .prettierignore ├── .travis.yml ├── CHANGES.md ├── LICENSE-LGPL3.0-only.txt ├── README.md ├── docs ├── CONTRIBUTING.md ├── RELEASING.md └── rules │ ├── cognitive-complexity.md │ ├── max-switch-cases.md │ ├── no-all-duplicated-branches.md │ ├── no-collapsible-if.md │ ├── no-collection-size-mischeck.md │ ├── no-duplicate-string.md │ ├── no-duplicated-branches.md │ ├── no-element-overwrite.md │ ├── no-extra-arguments.md │ ├── no-identical-conditions.md │ ├── no-identical-expressions.md │ ├── no-identical-functions.md │ ├── no-inverted-boolean-check.md │ ├── no-one-iteration-loop.md │ ├── no-redundant-boolean.md │ ├── no-redundant-jump.md │ ├── no-same-line-conditional.md │ ├── no-small-switch.md │ ├── no-unused-collection.md │ ├── no-use-of-empty-return-value.md │ ├── no-useless-catch.md │ ├── prefer-immediate-return.md │ ├── prefer-object-literal.md │ ├── prefer-single-boolean-return.md │ └── prefer-while.md ├── package.json ├── radar-project.properties ├── ruling ├── .eslintignore ├── .eslintrc.js ├── index.ts └── snapshots │ ├── cognitive-complexity │ ├── max-switch-cases │ ├── no-all-duplicated-branches │ ├── no-collapsible-if │ ├── no-duplicate-string │ ├── no-duplicated-branches │ ├── no-element-overwrite │ ├── no-extra-arguments │ ├── no-identical-conditions │ ├── no-identical-expressions │ ├── no-identical-functions │ ├── no-inverted-boolean-check │ ├── no-one-iteration-loop │ ├── no-redundant-boolean │ ├── no-redundant-jump │ ├── no-same-line-conditional │ ├── no-small-switch │ ├── no-unused-collection │ ├── no-use-of-empty-return-value │ ├── no-useless-catch │ ├── prefer-immediate-return │ ├── prefer-object-literal │ ├── prefer-single-boolean-return │ └── prefer-while ├── scripts ├── analyze.sh ├── file-header.ts ├── generate-rules-radar-meta.ts └── test-ci.sh ├── src ├── index.ts ├── rules │ ├── cognitive-complexity.ts │ ├── max-switch-cases.ts │ ├── no-all-duplicated-branches.ts │ ├── no-collapsible-if.ts │ ├── no-collection-size-mischeck.ts │ ├── no-duplicate-string.ts │ ├── no-duplicated-branches.ts │ ├── no-element-overwrite.ts │ ├── no-extra-arguments.ts │ ├── no-identical-conditions.ts │ ├── no-identical-expressions.ts │ ├── no-identical-functions.ts │ ├── no-inverted-boolean-check.ts │ ├── no-one-iteration-loop.ts │ ├── no-redundant-boolean.ts │ ├── no-redundant-jump.ts │ ├── no-same-line-conditional.ts │ ├── no-small-switch.ts │ ├── no-unused-collection.ts │ ├── no-use-of-empty-return-value.ts │ ├── no-useless-catch.ts │ ├── prefer-immediate-return.ts │ ├── prefer-object-literal.ts │ ├── prefer-single-boolean-return.ts │ └── prefer-while.ts └── utils │ ├── collections.ts │ ├── conditions.ts │ ├── equivalence.ts │ ├── locations.ts │ ├── nodes.ts │ └── parser-services.ts ├── tests ├── index.test.ts ├── resources │ ├── file.ts │ └── tsconfig.json └── rules │ ├── cognitive-complexity.test.ts │ ├── max-switch-cases.test.ts │ ├── no-all-duplicated-branches.test.ts │ ├── no-collapsible-if.test.ts │ ├── no-collection-size-mischeck.test.ts │ ├── no-duplicate-string.test.ts │ ├── no-duplicated-branches.test.ts │ ├── no-element-overwrite.test.ts │ ├── no-extra-arguments.test.ts │ ├── no-identical-conditions.test.ts │ ├── no-identical-expressions.test.ts │ ├── no-identical-functions.test.ts │ ├── no-inverted-boolean-check.test.ts │ ├── no-one-iteration-loop.test.ts │ ├── no-redundant-boolean.test.ts │ ├── no-redundant-jump.test.ts │ ├── no-same-line-conditional.test.ts │ ├── no-small-switch.test.ts │ ├── no-unused-collection.test.ts │ ├── no-use-of-empty-return-value.test.ts │ ├── no-useless-catch.test.ts │ ├── prefer-immediate-return.test.ts │ ├── prefer-object-literal.test.ts │ ├── prefer-single-boolean-return.test.ts │ └── prefer-while.test.ts ├── tsconfig-src.json ├── tsconfig.json └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/.github/ISSUE_TEMPLATE.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | Fixes # 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/.gitmodules -------------------------------------------------------------------------------- /.ncurc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/.ncurc.js -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/.npmignore -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | ruling/javascript-test-sources/** 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGES.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/CHANGES.md -------------------------------------------------------------------------------- /LICENSE-LGPL3.0-only.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/LICENSE-LGPL3.0-only.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/README.md -------------------------------------------------------------------------------- /docs/CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/docs/CONTRIBUTING.md -------------------------------------------------------------------------------- /docs/RELEASING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/docs/RELEASING.md -------------------------------------------------------------------------------- /docs/rules/cognitive-complexity.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/docs/rules/cognitive-complexity.md -------------------------------------------------------------------------------- /docs/rules/max-switch-cases.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/docs/rules/max-switch-cases.md -------------------------------------------------------------------------------- /docs/rules/no-all-duplicated-branches.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/docs/rules/no-all-duplicated-branches.md -------------------------------------------------------------------------------- /docs/rules/no-collapsible-if.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/docs/rules/no-collapsible-if.md -------------------------------------------------------------------------------- /docs/rules/no-collection-size-mischeck.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/docs/rules/no-collection-size-mischeck.md -------------------------------------------------------------------------------- /docs/rules/no-duplicate-string.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/docs/rules/no-duplicate-string.md -------------------------------------------------------------------------------- /docs/rules/no-duplicated-branches.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/docs/rules/no-duplicated-branches.md -------------------------------------------------------------------------------- /docs/rules/no-element-overwrite.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/docs/rules/no-element-overwrite.md -------------------------------------------------------------------------------- /docs/rules/no-extra-arguments.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/docs/rules/no-extra-arguments.md -------------------------------------------------------------------------------- /docs/rules/no-identical-conditions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/docs/rules/no-identical-conditions.md -------------------------------------------------------------------------------- /docs/rules/no-identical-expressions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/docs/rules/no-identical-expressions.md -------------------------------------------------------------------------------- /docs/rules/no-identical-functions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/docs/rules/no-identical-functions.md -------------------------------------------------------------------------------- /docs/rules/no-inverted-boolean-check.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/docs/rules/no-inverted-boolean-check.md -------------------------------------------------------------------------------- /docs/rules/no-one-iteration-loop.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/docs/rules/no-one-iteration-loop.md -------------------------------------------------------------------------------- /docs/rules/no-redundant-boolean.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/docs/rules/no-redundant-boolean.md -------------------------------------------------------------------------------- /docs/rules/no-redundant-jump.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/docs/rules/no-redundant-jump.md -------------------------------------------------------------------------------- /docs/rules/no-same-line-conditional.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/docs/rules/no-same-line-conditional.md -------------------------------------------------------------------------------- /docs/rules/no-small-switch.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/docs/rules/no-small-switch.md -------------------------------------------------------------------------------- /docs/rules/no-unused-collection.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/docs/rules/no-unused-collection.md -------------------------------------------------------------------------------- /docs/rules/no-use-of-empty-return-value.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/docs/rules/no-use-of-empty-return-value.md -------------------------------------------------------------------------------- /docs/rules/no-useless-catch.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/docs/rules/no-useless-catch.md -------------------------------------------------------------------------------- /docs/rules/prefer-immediate-return.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/docs/rules/prefer-immediate-return.md -------------------------------------------------------------------------------- /docs/rules/prefer-object-literal.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/docs/rules/prefer-object-literal.md -------------------------------------------------------------------------------- /docs/rules/prefer-single-boolean-return.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/docs/rules/prefer-single-boolean-return.md -------------------------------------------------------------------------------- /docs/rules/prefer-while.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/docs/rules/prefer-while.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/package.json -------------------------------------------------------------------------------- /radar-project.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/radar-project.properties -------------------------------------------------------------------------------- /ruling/.eslintignore: -------------------------------------------------------------------------------- 1 | tests/resources 2 | !**/node_modules/** 3 | -------------------------------------------------------------------------------- /ruling/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/ruling/.eslintrc.js -------------------------------------------------------------------------------- /ruling/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/ruling/index.ts -------------------------------------------------------------------------------- /ruling/snapshots/cognitive-complexity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/ruling/snapshots/cognitive-complexity -------------------------------------------------------------------------------- /ruling/snapshots/max-switch-cases: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/ruling/snapshots/max-switch-cases -------------------------------------------------------------------------------- /ruling/snapshots/no-all-duplicated-branches: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/ruling/snapshots/no-all-duplicated-branches -------------------------------------------------------------------------------- /ruling/snapshots/no-collapsible-if: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/ruling/snapshots/no-collapsible-if -------------------------------------------------------------------------------- /ruling/snapshots/no-duplicate-string: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/ruling/snapshots/no-duplicate-string -------------------------------------------------------------------------------- /ruling/snapshots/no-duplicated-branches: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/ruling/snapshots/no-duplicated-branches -------------------------------------------------------------------------------- /ruling/snapshots/no-element-overwrite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/ruling/snapshots/no-element-overwrite -------------------------------------------------------------------------------- /ruling/snapshots/no-extra-arguments: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/ruling/snapshots/no-extra-arguments -------------------------------------------------------------------------------- /ruling/snapshots/no-identical-conditions: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /ruling/snapshots/no-identical-expressions: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/ruling/snapshots/no-identical-expressions -------------------------------------------------------------------------------- /ruling/snapshots/no-identical-functions: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/ruling/snapshots/no-identical-functions -------------------------------------------------------------------------------- /ruling/snapshots/no-inverted-boolean-check: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/ruling/snapshots/no-inverted-boolean-check -------------------------------------------------------------------------------- /ruling/snapshots/no-one-iteration-loop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/ruling/snapshots/no-one-iteration-loop -------------------------------------------------------------------------------- /ruling/snapshots/no-redundant-boolean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/ruling/snapshots/no-redundant-boolean -------------------------------------------------------------------------------- /ruling/snapshots/no-redundant-jump: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/ruling/snapshots/no-redundant-jump -------------------------------------------------------------------------------- /ruling/snapshots/no-same-line-conditional: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/ruling/snapshots/no-same-line-conditional -------------------------------------------------------------------------------- /ruling/snapshots/no-small-switch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/ruling/snapshots/no-small-switch -------------------------------------------------------------------------------- /ruling/snapshots/no-unused-collection: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/ruling/snapshots/no-unused-collection -------------------------------------------------------------------------------- /ruling/snapshots/no-use-of-empty-return-value: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/ruling/snapshots/no-use-of-empty-return-value -------------------------------------------------------------------------------- /ruling/snapshots/no-useless-catch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/ruling/snapshots/no-useless-catch -------------------------------------------------------------------------------- /ruling/snapshots/prefer-immediate-return: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/ruling/snapshots/prefer-immediate-return -------------------------------------------------------------------------------- /ruling/snapshots/prefer-object-literal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/ruling/snapshots/prefer-object-literal -------------------------------------------------------------------------------- /ruling/snapshots/prefer-single-boolean-return: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/ruling/snapshots/prefer-single-boolean-return -------------------------------------------------------------------------------- /ruling/snapshots/prefer-while: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/ruling/snapshots/prefer-while -------------------------------------------------------------------------------- /scripts/analyze.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/scripts/analyze.sh -------------------------------------------------------------------------------- /scripts/file-header.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/scripts/file-header.ts -------------------------------------------------------------------------------- /scripts/generate-rules-radar-meta.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/scripts/generate-rules-radar-meta.ts -------------------------------------------------------------------------------- /scripts/test-ci.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/scripts/test-ci.sh -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/rules/cognitive-complexity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/rules/cognitive-complexity.ts -------------------------------------------------------------------------------- /src/rules/max-switch-cases.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/rules/max-switch-cases.ts -------------------------------------------------------------------------------- /src/rules/no-all-duplicated-branches.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/rules/no-all-duplicated-branches.ts -------------------------------------------------------------------------------- /src/rules/no-collapsible-if.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/rules/no-collapsible-if.ts -------------------------------------------------------------------------------- /src/rules/no-collection-size-mischeck.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/rules/no-collection-size-mischeck.ts -------------------------------------------------------------------------------- /src/rules/no-duplicate-string.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/rules/no-duplicate-string.ts -------------------------------------------------------------------------------- /src/rules/no-duplicated-branches.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/rules/no-duplicated-branches.ts -------------------------------------------------------------------------------- /src/rules/no-element-overwrite.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/rules/no-element-overwrite.ts -------------------------------------------------------------------------------- /src/rules/no-extra-arguments.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/rules/no-extra-arguments.ts -------------------------------------------------------------------------------- /src/rules/no-identical-conditions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/rules/no-identical-conditions.ts -------------------------------------------------------------------------------- /src/rules/no-identical-expressions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/rules/no-identical-expressions.ts -------------------------------------------------------------------------------- /src/rules/no-identical-functions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/rules/no-identical-functions.ts -------------------------------------------------------------------------------- /src/rules/no-inverted-boolean-check.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/rules/no-inverted-boolean-check.ts -------------------------------------------------------------------------------- /src/rules/no-one-iteration-loop.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/rules/no-one-iteration-loop.ts -------------------------------------------------------------------------------- /src/rules/no-redundant-boolean.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/rules/no-redundant-boolean.ts -------------------------------------------------------------------------------- /src/rules/no-redundant-jump.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/rules/no-redundant-jump.ts -------------------------------------------------------------------------------- /src/rules/no-same-line-conditional.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/rules/no-same-line-conditional.ts -------------------------------------------------------------------------------- /src/rules/no-small-switch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/rules/no-small-switch.ts -------------------------------------------------------------------------------- /src/rules/no-unused-collection.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/rules/no-unused-collection.ts -------------------------------------------------------------------------------- /src/rules/no-use-of-empty-return-value.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/rules/no-use-of-empty-return-value.ts -------------------------------------------------------------------------------- /src/rules/no-useless-catch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/rules/no-useless-catch.ts -------------------------------------------------------------------------------- /src/rules/prefer-immediate-return.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/rules/prefer-immediate-return.ts -------------------------------------------------------------------------------- /src/rules/prefer-object-literal.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/rules/prefer-object-literal.ts -------------------------------------------------------------------------------- /src/rules/prefer-single-boolean-return.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/rules/prefer-single-boolean-return.ts -------------------------------------------------------------------------------- /src/rules/prefer-while.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/rules/prefer-while.ts -------------------------------------------------------------------------------- /src/utils/collections.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/utils/collections.ts -------------------------------------------------------------------------------- /src/utils/conditions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/utils/conditions.ts -------------------------------------------------------------------------------- /src/utils/equivalence.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/utils/equivalence.ts -------------------------------------------------------------------------------- /src/utils/locations.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/utils/locations.ts -------------------------------------------------------------------------------- /src/utils/nodes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/utils/nodes.ts -------------------------------------------------------------------------------- /src/utils/parser-services.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/src/utils/parser-services.ts -------------------------------------------------------------------------------- /tests/index.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/tests/index.test.ts -------------------------------------------------------------------------------- /tests/resources/file.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/resources/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/tests/resources/tsconfig.json -------------------------------------------------------------------------------- /tests/rules/cognitive-complexity.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/tests/rules/cognitive-complexity.test.ts -------------------------------------------------------------------------------- /tests/rules/max-switch-cases.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/tests/rules/max-switch-cases.test.ts -------------------------------------------------------------------------------- /tests/rules/no-all-duplicated-branches.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/tests/rules/no-all-duplicated-branches.test.ts -------------------------------------------------------------------------------- /tests/rules/no-collapsible-if.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/tests/rules/no-collapsible-if.test.ts -------------------------------------------------------------------------------- /tests/rules/no-collection-size-mischeck.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/tests/rules/no-collection-size-mischeck.test.ts -------------------------------------------------------------------------------- /tests/rules/no-duplicate-string.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/tests/rules/no-duplicate-string.test.ts -------------------------------------------------------------------------------- /tests/rules/no-duplicated-branches.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/tests/rules/no-duplicated-branches.test.ts -------------------------------------------------------------------------------- /tests/rules/no-element-overwrite.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/tests/rules/no-element-overwrite.test.ts -------------------------------------------------------------------------------- /tests/rules/no-extra-arguments.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/tests/rules/no-extra-arguments.test.ts -------------------------------------------------------------------------------- /tests/rules/no-identical-conditions.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/tests/rules/no-identical-conditions.test.ts -------------------------------------------------------------------------------- /tests/rules/no-identical-expressions.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/tests/rules/no-identical-expressions.test.ts -------------------------------------------------------------------------------- /tests/rules/no-identical-functions.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/tests/rules/no-identical-functions.test.ts -------------------------------------------------------------------------------- /tests/rules/no-inverted-boolean-check.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/tests/rules/no-inverted-boolean-check.test.ts -------------------------------------------------------------------------------- /tests/rules/no-one-iteration-loop.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/tests/rules/no-one-iteration-loop.test.ts -------------------------------------------------------------------------------- /tests/rules/no-redundant-boolean.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/tests/rules/no-redundant-boolean.test.ts -------------------------------------------------------------------------------- /tests/rules/no-redundant-jump.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/tests/rules/no-redundant-jump.test.ts -------------------------------------------------------------------------------- /tests/rules/no-same-line-conditional.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/tests/rules/no-same-line-conditional.test.ts -------------------------------------------------------------------------------- /tests/rules/no-small-switch.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/tests/rules/no-small-switch.test.ts -------------------------------------------------------------------------------- /tests/rules/no-unused-collection.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/tests/rules/no-unused-collection.test.ts -------------------------------------------------------------------------------- /tests/rules/no-use-of-empty-return-value.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/tests/rules/no-use-of-empty-return-value.test.ts -------------------------------------------------------------------------------- /tests/rules/no-useless-catch.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/tests/rules/no-useless-catch.test.ts -------------------------------------------------------------------------------- /tests/rules/prefer-immediate-return.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/tests/rules/prefer-immediate-return.test.ts -------------------------------------------------------------------------------- /tests/rules/prefer-object-literal.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/tests/rules/prefer-object-literal.test.ts -------------------------------------------------------------------------------- /tests/rules/prefer-single-boolean-return.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/tests/rules/prefer-single-boolean-return.test.ts -------------------------------------------------------------------------------- /tests/rules/prefer-while.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/tests/rules/prefer-while.test.ts -------------------------------------------------------------------------------- /tsconfig-src.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/tsconfig-src.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/es-joy/eslint-plugin-radar/HEAD/yarn.lock --------------------------------------------------------------------------------