Comments (13)
All those missing parameter types will be a bunch of work - it's sometimes hard to tell what the right type is in those nested functions... especially i18n_string is pretty complex.
from i18n.
I've left comments on your current PR.
A quick idea: instead of blocking phpcs on files containing classes with underscores even for local phpcs runs (via @codingStandardsIgnoreFile
), we could exclude them on the command line run in travisCI.
That way people don't get a test failure on things no one can fix in 1.x, but it's still possible to keep an eye on other violations when run locally.
@serundeputy what do you think?
Affected files:
- i18n_object.inc
- i18n_translation/i18n_translation.inc
- i18n_taxonomy/i18n_taxonomy.inc
- i18n_path/i18n_path.inc
- i18n_string/i18n_string.inc
- i18n_menu/i18n_menu.inc
- i18n_field/i18n_field.inc
from i18n.
Done. It's impossible to fully comply the standards, though, for instance we can't simply rename existing classes and methods (camelcase).
from i18n.
Reopening this as @serundeputy was so kind to provide a .travis.yml config in a new PR:
from i18n.
Done. It's impossible to fully comply the standards, though, for instance we can't simply rename existing classes and methods (camelcase).
- for these cases we can/should add
// @TODO: Rename classes to CamelCase in 2.x.
// @codingStandardsIgnoreLine
from i18n.
Regarding @codingStandardsIgnoreLine
: we'd need a lot of those, so I'm undecided yet.
Newer phpcs versions would allow to --exclude
sniffs via command line, but backdrop/coder requires old 1.5. Ever thought about upgrading? I'm aware this requires rewriting sniffs.
from i18n.
I think about upgrading ... I originally pinned that version to support php 5.3, but these days i'm less concerned about that, but worth noting that backdrop core still supports back to php5.3.
from i18n.
The travis builds/tests are not running. I'd recommend we go through and file PRs per directory.
i18n_forum; PR #26
from i18n.
Nope, we have submodules, that should get completely ignored.
See #1 for details.
In other words: don't waste time on something that we don't actually need. 😉
Submodules to ignore:
- i18n_block
- i18n_forum
- i18n_select
- i18n_user
- i18n_variable
The reason why they're still there is to figure out a migration path from D7.
from i18n.
ahh; ok; let me see about telling travis not to check those
from i18n.
ok; assuming these are legit failures: https://travis-ci.org/github/backdrop-contrib/i18n/builds/679360294
from i18n.
That's a great idea!
from i18n.
Although coding standards will be an ongoing task, I'm closing this issue for now, as travisCI test is green.
from i18n.
Related Issues (20)
- Capitalize all 'translate' titles for consistency HOT 3
- Default language selection HOT 7
- GHA: Switch to actions/checkoutv3
- i18n_menu_block_view_alter overrides custom block titles HOT 12
- [term:i18n-vocabulary:name] token doesn't seem to be working HOT 13
- i18n_select: option "Select taxonomy terms by language" is missing HOT 6
- Warning: Undefined array key "i18n_node"
- Submodule i18n_taxonomy uses deprecated function
- Autocomplete term filtering revisited
- Cleanup: remove dead code
- Coding standards revisited
- Tokens in field descriptions not replaced HOT 3
- Update test runs
- Compatibility with PHP 8.2 HOT 1
- Need a hook_config_info() in i18n_select so config file is owned by that module HOT 3
- Call to undefined method i18n_object_wrapper::strings_remove() HOT 3
- Problem making changes to Text format configuration with i18n HOT 8
- Update GHA (checkout-v4)
- i18n_taxonomy: The function _menu_load_objects()... called deprecated function taxonomy_vocabulary_machine_name_load HOT 1
- Some change in core 1.28.0 broke i18n_taxonomy in combination with views HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from i18n.