Skip to content

Commit

Permalink
Merge pull request #30 from alexanderadam/rules/update
Browse files Browse the repository at this point in the history
extract linting workflow and fix invalid rules
  • Loading branch information
alexanderadam authored Nov 29, 2024
2 parents 88b679f + c94a761 commit a0853ee
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 17 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Lint AdBlock List

on:
pull_request:
branches:
- main
push:
branches:
- main

permissions:
contents: read

env:
FILENAME: alexanderadam.txt

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4.2.2

- name: Setup Node.js
uses: actions/setup-node@v4.1.0
with:
node-version: '18'

- name: Install dependencies
run: yarn install
# https://github.com/AdguardTeam/AGLint?tab=readme-ov-file#introduction

- name: Run linting
run: yarn aglint ${{ env.FILENAME }}
13 changes: 1 addition & 12 deletions .github/workflows/update_metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main

permissions:
contents: write

Expand All @@ -17,18 +18,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4.2.2

- name: Setup Node.js
uses: actions/setup-node@v4.1.0
with:
node-version: '18'

- name: Install dependencies
run: yarn install
# https://github.com/AdguardTeam/AGLint?tab=readme-ov-file#introduction

- name: Run linting
run: yarn aglint ${{ env.FILENAME }}

- name: Update metadata
run: |
sed -i "s/! Last modified: .*/! Last modified: $(date +%Y-%m-%d)/" ${{ env.FILENAME }}
Expand Down
10 changes: 5 additions & 5 deletions alexanderadam.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1911,7 +1911,7 @@ medjournaldaily.com##.post-components
medjournaldaily.com##.share-buttons
medjournaldaily.com##.stream-item-below-post:has(script)
medjournaldaily.com##.stream-item:has(.ads-label)
medjournaldaily.com##.tie-popup-is-opend #tie-wrapper:style(filter: none !important; transitio: none !important;)
medjournaldaily.com##.tie-popup-is-opend #tie-wrapper:style(filter: none !important; transition: none !important;)
medjournaldaily.com##.widget_custom_html:has(script)
medjournaldaily.com##html:style(overflow: visible !important)
meetup.com###try-pro-links
Expand Down Expand Up @@ -2025,7 +2025,7 @@ mixed.de##[id^="sp_message_container"]
mixed.de##article .x-plus-content
mixed.de##html.sp-message-open body:style(overflow: visible !important; position: static !important)
moneyexchangerate.org##.row:has(> .col-12 > .card > .card-block > .adsbygoogle)
moneyhouse.ch##.text-invisible:style(filter: none !important; webkit-filter: none !important;)
moneyhouse.ch##.text-invisible:style(filter: none !important;)
moneyweek.com###blueconic-article-moneyweek
moneyweek.com##.ad-unit
moneyweek.com##.social
Expand Down Expand Up @@ -3520,8 +3520,8 @@ washingtonpost.com##[data-testid="interstitial-ad"]
washingtonpost.com##[data-testid="mostRead"]
washingtonpost.com##[role=alert]:has(title:has-text(Close))
washingtonpost.com##article + .grid-rail
washingtonpost.com##body:style(height: default !important; width: default !important; overflow: visible !important; position: static !important)
washingtonpost.com##html:style(height: default !important; width: default !important; overflow: visible !important)
washingtonpost.com##body:style(height: auto !important; width: auto !important; overflow: visible !important; position: static !important)
washingtonpost.com##html:style(height: auto !important; width: auto !important; overflow: visible !important)
washingtonpost.com##nav:has(> div > a:has-text(Try four weeks free))
washingtonpost.com##nav:has(> div > div > [data-qa="subs-offer"])
washingtonpost.com##p:has(> .interstitial.hide-for-print)
Expand Down Expand Up @@ -3709,7 +3709,7 @@ xda-developers.com##.ad-zone-size-container
xda-developers.com##.adsninja-ad-zone
xda-developers.com##.article-card:has(.article-card-label:has-text(Related))
xda-developers.com##main.w-content ~ .w-content
xing.com##[data-qa="signup-layer"]:style(backdrop-filter: none !important; -webkit-backdrop-filter: !important)
xing.com##[data-qa="signup-layer"]:style(backdrop-filter: none !important; -webkit-backdrop-filter: none!important)
xn--strunglive-fcb.ch##[style="min-height:300px;"]
yahoo.com###custom-social
yahoo.com###module-moreStories
Expand Down

0 comments on commit a0853ee

Please sign in to comment.