# 플러그인의 린팅 워크플로우 문제

**URL:** <https://meta.discourse.org/t/trouble-with-linting-workflow-in-a-plugin/278724>\
**Category:** Development\
**Created:** [9월 12, 2023, 1:42오후 UTC](https://meta.discourse.org/t/trouble-with-linting-workflow-in-a-plugin/278724 "2023-09-12T13:42:21Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [9월 12, 2023, 1:42오후 UTC](https://meta.discourse.org/t/trouble-with-linting-workflow-in-a-plugin/278724/1 "2023-09-12T13:42:21Z")

</div>

robocop와 린팅(linting) 관련 문제가 있나요?

워크플로우에 아래 내용을 포함하고 있는데, 대부분 다음 파일에서 복사해 온 것입니다.

> <https://github.com/discourse/discourse-plugin-skeleton/blob/main/.github/workflows/discourse-plugin.yml>

```yaml
name: Discourse Plugin

on:
  push:
    branches:
      - main
      - master

  schedule: 
      - cron: 22 05 * * *

  jobs:
    ci:
      uses: discourse/.github/.github/workflows/discourse-plugin.yml@v1

```

그런데 제 잡(job)은 다음과 같이 실패하고 있습니다:

```plaintext
Run bundle exec rubocop .
vendor/bundle/ruby/3.1.0/gems/rubocop-discourse-3.3.0/rubocop-rspec.yml: RSpec/FactoryBot/AttributeDefinedStatically has the wrong namespace - should be FactoryBot
vendor/bundle/ruby/3.1.0/gems/rubocop-discourse-3.3.0/rubocop-rspec.yml: RSpec/FactoryBot/CreateList has the wrong namespace - should be FactoryBot
vendor/bundle/ruby/3.1.0/gems/rubocop-discourse-3.3.0/rubocop-rspec.yml: RSpec/FactoryBot/FactoryClassName has the wrong namespace - should be FactoryBot
Error: The `RSpec/FilePath` cop has been split into `RSpec/SpecFilePathFormat` and `RSpec/SpecFilePathSuffix`.
(obsolete configuration found in vendor/bundle/ruby/3.1.0/gems/rubocop-discourse-3.3.0/rubocop-rspec.yml, please update it)
Error: Process completed with exit code 2.

```

`discourse/.github/.github/workflows/discourse-plugin.yml@v1` 파일이 어디 있는지, 그리고 그 안에서 어떤 처리가 이루어지는지 확인하는 방법을 모르겠습니다.

하지만 다른 워크플로우들은 실패하지 않는 것 같습니다. 스케줄 기반으로 실행되기 때문에 문제가 발생하는 건가요?

---

_[View the full topic](https://meta.discourse.org/t/trouble-with-linting-workflow-in-a-plugin/278724)._
