From 1d81c14a487ac1afc1e89e370d3ee21302180aa3 Mon Sep 17 00:00:00 2001 From: shoiraTa Date: Wed, 23 Mar 2022 19:39:16 +0400 Subject: [PATCH] Delete linters --- .github/workflows/linters.yml | 36 --------------------- .rubocop.yml | 60 ----------------------------------- .stylelintrc.json | 10 ------ 3 files changed, 106 deletions(-) delete mode 100644 .github/workflows/linters.yml delete mode 100644 .rubocop.yml delete mode 100644 .stylelintrc.json diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml deleted file mode 100644 index 150f9c4..0000000 --- a/.github/workflows/linters.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Linters - -on: pull_request - -env: - FORCE_COLOR: 1 - -jobs: - rubocop: - name: Rubocop - runs-on: ubuntu-18.04 - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-ruby@v1 - with: - ruby-version: 3.0.x - - name: Setup Rubocop - run: | - gem install --no-document rubocop -v '>= 1.0, < 2.0' # https://docs.rubocop.org/en/stable/installation/ - [ -f .rubocop.yml ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/ror/.rubocop.yml - - name: Rubocop Report - run: rubocop --color - stylelint: - name: Stylelint - runs-on: ubuntu-18.04 - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: "12.x" - - name: Setup Stylelint - run: | - npm install --save-dev stylelint@13.x stylelint-scss@3.x stylelint-config-standard@21.x stylelint-csstree-validator@1.x - [ -f .stylelintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/ror/.stylelintrc.json - - name: Stylelint Report - run: npx stylelint "**/*.{css,scss}" \ No newline at end of file diff --git a/.rubocop.yml b/.rubocop.yml deleted file mode 100644 index d8187c3..0000000 --- a/.rubocop.yml +++ /dev/null @@ -1,60 +0,0 @@ -AllCops: - NewCops: enable - Exclude: - - "db/**/*" - - "bin/*" - - "config/**/*" - - "Guardfile" - - "Rakefile" - - "node_modules/**/*" - - DisplayCopNames: true - -Layout/LineLength: - Max: 120 -Metrics/MethodLength: - Include: - - "app/controllers/*" - - "app/models/*" - Max: 20 -Metrics/AbcSize: - Include: - - "app/controllers/*" - - "app/models/*" - Max: 50 -Metrics/ClassLength: - Max: 150 -Metrics/BlockLength: - IgnoredMethods: ['describe'] - Max: 30 - -Style/Documentation: - Enabled: false -Style/ClassAndModuleChildren: - Enabled: false -Style/EachForSimpleLoop: - Enabled: false -Style/AndOr: - Enabled: false -Style/DefWithParentheses: - Enabled: false -Style/FrozenStringLiteralComment: - EnforcedStyle: never - -Layout/HashAlignment: - EnforcedColonStyle: key -Layout/ExtraSpacing: - AllowForAlignment: false -Layout/MultilineMethodCallIndentation: - Enabled: true - EnforcedStyle: indented -Lint/RaiseException: - Enabled: false -Lint/StructNewOverride: - Enabled: false -Style/HashEachMethods: - Enabled: false -Style/HashTransformKeys: - Enabled: false -Style/HashTransformValues: - Enabled: false \ No newline at end of file diff --git a/.stylelintrc.json b/.stylelintrc.json deleted file mode 100644 index b7b3657..0000000 --- a/.stylelintrc.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": ["stylelint-config-standard"], - "plugins": ["stylelint-scss", "stylelint-csstree-validator"], - "rules": { - "at-rule-no-unknown": null, - "scss/at-rule-no-unknown": true, - "csstree/validator": true - }, - "ignoreFiles": ["build/**", "dist/**", "**/reset*.css", "**/bootstrap*.css"] -}