Code Monkey home page Code Monkey logo

codeguidelines's Introduction

codeguidelines's People

Contributors

adbuker avatar ainar-g avatar ameshkov avatar confessor-adguard avatar danila-arg avatar maximtop avatar refreezer avatar sc0rp10 avatar slavaleleka avatar tvinzz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

zmyxpt

codeguidelines's Issues

ObjectiveC: add objective C code guidelines

Useful links:

http://google.github.io/styleguide/objcguide.html
https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/CodingGuidelines/CodingGuidelines.html

Structure:

Guidelines for Adblock Filter Lists

I think it is worth considering compiling a guideline for Adblock Filter Lists.

In my opinion, there are two main groups of policies:

  • Syntactic / formatting specifications
  • Application specifications: routines, best practices <-> bad practices

I think such guidelines could be:

  • Preferred scriptlet quote marks,
  • Formatting of CSS selectors, e.g. whether there should be a space before !important
  • Application of general <-> specific principles (e.g. EasyList is a very general list, and AG filters are more specific),
  • Contraindication of multiple selectors within a rule: example.com##.ad1, .ad2
  • Taking into account the limitations of content blockers, e.g. creating regular exception network rules next to scriptlets
  • Comment guides, e.g. put one space after comment marker, link issues before rules
  • Rule ordering/grouping, where to place a new rule
  • Where to place a new domain if the rule is already exists
  • etc.

The description of the filter repo doesn't cover such things:
https://github.com/AdguardTeam/AdguardFilters/blob/master/CONTRIBUTING.md

I would be happy if you could share your opinion. ๐Ÿ™‚

@ameshkov @Alex-302 @zloyden @AdamWr

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.